Step-by-step procedure for Creation of Custom Archiving Object

...Previous  

Here ZCUSARCH is the name of the archiving object. ARCHIVE_DATA_FILE is the logical file path provided by SAP. The physical file path can be changed as per the requirement in the project in FILE transaction.  

Maximum size of the archive file in MB needs to be specified. The value can be derived after a trial and error method of looking at how many data objects are archived approximately per each archive run.  

Maximum number of data objects can be specified if required. Here in our scenario each document number in table ZTESTARCH refers to each data object. If the maximum number of data objects is specified as 10 then the program writes the data of the data objects into a new archive file once the first file is filled with the first 10 data objects.  

Commit counter represents after how many data objects should the data be deleted from the database.  

Test variant defines the variant of the delete program when run in test mode and when run in production mode. Create the variants respectively by clicking on the variant button next to the variants.  

Deletion jobs can be scheduled manually or a setting (Start Automatic) can be done to trigger immediately after the write program is finished.  

Content repository: Check with the basis team on the content server that needs to be used for archiving.

Sequence section defines whether the deletion job should run before storing the file into content server or after storing the file into content server. We can choose the option of reading the data from the content server if we want that only the data that has been written to the file is to be deleted from the database.  

Step 6: Create the Archive write program in SE38 (click here for the program code).

The below screen shot displays the selection screen:

 

The below flow chart depicts the sample flow in the archive write program:

 

Step 7: Create archive delete program in SE38 (Click here for the code).

Selection screen:

 

Flowchart:

Summary :

With the above steps the creation of custom archiving object is completed.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image