SAP Function RP_SET_PRDAT_PRTEV - HR: Set PRDAT and PRTEV in Payroll Status infotype (0003)

Parameter Reference Type Length Default Optional Text
P_ENQUEUE RPUXXXXX-KR_FELD1 C 1 'X' X Lock personnel number? 'X'(default) = Yes
P_FORCE RPUXXXXX-KR_FELD2 C 1 ' ' X Set even if new PRDAT is before old one? 'X'= Yes
P_PERNR P0003-PERNR N 8 Personnel Number of Employee
P_PRDAT P0003-PRDAT D 8 X Date: Earliest personal RA date to be set
P_PRTEV P0003-PRTEV D 8 X Date: Earliest personal PDC RA date to be set

Exception Text
NO_PERNR Personnel number does not exist (no IT0003)
OLD_PRDAT_HIGHER Old PRDAT is higher than new one (if P_FORCE=X)
OLD_PRTEV_HIGHER Old PRTEV is higher than new one (if P_FORCE=X)
PERNR_ENQUEUED Personnel number is locked (only if Lock is set)

Functionality
This function module enables you to directly set theEarliest personal retroactive accounting date andEarliest personal recalculation date for time evaluation
for a single personnel number. You cannot, however, use it todelete the existing value in this field and reset the initialvalue.
This is done by setting the relevant field in the Payroll Statusinfotype (P0003-PRDAT or P0003-PRTEV). The date is only set to theinput value if the old value is smaller. Otherwise an exception occurs,and an update is not performed.
However, if you choose the value 'X' for the P_FORCE input value, thecurrent date is set.
When you use this function module, you can choose whether or not tolock the personnel number (ENQUEUE). If the default is not used ('X'),the personnel number should not be locked (' ') if the calling programhas already done so.
The Payroll Status infotype (0003) is changed when it is updated. Aninfotype log may be written if required.

Further information

Documentation on the function group.
Documentation on other modules in the function group.