Running a Program to Reset a Process Instance

Objective

After completing this lesson, you will be able to run a program to reset a process previously initiated.

The Reset of a Previously Initiated Process with the Reset Process Instance Program

Confirm the Monitoring Process

The next step is to confirm the monitoring process. There are two situations where you might need to reset an in-progress payroll process:

  • When a mistake is made in the process
  • When a reset is needed

Previously, we talked about how continuous payroll can start the process when needed, but if a mistake is made, the Payroll Process Manager will need to check the process and reset it from completed to upcoming.

First, it is necessary to run the report in simulation mode and check the log. The PCC Administrator must reset the payroll process by providing information about the process instance ID (from the link to the corresponding process) and then using the back end program to reset the status to upcoming.

Program = PYC_RESET_PROC_INST:

  • Back end SAP Program
  • No transaction (Can create custom transaction)
  • Good for testing
  • Must enter Process Instance ID
The image shows four screens which eventually result in the confirmation of a monitoring process.

Reset Process Instance Log

By default, this Delete and Recreate action is possible only if the process instance has the execution status Not Started. If you need to delete and recreate an already started process, select the option Ignore Execution Status.

The image shows the report log. Be careful with this option in the production environment because this report can delete all process-related data, such as status and action log. Use it for testing and error correction purposes only.

The image shows two screens which result in the report log of a resetted proces instance.

Reset Process Instance Result

Next, you will move the process back to Upcoming Processes so you can start it.

Any payroll issues you have from rerunning a completed payroll may still occur, including the following situations:

  • If Payroll has been posted to FI
  • If Control Record is in a different period

The image shows the result of the reset report. This process now shows under upcoming process where it can be started again.

The image shows two screens, with the result of the reset report as second screen.

Reset a Process Instance

Business Example

The Payroll Process Manager has updated the Z## HRH65 Team Monitoring Payroll Process configuration by adding two new payroll periods for the current year: February and March. However, Process Manager accidentally started the March monitoring process, bypassing February. As a PCC Administrator, you need to reset the process that was started by mistake.

Steps

  1. Call PCC Manage Processes (Manager) Application and add two new payroll periods – February and March of the current year to your Z##_HRH65_Team Monitoring Payroll Process.

    1. Open the Payroll Process Manager favorite folder.

    2. Click on the PCC Manage Processes (Manager) application.

    3. To log into the front end of the training system, provide the username HRH65-## and password Welcome1. (You already used the same username and password to log into the training system.)

    4. Choose Z## HRH65 Team Monitoring Payroll Process and click the Pen (Edit) button in the lower right corner of the screen.

    5. Choose the ‘+’ Add Recurrences button and add two new payroll periods – February and March of the current year to your Z##_HRH65 Team Monitoring Payroll Process.

    6. Validate and then save process configuration.

  2. Call PCC My Processes (Manager) Application, choose under Upcoming Processes Tab Z## HRH65 Team Monitoring Payroll Process for March of the current year, and start it.

  3. Under the Active Processes Tab, choose Z## HRH65 Team Monitoring Payroll Process for March of the current year. Ensure the incorrect payroll period by checking the Create Test Payroll Results step log. Then, copy the Process ID to the clipboard.

    1. To check the Create Test Payroll Data log, choose See details.

    2. Ensure the payroll log displays an excessive number of periods.

    3. Find your process ID for your Z##_HRH65 Team Monitoring Payroll Process in the Application link. It will start with ZPROC and include the date and time stamp. Copy the process ID to your clipboard.

      The ID process should look something like this: ZPROC202407021646377456090_202403.

  4. Run the report PYC_RESET_PROC_INSTComplete Hierarchy Status Refresh for Payroll Process Instances and reset process.

    1. Execute transaction SA38.

    2. Enter the standard program PYC_RESET_PROC_INST.

    3. Click the Execute button.

    4. Enter the Process ID for your team monitoring process along with the year and period in the Process Instance ID field.

      Hint

      Select the forward arrow button to enter the full process name.
    5. Select the Delete and Recreate button and Ignore Execution Status. Verify Display log is already selected.

    6. Firstly, execute with simulation on, check the results to make sure our process was found by the program, and you are only selecting one entry.

    7. Return to the selection screen and uncheck the simulation box.

    8. Execute the program.

  5. Return to PCC Manage Processes (Manager) Application and verify that the started process has been reset and is shown under Upcoming Processes.

    If you need to reset a productive payroll process, be aware that the reset program will not update the payroll control record. Starting the next payroll period with an updated control record requires a manual correction.

Log in to track your progress & complete quizzes