Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HRPAD00INFTY

Former Member
0 Kudos
184

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

4 REPLIES 4

Former Member
0 Kudos
95

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

0 Kudos
95

IN_UPDATE

write in the above method ..

it will reflect after clicked save button in pa40 screen

Former Member
0 Kudos
95

Hello sidhartha,

In prelp you should pass the structure which you want to cast for the infotype structure P0171.

Regards,

Chandrashekhar

Former Member
0 Kudos
95

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.