‎2008 Mar 12 4:56 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
Edited by: Sri Maddineni on Mar 12, 2008 5:58 AM
‎2008 Mar 12 5:30 AM
Hi Sri,
Please check the documentation for the method below to know the purpose of the fields...
Update Program: Call-Up During Update
Functionality
The method Update: Call During Update (IN_UPDATE) is called in the update task of Personnel Administration in the UPDATE form.
Parameters
IPSPAR
Work fields for dialog control
OLD_IMAGE
Before Image: Infotype records prior to change
NEW_IMAGE
After Image: Infotype records following change
OLD_PREF_IMAGE
Before Image for assignment values
NEW_PREF_IMAGE
After Image for assignment values
to view the documentation
Go to se18 -> enter the name of the badi -> click display->
Press on the "documentation" tab
Athough in all cases documentation may not be available....
in this case a pop up will come after you press "documentation"
Scroll towards the bottom and
click on "Method: Update: Call During Update" highlighted in blue to view the documentation
reward if helpful
Regards
Byju
‎2008 Mar 12 5:27 AM
Hi,
Steps for implementing BADI. For eg for HRPAD00INFTY BADI:
1. Execute Business Add-In(BADI) transaction SE18
2. Enter BADI name i.e. HRPAD00INFTY and press the display
button
3. Select menu option Implementation->Create
4. Give implementation a name such as Z_HRPAD00INFTY
5. You can now make any changes you require to the BADI within this
implementation, for example choose the Interface tab
6. Double click on the method you want to change, you can now enter
any code you require.
7. Please note to find out what import and export parameters a
method has got return the original BADI definition
(i.e.HRPAD00INFTY) and double click on the method name
for example within HRPAD00INFTY contract is a method
8. When changes have been made activate the implementation
Regards
Kiran Sure
‎2008 Mar 12 5:30 AM
Hi Sri,
Please check the documentation for the method below to know the purpose of the fields...
Update Program: Call-Up During Update
Functionality
The method Update: Call During Update (IN_UPDATE) is called in the update task of Personnel Administration in the UPDATE form.
Parameters
IPSPAR
Work fields for dialog control
OLD_IMAGE
Before Image: Infotype records prior to change
NEW_IMAGE
After Image: Infotype records following change
OLD_PREF_IMAGE
Before Image for assignment values
NEW_PREF_IMAGE
After Image for assignment values
to view the documentation
Go to se18 -> enter the name of the badi -> click display->
Press on the "documentation" tab
Athough in all cases documentation may not be available....
in this case a pop up will come after you press "documentation"
Scroll towards the bottom and
click on "Method: Update: Call During Update" highlighted in blue to view the documentation
reward if helpful
Regards
Byju
‎2008 Mar 12 6:19 AM
I want to know how to use the parameters IPSPAR, OLD_IMAGE, NEW_IMAGE, OLD_PREF_IMAGE, NEW_PREF_IMAGE in coding. Can you post any sample code implementing the method so as to get an idea?
Thanks
‎2008 Mar 12 5:48 PM
Hi Experts,
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?
Thanks
‎2008 Mar 13 3:03 PM
‎2008 Mar 12 9:22 PM
hai.......to all sdn members
goodday,
i am new to the concept badis, i want to know the purpose and funtionality of badi and how to implement and purpose of implementing badi and performing badi and can you provide me different types of sample examples on badis , and provide me the complete imformation regarding badi, i would be very thankful to you.
Thanks&Regards
Shaik.Elias