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: 

Read parameters in method IN_UPDATE in BADI HRPAD00INFTY

mayra_cobo
Explorer
0 Kudos

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.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

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