Ansicht
Dokumentation

PYC_SUPPORT_DEL_COMPLETED_PI - Payroll Control Center: Delete Completed Process Instances

PYC_SUPPORT_DEL_COMPLETED_PI - Payroll Control Center: Delete Completed Process Instances

CL_GUI_FRONTEND_SERVICES - Frontend Services   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

This report enables you, as system admin of Payroll Control Center, to display and delete completed process instances whose end date is before a specified date. Note that end date is the due date, rather than the completion date, of the process instance.

By deleting completed process instances that are no longer needed, you reduce the number of process instances that are loaded every time the Process Management app is started. This improves the performance of the app.

Integration

This is a backend administration tool for Payroll Control Center.

To delete upcomingprocess instances, you can use the Generate Process Instances (PYC_GENERATE_PROC_INSTANCE) report or use Simplified Configuration for Process app on the frontend.

Prerequisites

To run this report, you must have the following authorization in the authorization object P_PYD_AAUT (Payroll Data Source Framework Administration):

  • P_PYD_AAUT - 04 (Start Reports)

Note that the audit trail will also be deleted. Therefore, if you want to back up the audit trail, make sure to do so before you delete the process instances.

Features

Selection

  • Process ID
Process instance for the specified process ID will be selected.
  • Process Instances Ended Before
Specify end date of process instances (for example, Payroll Period End Date). All the completed process instances whose end date falls on or before the specified date will be listed by the report.

Both fields are mandatory.

Standard Variants

Output

After you execute the report, the completed process instances are grouped into two categories:

  • Process instances that can be deleted
All the completed process instances whose end date falls on or before the specified date can be deleted.
  • Process instances that cannot be deleted
If there are in-execution or upcoming process instances before a completed process instance for the same process, the completed process instance cannot be deleted. This is to avoid gap between process instances.

These process instances are listed in the order of their end date.

A Delete All button is available for the list of completed process instances that can be deleted.

Choose the Delete Allbutton and confirm deletion. Then the listed process instances will be deleted.

Note

You cannot choose to delete only one or some of the process instances in the list. The Delete All button deletes all the completed process instances on the output screen.

The audit trail for the corresponding process instances will also be deleted. Therefore, if you want to back up the audit trail, make sure to do so before you delete the process instances.

When the deletion is successful, the following objects related to the process instances are deleted:

  • Process Instance Level Result Object and corresponding Parameters (PYD_D_RESO and PYD_D_RESP)
  • Process Step Group Instance Result Object and corresponding Parameter Lists (PYD_D_RESO and PYD_D_RESP)
  • Step Instance Result Object and corresponding Parameter Lists (PYD_D_RESO and PYD_D_RESP)
  • Result Object History (PYD_D_RESOH)
  • Result Object generated in shadow run (e.g. validation of alert, event handler) (PYD_D_RESOS)
  • Process Histories (Action Logs and Action Log Items) (PYD_D_AL and PYD_D_ALI)
  • Team Monitoring process (PYC_D_PYPTM_ALT)
  • If process context is enabled, (meaning that validation rules have process ID and Process Instance ID as their sole input parameters based on which the validation rule instances are generated,) the alerts, KPIs, filters and other relevant objects are related to the process instance ID. Therefore, these alerts, KPIs, filters and objects are also deleted.
  • If process context is not enabled, nothing will be deleted.

Activities

Example






rdisp/max_wprun_time - Maximum work process run time   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 4847 Date: 20240520 Time: 095020     sap01-206 ( 68 ms )