Procedure documentationArchiving Customs Log Data with MM_PREF

 

Archiving object MM_PREF for archiving customs log data.

You can use archiving object MM_PREF to archive and delete the logs written by the preference determination programs.

Prerequisites

There is no Application Customizing for this archiving object. The system determines whether a data record can be archived by comparing its time stamp with the date of parameter Archivable until on the selection screen.

Tables

When you use the archiving object MM_PREF, data is archived from the following tables:

Table

Table name

MMPREF_PRO_01

Logging table for archiving object MM_PREF

MMPREF_PRO_01_B

Log table - Preference - Information from rules

MMPREF_PRO_02

Log table - Main component - Information

MMPREF_PRO_03

Log table - Component - Information

The following table shows the programs that exist for the archiving object MM_PREF. To display the programs used, use transaction AOBJ.

Program

Function

RMPREFWR

Write

RMPREFDL

Delete

The standard variants SAP&PROD (production mode) and SAP&TEST (test mode) are delivered for the delete program.

ILM-Based Information for the Archiving Object

You can use this archiving object with the MM_PREF ILM object as part of SAP Information Lifecycle Management. In order to do so, you must activate the associated business function Information Lifecycle Management (ILM) (transaction SFW5). The system then also displays the ILM Actions frame. You can use these actions to archive documents with the retention periods defined in the Information Retention Manager. You can also make snapshots (copies) of data or delete data that fulfills the prerequisites.

The following fields for MM_PREF are defined in the ILM policy and are visible when processing ILM policies (transaction IRMPOL):

  • Available Time Bases

    Time at which log record was created (CREATION_DATE)

  • Available Condition Fields

    • Material number (MATNR)

    • Plant (WERKS)

  • Available Policy Categories

    RTP: Retention Rules

For more information, see SAP Information Lifecycle Management.

Procedure

To call archive administration (transaction SARA) with archiving object MM_PREF from the SAP Easy Access menu, choose Start of the navigation path Logistics Next navigation step Sales and Distribution Next navigation step Foreign Trade/Customs Next navigation step Preference Next navigation step Preference Processing Next navigation step Archiving Next navigation step Archive Administration End of the navigation path.

Alternatively, you can also call archive administration under Start of the navigation path Tools Next navigation step Administration Next navigation step Administration Next navigation step Data Archiving End of the navigation path and enter object name MM_PREF.

Write

You can select the customs logs to be archived in both the Preference f. and Constraints frame in accordance with the following criteria:

  • Material

  • Plant

  • Archiving until date

To display the customs logs from the SAP Easy Access menu, choose Start of the navigation path Logistics Next navigation step Sales and Distribution Next navigation step Foreign Trade/Customs Next navigation step Preference Next navigation step Preference Processing Next navigation step Customs Log End of the navigation path. You can also display archived customs logs.

For more information about archive information structures, see the application documentation for data archiving under Start of the navigation path Data Archiving with Archive Development Kit (ADK) Next navigation step Archive Information System Next navigation step Using the Archive Information System End of the navigation path.

More Information

For more information about the archiving object, see the application documentation for data archiving under Start of the navigation path Data Archiving Next navigation step Data Archiving in the ABAP Application System Next navigation step Data Archiving with Archive Development Kit (ADK) Next navigation step Archiving Object End of the navigation path.