Application Development and Automation 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: 
Read only

Implementing BADI - HRPAD00INFTY

Former Member
0 Likes
1,463

Hi Experts,

I am new to BADI (though I know the general steps for implementation - se18 and se19) and would like to know how to implement the method IN_UPDATE from the BADI - HRPAD00INFTY. I am not able to figure out what the parameters IPSPAR, OLD_IMAGE, NEW_IMAGE, OLD_PREF_IMAGE, NEW_PREF_IMAGE are for and how they can be used in coding (am looking for info in addition to what is in the documentation). According to the requirement I need to fill the supervisor ID field P0001–MSTBR and display it when the user saves the infotype record. Any sample code for implementing this method would be very helpful.

Thanks

Sri

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,063

Hi Sri,

General steps of badi is like that.

First from se24 for cl_exithandler u can find badi for that.

After searching definition u have to create implementation for that.In that implementation u have to use that all input parameters and tables just like function module and validate your code.

Regards,

Gurprit Bhatia

7 REPLIES 7
Read only

Former Member
0 Likes
1,064

Hi Sri,

General steps of badi is like that.

First from se24 for cl_exithandler u can find badi for that.

After searching definition u have to create implementation for that.In that implementation u have to use that all input parameters and tables just like function module and validate your code.

Regards,

Gurprit Bhatia

Read only

0 Likes
1,063

Hi Gurprit,

Thanks for the reply...I am not able to figure how to use the input parameters for coding my requirement...what do I have do to save the requrired field in IT0001?...the parameters look like they the structure of infotype table...I want to look at some sample code written in this method to try to figure out how these parameters have been used...

Thanks

Sri

Read only

0 Likes
1,063

Hi ,

First Put break-point over there and now put all table parameters and other parameters here.

Example pernr is your input parameters and papa is your table which contain name and address filds so your approch should be like that....

break-point.

pernr = pernr.

papa-name = papa-name.

papa-address = papa-address.

and check weather runtime values are coming or not use that values according to your requirment.

Regards,

Gurprit Bhatia

Read only

0 Likes
1,063

I added the break point in the method IN_UPDATE and then was trying to create a new infotype record in pa30 tcode. But it is not going into debug mode. Any help would be highly appreciated.

Read only

0 Likes
1,063

did u activated the method after puting the break-point.and vth in the same brower give ur transcation code

/ntcode so that u can get into the debug mode

or if u missed any filters in the atrribute also it doesnt triggers

Read only

0 Likes
1,063

Thanks for the reply Raj. I was able to figure it out. But now I am struck in a new issue. None of the parameters of IN_UPDATE method in HRPAD00INFTY BADI have the field MSTBR which I need to update. Could you please suggest me how to work around this?

Read only

0 Likes
1,063

Issue resolved.