Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

Deletion of Posting Runs in SAP HCM

1. Background:

A live posting run has been deleted or reversed in transaction PCP0, and the status of the run is displayed as deleted or reversed. At the time of creating the posting run again for the affected payroll period, the report rejects all employees except the first one, because these are already flagged as transferred.

2. Root Cause:

There is an error in program. The table PCALAC (Activities per Payroll Result) is deleted for the first personnel number of a posting run only. Therefore when you repeat the run, the system mistakenly assumes that there was already a productive run, even though this was deleted or undone.


3. Solution:

When a productive posting run is deleted, the main task is to unmark the PCALAC table, so that new posting runs can happen. This includes restoring the old status of the PCALAC table. In order to do this, extensive database activity against the PCALAC table is necessary.

Implement the correction instructions mentioned in Note#1667322 - Deletion of posting runs,Incomplete. This note takes the necessary action on object HR_PAYROLL_RESULTS_UNREGISTER or the manual changes required as follows.



Context Block

* process pcalac per pernr

SORT IPCALAC BY PERNR SEQNO TYPE RUNID.

LOOP AT IPCALAC INTO wa_ipcalac.


Delete Block

APPEND wa_ipcalac to dpcalac.

i = sy-tabix + 1.

Insert Block

i = sy-tabix + 1. "XFE

APPEND wa_ipcalac to dpcalac.

* i = sy-tabix + 1.

After implementing this note the inconsistent status of the relevant run can be corrected by the function module HR_PAYROLL_RESULTS_UNREGISTER.

HR_PAYROLL_RESULTS_UNREGISTER is a standard SAP function module available within R/3 SAP systems depending on the version and release level. Below are the pattern details for this FM showing its interface including any import, export parameters etc.

Within the comments section below there is also an opportunity for adding useful hints, tips and information specific to this SAP function. This will then be available for the users to easily find by simply searching on the object name HR_PAYROLL_RESULTS_UNREGISTER or its description.

Pattern for FM HR_PAYROLL_RESULTS_UNREGISTER - HR PAYROLL RESULTS UNREGISTER:


CALL FUNCTION 'HR_PAYROLL_RESULTS_UNREGISTER' "

EXPORTING

type = " pevst-type

runid = " pevst-runid

* TABLES

* pernrs = " pernr_tab

. " HR_PAYROLL_RESULTS_UNREGISTER

4. Process

The inconsistent status of the relevant run can be corrected as follows:

Call transaction SE37 for the function module: HR_PAYROLL_RESULTS_UNREGISTER.

Transaction SE37: Function Builder: Initial Screen

Please choose "Test/Execute F8" - . Enter the run type PP (Payroll posting) as the parameter and the relevant run number. The table for personnel number entries remains empty. Choose "Execute" (F8).






After exiting the function module, the period can be updated again and the error no longer occurs.



I hope you all enjoyed reading through this document.

Thanks

Omprasad Reddy

Labels in this area