deletion of posting runs in sap hcm

5
Configuration and Process Document Knowledge Article Page 1 of 5 Deletion of Posting Runs in SAP HCM Somshankar De SAP HR Payroll Consultant (E-mail: [email protected])

Upload: roys-palnati-s

Post on 28-Sep-2015

69 views

Category:

Documents


3 download

DESCRIPTION

deletion of posting run sap hr

TRANSCRIPT

  • Configuration and Process Document

    Knowledge Article Page 1 of 5

    Deletion of Posting Runs in SAP HCM

    Somshankar De SAP HR Payroll Consultant

    (E-mail: [email protected])

  • Configuration and Process Document

    Knowledge Article Page 2 of 5

    Contents

    1. Background ..................................................................................................................................................... 3 2. Root Cause ...................................................................................................................................................... 3 3. Solution ............................................................................................................................................................ 3 4. Process ............................................................................................................................................................ 4

  • Configuration and Process Document

    Knowledge Article Page 3 of 5

    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.

    Fig#1: Table PCALAC

    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.

  • Configuration and Process Document

    Knowledge Article Page 4 of 5

    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.

  • Configuration and Process Document

    Knowledge Article Page 5 of 5

    Fig#2: 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).

    Posting Run Numbers:

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