Ansicht
Dokumentation

/SHCM/RP_PTIMEOV1_ARCH_WRI - Archive/Destroy: Write Program for Time Sheet Daily Availability Data

/SHCM/RP_PTIMEOV1_ARCH_WRI - Archive/Destroy: Write Program for Time Sheet Daily Availability Data

ABAP Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

You can use this program to archive Daily Availability data that you no longer need in the database. The program is used as a write program for the archiving object entitled Daily Availability Data(/SHCM/AVLB). The system reads the data you want to archive from the database table for the daily availability (PTIMEOV1) and writes it to an archive file. In Basis Customizing for Archive Administration (transaction SARA), you determine the naming for the archive files generated during each archiving session.

If you have activated Information Lifecycle Management (ILM), you have the ILM enhancements available in data archiving. During the write phase, the system uses the ILM enhancements to the rules that you defined in the Information Retention Manager (IRM) (transaction IRM_CAT or IRMPOL) for each object instance. The system thus determines the retention period and the storage location for the data object.

Following ILM action is available in this write program:

  • Data Destruction
You use Data Destruction to delete data that is no longer required and that, according to the rules defined in the Information Retention Manager, may be destroyed from the database and the archive and thus meet data privacy legal requirements.

Integration

The programs for the archiving object are controlled using archiving object maintenance (transaction AOBJ). Do not change these entries.

The delete program < DS:RE./SHCM/RP_PTIMEOV1_ARCH_DEL>/SHCM/RP_PTIMEOV1_ARCH_DEL is available for the archiving object /SHCM/AVLB.

The control parameters for executing the program of the archiving object are determined in archiving-object-specific Customizing in Archive Administration (transaction SARA):

  • Start Automatically for delete jobs means that after the write phase for this program, the delete program entered in the transaction AOBJ is automatically started as a background job.

If you have not chosen Start Automatically for deleted jobs, the write program cannot perform the ILM action Data Destruction completely. In this case, the system writes only the database entries to the archive file. To complete the ILM actions, you need to then start the delete program manually.

Which data is deleted depends on the ILM action chosen to run this write program. The delete program deletes only the data records that were written to an archive file by this write program.

Prerequisites

The system checks the user's authorizations for this program. For you to be able to run the program, the authorization object S_ARCHIVE must be entered in your user profile.

To have the ILM enhancements available, you need to have activated Information Lifecycle Management since the archiving object /SHCM/AVLB uses Retention Management.

You need to have made the Customizing settings for the archiving object /SHCM/AVLB in Archive Administration (transaction SARA).

Features

Once the archiving session is complete, the data is indexed and deleted from PTIMEOV1, but only if you have first made the relevant settings in Customizing for Archive Administration.

Selection

You determine which daily availability records are to be destroyed by specifying the employee IDs and period you want to select.

Note
  • To enable you to track the original record of a changed record, the changed record is assigned a reference counter. If your selection criteria mean that only one of the two records would be archived, the system archives neither to ensure the consistency of the data.

  • Employee IDs refers to the IDs from the external HR system.

The other parameters mean the following:

ILM Action:

  • Data Destruction
Only the selected data, which according to the rules that you defined in the Information Retention Manager can be destroyed, is written to an archive file.

Process Control:

  • Test Mode
If you start Data Destruction in test mode, the writing of an archive is simulated for the data that meets the selection criteria and that, according to the archiving-object-specific checks, can be archived. No archive files are created and no data is deleted from the database. The archiving session is not saved to the database and the delete program is not started.
  • Productive Mode
If you choose Productive Mode, you can also select the Delete with Test Variant checkbox:
  • If the checkbox is selected, the delete program is started in productive mode.

  • If the checkbox is not selected, the delete program is started in test mode.

Depending on the chosen ILM action, Productive Mode in conjunction with the Delete with Test Variant checkbox means the following:
  • If you start Data Destruction in productive mode, an archive file is created. If you have not selected the checkbox, the data is deleted from the database and from the archive. If you have selected the checkbox, data is not deleted from the archive or from the database.

Logging:

  • Archiving Log
If you have chosen Complete from the input help for this field, the system issues a detailed log. Use this option only to perform an error analysis in test mode. Since the log is very detailed, you should not create it in productive mode.
  • Comment on Archiving Session
You can enter a short text for the archiving session.

Output

The program issues a list with the number of objects and the volume of archived daily availability data. If a test run has taken place, this is displayed in the statistics. The corresponding archiving session has the number 000000.

Activities

To delete daily availability data fin productive mode, you need to launch the program from Archive Administration (transaction SARA).

You can launch the program from transaction SE38 to create variants or to simulate the archiving of daily availability (test mode).






General Data in Customer Master   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 8105 Date: 20240425 Time: 095747     sap01-206 ( 130 ms )