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: 

BADI HRPAD00INFTY is not working in ESS

Former Member
0 Kudos

Hi Gurus,

I have a requirement for Infotype 0006 at the time of saving or updating or deleting the infotype record. I used BADI HRPAD00INFTY for this. It is working fine if we go through PA30 T-code.

If I enter the records into infotype 0006 through ESS then this BADI is not triggering. Tried in SDN and found that for ESS we need to use BADI HRPAD00INFTYBL. In this my problem is how can we get whether it is updation or deletion or creation mode?

Otherwise can any one provide me another BADI is available for this scenario which will work through ESS.

Thanks,

SC

3 REPLIES 3

former_member201275
Active Contributor
0 Kudos

If you go into this badi there is an icon for 'Badi Documentation' which explains everything. The badi determines the mode and processes the appropriate method i.e. insert, modify or delete.

CL_EXM_IM_HRPAD00INFTYBL is an enhancement example with comments of how to use.

0 Kudos

If you are trying to use this BADI and you don't have access to the current operation being executed (INS, MOD, DEL etc), you can always have access by using the PSYST structure used on the main program of the infotype you are working with.

You just have to use a field-symbol to get access.


FIELD-SYMBOLS: <FS> TYPE PSYST.

ASSIGN('(MP000100)PSYST') TO <FS>.

CASE <FS>-IOPER.
 WHEN 'MOD'.
....
.....

ENDCASE.

Former Member
0 Kudos

Hello SC,

When you are using HRPAD00INFTYBL, there are different methods that gets called when you perform INSERT, UPDATE and DELETE on infotypes. You can refer Example Implemenation Class CL_EXM_IM_HRPAD00INFTYBL for this.

Regards.