IDOC Archiving
Contents
What is an Idoc ? Reasons for Archiving Idoc Archiving Reasons for Idoc Archiving Basic settings for Archiving: Maintaining File Names Basic Requirement for Archiving Program used for Archiving Archiving program for Idocs Using Transaction for Archiving
IDoc
Intermediate document It is not a process It is a data container used to exchange information between any two processes(SAP to SAP or SAP to non-SAP) that can understand the syntax and semantics of the data In the SAP system, these are stored in database tables Every IDoc has an unique number Independent of the sending and receiving systems IDocs are based on EDI standards, ANSI ASC X12 and EDIFACT, but are closer to the EDIFACT standards Independent of the direction of data exchange Can be viewed in a text editor and do not contain any binary data
Idoc Archiving
Archiving: Archiving involves Compressing & Transferring the data which is accessed less frequently, from the database to an external storage device so that the data can be reused at a later date. Archiving IDocs: IDocs are stored in several database tables. To keep the access times small (to reduce the database load), without losing any IDocs, we archive the IDocs at operating system level. These archives can then be moved to external storage media, such as disks (using Archive Link) or magnetic tape.
Reasons for Idoc Archiving
The main reasons for Idoc Archiving are Archiving resolves memory space and performance problems caused by large volumes of transaction data. Ensures that data growth remains moderate so that the database remains manageable in the long term.
Basic settings for Archiving
Follow the below steps for Idoc Archiving Maintaining Logical path names and physical path Maintaining File Names Basic Requirement for Archiving Program used for Archiving Archiving program for Idocs
Maintaining Logical File path
Transaction : FILE Z Logical File Path
Assignment of Physical Path
Transaction : FILE To assign physical path. Select the Z logical path created in the previous step and double Click on assignment of physical paths on the left side of the screen.
Maintaining File Names
After maintaining logical path name for the archive file , maintain a logical name for the archive file. Double click on logical file name definition on the left side of the screen. You will get all the logical filenames
Basic Requirement for Archiving
Idocs cannot be archived arbitrarily. An Idoc status indicates whether it is suitable for archiving.
For Example: It make sense if you want to archive Idoc with status code 53(Idoc that has been posted successfully),But it does not make sense to archive Idoc with status code 64(Idoc that has not been processed yet).
The list of status code which can be processed for archiving we can get it from table STACUST
10
Idoc Archiving
There are two ways to archive an Idoc
1. Through standard report programs
2. Through the central archiving transaction SARA.
11
Archiving through Standard Report Programs Step 1/2
1. Archive Idoc using report RSEXARCA
WE02 before Archiving
Archive File Key WE02 after Archiving
12
Archiving through Standard Report Programs Step 2/2
2. Delete Archived Idocs from database using RSEXARCD
WE02 after Execution of RSEXARCD
13
Reload the Archived Idoc Step 1/2
1. Read the Idocs from Archived file - RSEXARCR
WE02 after executing RSEXARCR
14
Reload the Archived Idoc Step 2/2
2.Retrieve Idocs from Archive into database - RSEXARCL
WE02 after executing RSEXARCL
15
Archiving using Transaction SARA step 1/3
Archiving by Transaction SARA
16
Archiving using Transaction SARA step 2/3
Write the Archive File
17
Archiving using Transaction SARA step 3/3
Maintain Time and spool parameters
18
Deleting Database Tables using SARA
19
Retrieving Idocs from Archive File using SARA Step 1/2
20
Retrieving Idocs from Archive File using SARA Step 2/2
WE02 after reloading the archived file
21
Thank You!