Archiving and Destroying Index Files Using PA_PIDX (PY-XX-DT)
You can use the archiving object HR: Index Files for Posting to Accounting
(PA_PIDX
) to archive or destroy index files that are created when generating posting documents in Payroll (PY) (payroll documents).
Index files are generated during posting to Accounting
. With these index files, an assignment is set up between the payroll results for employees and the data from the payroll document.
The archiving object PA_PIDX
supports the SAP NetWeaver Information Lifecycle Management (ILM) function for archiving and the destruction of data. For the destruction of data, you specify the rules for retaining index files. When running the write program of the archiving object, the system performs checks to evaluate these rules and determines which of the selected data can be destroyed. The data is temporarily written to an archive file. After the write phase, the associated delete program deletes the data from the database and the archive.
You are familiar with the basics of data archiving and data destruction.
For more information, see Data Archiving (CA-ARC) and Introduction to the Destruction of Data.
You are familiar with the functions for ILM policies and rules and have defined the retention rules for the archiving object. For more information, see Maintain Policies and Rules.
You can only archive entries of index files for which the associated payroll results have already been archived. For more information, see Archiving Periods and Criteria (PY-XX-DT).
Note
If you want to override this system response, you need to set the switch ARCHI
for the group ID POST
in table T77S0
.
The archiving date for archiving the archiving object PA_PIDX
is the earliest retroactive accounting date for Payroll
. When archiving PA_PIDX
, the system ensures that the index files are only archived up to the earliest retroactive accounting date for Payroll
.
The following actions are available for the archiving object PA_PIDX
:
Archive
Delete
The standard SAP system is set up such that the delete program is called automatically after archiving. We recommend that you do not change this setting.
Administration
You can differentiate between the run types PP
and PM
. Depending on the run type, the archiving object PA_PIDX
archives entries in different tables that belong to the selected posting runs:
Run Type | Description | Tables |
|---|---|---|
PP | Posting runs ( |
|
PM | Posting runs for payments ( |
|
The table PCALAC
(Selection of Posted Payroll Results
) is archived but remains in the database.
A container of the archiving object PA_PIDX
is about 4 KB in size.
Familiarize yourself with the features of this archiving object.
To display the tables from which data is deleted for this archiving object, in Archive Administration
(transaction SARA
), choose DB Tables
.
Perform the Customizing settings for archiving.
For more information, see Application Customizing (PY-XX-DT)
Familiarize yourself with the periods and criteria for archiving.
For more information, see Archiving Periods and Criteria (PY-XX-DT)
Archive or destroy the index files.
For more information, see Archiving and Destroying Index Files (PY-XX-DT).
Create a variant for the write program of this archiving object.
For more information, see Creating a Write Variant (PY-XX-DT)
Create a variant for the display program of this archiving object so that you can display archived index files.
For more information, see Displaying Archived Index Files (PY-XX-DT)
Ensure that you have the authorizations required for this archiving object.
For more information, see Authorizations (PY-XX-DT)