I have implemented the BADI HRPAD00INFTYto default value in infotype 0016.
I have the following code. but it is not working. the badi is active. and i have checked in debug mode. the value is coming correct but it is not getting defaulted.
i tried through user exit, the code works perfectly.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
PRELP = INNNN
PNNNN = Ip0016.
SELECT SINGLE * FROM PA0298 INTO IP0298
WHERE PERNR = INNNN-PERNR
AND ORDNU NE ''.
IF SY-SUBRC EQ 0.
IP0016-CTNUM = IP0298-ORDNU+0(20).
IP0016-LFZFR = 22.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP
PNNNN = IP0016
PRELP = INNNN.
can anyone help me on this???