11.12.10

SAP Note 12524 - Correction of leave inconsistencies

Symptom:

If inconsistencies still occur in the leave reduction (the leave reduction from infotype 2001 does not match the reduction in infotype 0005) once you have applied the corrections described in note 21216, you can correct them as follows.
(The procedure for Releases 2.1G - 2.1L, 2.2* and 3.0A - 3.0C only. The procedure for later releases is decribed in the collective note).

Cause and prerequisites
Solution

You can correct leave deduction by carrying out the following steps:

  • For releases up to and including 2.2*, you must make the following corrections to form "fill_tab_holiday" in report RPTBPC10, as an error otherwise occurs in hourly leave deduction:

...
form fill_tab_holiday.
move-corresponding ptabs to holiday.
move ptabs-datum to holiday-date.
move ptabs-datum(4) to holiday-kjahr.
move p2001-beguz to holiday-beguz.
move p2001-enduz to holiday-enduz.
move t554s-ktart to holiday-ktart.
move-corresponding t554x to holiday.
* if ptabs-zeinh eq '01'. "Stunden ---> deactivate
if ptabs-zeinh eq '001'. "Stunden <--- insert
move ptabs-abrst to holiday-anzhl.
move ptabs-abrtg to holiday-anzh1.
else.
...

  • Delete cluster PC (report RPUP1D00 or RPUP1D10) You can delete a number of PCL1 records using report RPUP1D10, whereas each record must be selected individually for deletion when using the report RPUP1D00. You can delimit the choice of records to be selected in both reports by means of the Relation ID (specify cluster to be selected, in this case 'PC') and Sort (specify a key composed from personnel number and calendar year) fields. You must specify the user ID in the Password field in both cases, and when using RPUP1D00 you must also flag the "Delete" field.
  • Execute report RPTBPC10.

This report rectifies the leave account. You can delimit the choice of records to be corrected by specifying various selection criteria relating, for example, to the personnel number, payroll area and period. Select the 'Correct leave deduction' and 'Save leave deduction' fields, and 'Log output' if you wish the system to display a log afterwards.

  • Set field PKOPT in table T582Z to '2' for infotypes 2001 and 2002.
  • Run report RPTBPC00 with the following parameters:
    • Data selection period: max. 2 years
    • Calendar generation: 'F'

This report regenerates the personal calendar necessary for maintaining the annual and monthly calendars. (When generating a calender with 'U' in Austria, problems can occur.)

  • Now reset field PKOPT in table T582Z to its previous value.

    Please observe that for releases 2.1 and 2.2 the note 13469 is implemented, because if not, rounding errors can occur for records lasting less than one day.
Additional key words

Leave, leave entitlement, leave reduction, leave account, remaining leave, P0005, I0005, P2001, I2001.

No comments:

Post a Comment