Un empleado cesado el 1.4.2011 en la PA20, va a tener en el extractor una fecha de inicio para la salida de la empresa de 31.03.2011:
En la página Help de SAP se indica: “A special date calculation takes
place for leaving actions. Actions are only identified as leaving actions if
the employment status of the action is changed to the value withdrawn (STAT2 = o). For these actions, one
day is subtracted from the start date of the action” http://help.sap.com/saphelp_nw04/helpdata/en/29/02b43947f80c74e10000000a114084/content.htm
Notas:
Note 381239 - HR BW: Counting leavings using actions
Si queremos que en el BW sea de 1.4.2011 tenemos que Incluir este código en la transformación:
Para dia:
* ABB 15.05.2013
* 0HR_PA_1 extractor returns in BW day -1 compared with that of
* ECC whenever the Employee Status change on incative (=0) and the
* action type ( "10") .
* To avoid this in BW you may insert in the trasformation sample code:
* Note 381239 - HR BW: Counting leavings using actions
if SOURCE_FIELDS-STAT2 = '0' and SOURCE_FIELDS-MASSN
= '10'.
RESULT = SOURCE_FIELDS-CALDAY + 1.
else.
RESULT = SOURCE_FIELDS-CALDAY.
endif.
* ABB 15.05.2013
Para mes:
data: aux_day TYPE D.
clear aux_day.
if SOURCE_FIELDS-STAT2 = '0' and SOURCE_FIELDS-MASSN = '10'.
aux_day = SOURCE_FIELDS-CALDAY + 1.
RESULT = aux_day(6).
else.
RESULT = SOURCE_FIELDS-CALDAY(6).
endif.