Archiving - Maintaining a Variant (PY-XX-DT)
If you run the write program RPAR4W00
of the archiving object HR: Payroll Documents for Posting to Accounting
(PA_PDOC
), you need to enter an exisiting variant or create a new variant. For each archiving session, even for a test run, you need to maintain your own variant. This variant is used to write all document line items of all payroll documents that belong to the entered posting runs and that were posted successfully to an archive file.
On the specified start date, the archive file is written to the output device that you entered in the spool parameters. The system then deletes the archived data from the database.
The variant contains the selection criteria for the payroll documents that you want to archive or destroy. For information about the meaning of the parameters that are available on the selection screen of the write program, see the documentation for the write program RPAR4W00
.
You are on the Archive Administration: Create Archive Files
screen.
Enter a variant name and choose Maintain
.
If required, state whether you want to use the variant for all selection screens, or only to archive payroll documents, and choose Continue
.
For each run type, use the run number to select the posting runs for which you want to archive the payroll documents.
If you have not performed archiving previously, select all posting runs.
If you have already archived payroll documents, select the posting runs that have occurred since the last archiving session.
For documentation purposes, you can enter a comment or a note to characterize the archiving session, for example, information about the period.
Choose Attributes
.
The ABAP: Save Attributes of Variant
screen appears.
Make the settings of your choice and save the variant.
Recommendation
We recommend that you initially start the archiving session as a Test Run
so that you can resolve any errors before archiving. In this case, no archive file is generated and the table entries are not deleted.
Caution
If you want to use the same variant for the productive archiving session, you need to delete the successful test run from the job overview.