‎2008 Mar 12 4:59 AM
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 P0001MSTBR and display it when the user saves the infotype record. Any sample code for implementing this method would be very helpful.
Thanks
Sri
‎2008 Mar 12 5:14 AM
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
‎2008 Mar 12 5:14 AM
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
‎2008 Mar 12 5:22 AM
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
‎2008 Mar 12 5:28 AM
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
‎2008 Mar 12 2:50 PM
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.
‎2008 Mar 12 3:10 PM
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
‎2008 Mar 12 5:46 PM
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?
‎2008 Mar 26 6:53 AM