2008 Aug 27 6:27 PM
Hi All,
I am implementing HRPAD00INFTY badi for infotype 171.
In the method
cl_hr_pnnnnn_type_cast=>prelp_to_pnnnn
exporting
prelp = ????
what should i pass for prelp.
Can anyone give a suggestion
Thanks
2008 Aug 27 7:13 PM
Hi
In the Badi "HRPAD00INFTY", where is the method "prelp_to_pnnnn"?
I can see only following methods
BEFORE_OUTPUT
AFTER_INPUT
IN_UPDATE
Please let me know.
bye
2010 Dec 10 10:32 AM
IN_UPDATE
write in the above method ..
it will reflect after clicked save button in pa40 screen
2010 Dec 14 11:46 AM
Hello sidhartha,
In prelp you should pass the structure which you want to cast for the infotype structure P0171.
Regards,
Chandrashekhar
2010 Dec 14 2:05 PM
Hi
Pass the NEW_IMAGE Work area to prelp. Below is the sample code.
DATA: lxt_prelp TYPE prelp,
r_linetype TYPE REF TO cl_abap_structdescr,
gr_nnnn TYPE REF TO data.
r_linetype ?= cl_abap_typedescr=>describe_by_name( 'P0105' ).
CREATE DATA gr_nnnn TYPE HANDLE r_linetype.
ASSIGN gr_nnnn->* TO <f_nnnn>.
LOOP AT i_new_image INTO lxt_prelp
WHERE infty EQ i_infty.
CLEAR <f_nnnn>.
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp = lxt_prelp
IMPORTING
pnnnn = <f_nnnn>.
MOVE <f_nnnn> TO e_pnnnn.
ENDLOOP.