Archiving Compliance Data with EHPRC_COD
Archiving Compliance Data with EHPRC_COD
You archive compliance data records by using the archiving object EHPRC_COD.
During archiving, the system determines all relevant compliance data records and stores them in an archive file. In a follow-up process, it deletes the archived compliance data record from the database.
Prerequisites
The following prerequisites need to be fulfilled before a compliance data record can be archived:
-
The residence period has expired.
Structure
Tables
The archiving object EHPRC_COD supports the archiving and deleting of data from different tables.
Under Archive Administration (transaction SARA), you can check the database tables of the archiving object EHPRC_COD.
Programs
|
Action |
Program |
Description |
|
Preprocessing |
R_EHPRC_COD_ARCH_PRE |
Determines the archivable Compliance data according to the specified selection criteria and changes the status of the records to Archiving in Progress. |
|
Write |
R_EHPRC_COD_ARCH_WRI |
Determines the archivable Compliance data according to the specified selection criteria, taking into account only those Compliance data records with the status Archiving in Progress. Stores the selected compliance data records in an archive file and changes their status to Archived. |
|
Deleting |
R_EHPRC_COD_ARCH_DEL |
Deletes the archived Compliance data records from the database. |
Classes
The archiving object uses the following classes:
Generic archiving class /BOFU/CL_ARCH_GENER1 to ensure that all material data sheets are archived together with their related business objects. You can find the archiving class under Archiving object definition (transaction AOBJ)
Maintain BO-specific Residence Period
As a standard, the archiving object EHPRC_COD for the business object EHPRC_COMPLIANCE_DATA, is delivered with a residence period of 9999 days as default customizing for the Customizing under . Đ¢his high value prevents you from deleting data accidentally and you can adapt the residence period according to your requirements.
Application-Specific Customizing for EHPRC_COD
Before you can use the archiving object EHPRC_COD to archive compliance data, you must first check the archiving settings in Customizing.
Features
The following information has been added in Customizing forMaintain BO-Specific Archiving Objects under :
-
Business object: EHPRC_COD
-
Archiving object: EHPRC_COD
-
Archiving class: /BOFU/CL_ARCH_GENER1
You can access all other Customizing settings under Archive Administration (transaction SARA) by using the Customizing button.
Displaying Archived Compliance Data
You can use the Archive Information System (Transaction SARI) to display the archived compliance data in business view or technical view.
-
The archiving object EHPRC_COD has one information structure, which is based on the field catalog SAP_EHPRC_COD.
-
The information structure has been activated and filled.
-
The information structure contains the field ROOT_KEY as a key field.
Features
You use the following settings to display summary reports for the archived compliance data
-
Archiving Object EHPRC_COD
-
Archive Infostructure SAP_EHPRC_COD
By double-clicking the node ID in the result list of the archive infostructure, you can display the compliance data records.
ILM-Related Information for EHPRC_COD
You can use the archiving object EHPRC_COD with the EHPRC_COD ILM object as part of SAP Information Lifecycle Management to archive compliance data records.
Prerequisites
You have activated the business function ILM (Information Lifecycle Management) under Display Business Function Status (transaction SFW5) to display the compliance data frame under Archive Administration (transaction SARA).
In the Information Retention Manager (IRM), you have specified the retention periods that are used to archive the documents under Archive Administration:
-
IRM Customizing (transaction IRM_CUST)
-
ILM Policies (transaction IRMPOL)
Features
Setting Up ILM Policies
For the archiving object EHPRC_COD, the following fields have been specified in the ILM policies under IRM Customizing:
-
Available Time References
-
Date (LAST_CHANGE_DATE)
-
-
Available Time Offsets
-
-
Month (END_OF_MONTH)
-
Year (END_OF_YEAR)
-
-
Available Condition Fields
-
REQ (EHFND_CHECK)
-
CATEGORY (EHPRC_COD_CATEGORY_CODE)
-
SALABLE_IND (EHPRC_SALABLE_IND)
-
EXTERNAL_IND (EHPRC_COD_EXTERNAL_IND)
-
PURCHASED_IND (EHPRC_PURCHASED_IND)
-
DESIGNED_IND (EHPRC_DESIGNED_IND)
-
SUPP_PART_IND (EHPRC_SUPPLIER_PART_IND)
-
ASSEMBLY_IND (EHPRC_COD_ASSEMBLY_IND)
-
-
Available Policy Categories
-
RST: Residence Rules
-
RTP: Retention Rules
-
The entries of these fields are visible when processing ILM Policies.
Setting up Customer-Specific Rules for ILM Policies
Under IRM: Customer-Specific Settings (transaction IRM_CUST_CSS) you can set up customer-specific rules for the archiving object EHPRC_COD. These rules are considered when compliance data records are archived by using ILM policies.
Variant Settings for Archiving EHPRC_COD
When you schedule an archiving program under Archive Administration (transaction SARA) for compliance data, you must either enter an existing variant or create a new one. The variant contains the selection criteria for the compliance data that you want to archive.
Features
Under compliance data, you can specify the compliance data that you want to archive.
More Information
- For more information on ILM, see the SAP ILM documentation in the SAP ERP Library on SAP Help Portal under http://help.sap.com/erp .
- For more information about activating the ILM business function, see the SAP ILM documentation in the SAP ERP Library on SAP Help Portal under http://help.sap.com/erp .

