Data Archiving is the process of storing Database Records into a file on the Application Server or any Third Party storage system and then removing the Archived records from the Database Table. This process is generally performed in order to avoid having huge volumes of data in the table. Data which is obsolete or is not required for future use is generally archived.
All Standard SAP tables have a corresponding Archiving Objects that can be configured to perform archiving based on the required conditions and at specific time periods.
Since development of SAP objects generally involves creation of Custom Z-Tables there may arise a need for creation of Custom Archiving objects for the newly created Tables.
All Archiving objects have the following reports linked to them to achieve end to end Archiving.
Write Program – To create an Archive File and write the database table entries into it based on the selection criteria specified in the variant.
Delete Program – The Delete program is used to delete the records that are successfully archived and stored.
Reload Program - The Reload program is used to retrieve the data stored in the selected archive file and update the records back into the table.
Pre-Processing Program – This program may contain some functionality to be carried out before Data is Archived and Deleted from the Database.
Post-Processing Program – This program may contain some functionality to be carried out after Data is Archived and Deleted from the Database.
Step 1: Go to the Transaction “AOBJ” and add a New Entry.
Step 2: Add all the details including the Custom Object name and the names of the Custom Reports for Write, Delete and Reload. The names of Reports for Preprocessing and Post processing can also be added if applicable.
Step 3: The Structure Definition is updated next. The Parent Child relationships of all the associated tables with the Custom Z-Table are specified. This is used to ensure data consistency during Archiving. (In the given example below the Z-Table ZTJIS_DLSPLIT is updated or modified based on the entries in the JITIT table. Hence JITIT is specified as the parent segment and the Z-Table is the sub-Segment)
Step 4: The next section is optional and it is used to specify the tables from which the entries are to be only deleted from the database. The list is used to indicate all related tables to the Custom table where data does not have to be archived but only deleted. The code to delete the same has to be provide in the Delete Program explicitly.
Step 5: The next step involves maintaining the network graphic. This tab is usually updated when the Custom Archiving process is carried on in sequence with any other Archiving Object. (In the example below the Object ZJIT_INBD is generally followed by the Standard Archiving process for JIT Inbound Archiving. Therefore the JIT Inbound Archiving object, JIT_SJCALL is listed in the Network Graphic tab as Predecessor)
Step 6: The Customizing Settings for the Archiving object are then specified. The Logical File Name desired should be mentioned. Specifications like the Maximum Size and limit on the number of Data objects are entered. Besides this the Delete Program variant is specified and the settings that control the execution of the delete program as well as the Storage of the file are specified.
Step 7: The succeeding tab is used to specify the Archiving Classes associated with the Archiving Object.
Step 8: The next tab is used to specify the Read Program associated with the Archiving Object. This is used to read data from the Archive File and it is optional.
Step 9: The next tab is used to specify the Customizing Transactions associated with the Archiving Object. This is used to maintain Z Transaction Codes that may be associated with the Read/Write/Delete Programs.
Step 10: The Info Tables for Archiving tab is used to specify the information tables or structures that are updated when an Archiving File is Read using the Read Program.
Step 11: This Tab is used to specify any Exit Functions that may be required to be implemnted during the process of Archiving.
Step 1: Code to be written in SE38 for Write Program.
Step 2: Code to be written in SE38 for Delete Program.
To automate the Archiving Process and to ensure that Custom Archiving started after the Standard Archiving Process was completed for JIT the following design was implemented.
8. The Storage Process was automated to take place before the delete job by selecting the Store automatically option in the Technical Settings of the Customizing Menu for each archiving object in SARA transactio
9. All the jobs would be Scheduled one after the other in sequence as shown below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |