08-11-2010 2:08 PM
Hi,
We need to use method IN_UPDATE of BADI HRPAD00INFTY, but we doesn't know how to access data provided on parameters:
VALUE( IPSPAR ) TYPE PSPAR Work Fields for Dialog Control
VALUE( OLD_IMAGE ) TYPE PSOPER_TAB Before Image: Infotype Records Before Change
VALUE( NEW_IMAGE ) TYPE PSOPER_TAB After Image: Infotype Records Following Change
VALUE( OLD_PREF_IMAGE ) TYPE PREF_OPER_TAB Before Image for Assignment Sizes
VALUE( NEW_PREF_IMAGE ) TYPE PREF_OPER_TAB After Image for Assignment Sizes
Can you provide us xample coding?
Thanks in advance....
Best regards,
Mayra.
08-11-2010 3:50 PM
In the mehod of the implementation crated by SE19 those field are available, check via SE19 there may be some SAP standard implementation in your system (like PY_UPD_T52RIC)
FIELD-SYMBOLS: <f> type any.
DATA: psoper_wa TYPE psoper,
inf_tabname(10).
DATA: p0267 TYPE p0267,
p0221 TYPE p0221.
LOOP AT new_image INTO psoper_wa
WHERE infty EQ '0267'
OR infty EQ '0221'.
CONCATENATE 'P' psoper_wa-infty INTO inf_tabname.
ASSIGN (inf_tabname) TO <f>.
CLEAR <f>.
<f> = psoper_wa.
Regards,
Raymond
08-11-2010 3:50 PM
In the mehod of the implementation crated by SE19 those field are available, check via SE19 there may be some SAP standard implementation in your system (like PY_UPD_T52RIC)
FIELD-SYMBOLS: <f> type any.
DATA: psoper_wa TYPE psoper,
inf_tabname(10).
DATA: p0267 TYPE p0267,
p0221 TYPE p0221.
LOOP AT new_image INTO psoper_wa
WHERE infty EQ '0267'
OR infty EQ '0221'.
CONCATENATE 'P' psoper_wa-infty INTO inf_tabname.
ASSIGN (inf_tabname) TO <f>.
CLEAR <f>.
<f> = psoper_wa.
Regards,
Raymond