Skip to Content

1 Step by Step Archiving Procedure for Material Documents Archiving:


Archiving Object MM_MATBEL is used for the archiving of Material Documents.To perform data archiving in the SAP system, SARA transaction code is used. This is the standard method for executing the Archival.


1.1 Write Job:

  1. 1. Go to transaction SARA and enter the Archiving Object MM_MATBEL and hit Enter.

                /wp-content/uploads/2016/09/1_1044621.jpg


           /wp-content/uploads/2016/09/1_1044621.jpg

Click on the write button and choose Maintain button to maintain a Variant for the Archival. Enter the Variant name and hit Create button.

/wp-content/uploads/2016/09/2_1044560.jpg


Used variants in detail:

MM_MATBEL – Material documents

Archiving should be executed on the following criteria:

– Plant

– Posting Date (from, up to)

– Detail Log “Complete”

– Log Output “Application Log”

Detail log and Log output will be same for all Archiving Objects.

Short texts have to get maintained with the following criteria:

– Object Name

– Company Code

– Fiscal year

– Period


Enter the Posting Date / Plant for which the Archival should happen and click on Variant Attributes button.


/wp-content/uploads/2016/09/3_1044561.jpg

Enter the description for the Variant and click on save button.


Click on Back button and the Variant name will appear for Archival as shown below. Click on Start date button, choose immediate button in the screen that follows and click on check and save button



/wp-content/uploads/2016/09/4_1044562.jpg

/wp-content/uploads/2016/09/5_1044563.jpg

Click on Spool Params. Button, enter LOCL_ZH as Output device and click on Continue button./wp-content/uploads/2016/09/6_1044564.jpg



Now click on tick button. Archiving Object is ready for Archival, with the Variant being saved./wp-content/uploads/2016/09/7_1044565.jpg

Click on Execute button as indicated above, for the Archival to happen. Once the Execute button is clicked, the following screen appears.

/wp-content/uploads/2016/09/8_1044575.jpg

Click on the Job Overview or check logs in SM37 button, for viewing the Archiving session created.

/wp-content/uploads/2016/09/9_1044576.jpg

Choose the corresponding Spool no. in the screen that appears, and click on Display Contents button.


/wp-content/uploads/2016/09/10_1044577.jpg/wp-content/uploads/2016/09/11_1044582.jpg/wp-content/uploads/2016/09/12_1044584.jpg

Here in above screen shot you can see ” Material Document archived and deleted”. In AOBJ we have done the customization that once the write job is finished it will automatically triggered deletion job. If, AOBJ was not configured for automatic triggering of deletion job then we need to follow the deletion step separately. I am describing the deletion step below.

1.2 Deletion Job:

  1. 2. Go back to the initial screen of SARA transaction and click on the Delete button, for the deletion of the Archived records./wp-content/uploads/2016/09/1_1044621.jpg


Click on Archive selection button, choose the Archiving session number in the screen that appears, by checking the checkbox against it and click on Continue button.

/wp-content/uploads/2016/09/2_1044560.jpg

Click on Start date button, choose immediate button from the screen that appears and click on check and save button (as done in Write Step).

/wp-content/uploads/2016/09/3_1044561.jpg

Click on Spool params button, enter LOCL as Output device and click on Continue button./wp-content/uploads/2016/09/4_1044562.jpg


Now the Archiving Object is ready for Deletion.

/wp-content/uploads/2016/09/5_1044563.jpg

Click on Execute button as indicated above, for the Deletion to happen. Once the Execute button is clicked, the following screen appears.

/wp-content/uploads/2016/09/6_1044564.jpg

Click on the Job Overview button or check logs in SM37.

/wp-content/uploads/2016/09/7_1044565.jpg

Deletion Job finished successfully.

/wp-content/uploads/2016/09/8_1044575.jpg

1.3 Storage Job

  1. 3. Go back to the initial screen of SARA transaction and click on the Storage system button, to store the files on storage.

/wp-content/uploads/2016/09/9_1044576.jpg

/wp-content/uploads/2016/09/10_1044577.jpg

Click on store files button.

Click on Archive Selection, choose the Archiving session number in the screen that appears, by checking the checkbox against it and click on Continue button.

/wp-content/uploads/2016/09/11_1044582.jpg

From SM37 or Job overview we can check the job logs for store job.


This is how we can perform the step by step archiving for material documents.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply