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
2,533

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

Edited by: Sri Maddineni on Mar 12, 2008 5:58 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,625

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,625

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

Read only

Former Member
0 Likes
1,626

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

Read only

0 Likes
1,625

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

Read only

0 Likes
1,625

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

Read only

0 Likes
1,625

Thanks for all the replies.

Read only

Former Member
0 Likes
1,625

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