08-03-2011 11:42 AM
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
08-03-2011 1:24 PM
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.
08-03-2011 2:50 PM
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.
08-08-2011 10:48 AM
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.