Skip to Content
0
Former Member
Apr 21, 2008 at 04:00 PM

BADI : HRPAD00INFTY

30 Views

Hi,

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

EXPORTING

PRELP = INNNN

IMPORTING

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).

ENDIF.

IP0016-LFZFR = 22.

CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP

EXPORTING

PNNNN = IP0016

IMPORTING

PRELP = INNNN.

can anyone help me on this???

thanks

jayanthi.K