archiving idocs

Upload: siva-prasad

Post on 06-Apr-2018

268 views

Category:

Documents


4 download

TRANSCRIPT

  • 8/3/2019 Archiving IDocs

    1/11

    Archiving IDocs

    This document details about the step-by-step process in archiving the IDocs. Archiving is the process ofoffloading Out-of-date data onto a file at the operating system. The following are the two importantreasons for archiving:

    y Improving the performance

    y Saving the disk space on the SAP Server

    Scenario: In this scenario, let us archive the IDocs created before Jan 1st

    1995.

    Let us view at the IDocs created on or before 31st

    Dec 1994. Go to transaction WE05 and providednecessary details:

    Press Execute. Following are the IDocs available in the given date range.

  • 8/3/2019 Archiving IDocs

    2/11

    You can observe that all the above IDocs are in error state. The IDocs in error state cannot be archived.However, we would leave this part to the end of the document and proceed further.

    Initial settings to archive IDocs: (Maintaining Logical path and Physical path)

    Go to Transaction FILE

  • 8/3/2019 Archiving IDocs

    3/11

    Click on New Entries.

    To assign physical path: Select the Z logical path created above and now double-click on the assignmentof physical paths on the left side of the screen.

    Click on New Entries and enter the following data

  • 8/3/2019 Archiving IDocs

    4/11

    Leave the file name as shown above.

    Maintaining File Names: Now click on Logical file name definition and click on new entries. Provide thedetails as shown below:

    v

    Archiving IDocs

    ...Previous

    Archiving ofIDocs: There are two methods of archiving IDocs:

    y Using the transaction SARA

    y Using the standard programs like RSEXARCA (for archiving), RSEXARCR (for reading) andRSEXARCL (reloading of data into the system)

    This document would detail the procedure using the transaction SARA.

    Go to transaction SARA and the enter the Archiving Object name as IDOC

  • 8/3/2019 Archiving IDocs

    5/11

    Press Enter. You could observe some difference in the screen as shown below:

    Click on Write button.

    Click on Maintain. Enter a name for your variant.

  • 8/3/2019 Archiving IDocs

    6/11

    Enter the information as shown below:

    Click on Continue. Now in this screen, you would mention the data or the IDocs that needs to bearchived.

  • 8/3/2019 Archiving IDocs

    7/11

    Click on attributes.

    Click on Save and return to main screen. Now we need to mention the start date for the archive to begin.Click on button Start Date.

  • 8/3/2019 Archiving IDocs

    8/11

    Here we are scheduling the archival process immediate.

    Save your entries. Now click on Execute button:

  • 8/3/2019 Archiving IDocs

    9/11

    Following message appears:

    From the above screenshot, you can observe that the IDOC could not be archived. The IDocs shouldntbe in error status for the IDocs to be archived.

    To change the status of the IDocs, execute the program RC1_IDOC_SET_STATUS.

  • 8/3/2019 Archiving IDocs

    10/11

    Enter the list of IDocs and the new status

    Click on Execute.

    Now check in WE05 for the change in the IDoc status:

  • 8/3/2019 Archiving IDocs

    11/11

    Now try executing the transaction SARA and archive the IDocs.