Skip to Content
0
Former Member
Sep 22, 2008 at 07:11 PM

SHDB/BDC - PA40 - How to Avoid Absolute List Position of PA40 Action

75 Views

The following code was generated by SHDB for transaction PA40. It's picking a particular action from the list on the screen (23rd item from the top). This is almost certain to change in production because our dev environment isn't configured exactly the same.

Is there anyway I can avoid using an absolute position in my code do perform this logic? Thanks!

    PERFORM bdc_dynpro      USING 'SAPMP50A'                '2000'.
    PERFORM bdc_field       USING 'BDC_CURSOR'              'T529T-MNTXT(23)'.
    PERFORM bdc_field       USING 'BDC_OKCODE'              '=PICK'.
    PERFORM bdc_field       USING 'RP50G-SELEC(23)'         'X'.