Archived discussions are read-only. Learn more about SAP Q&A

BDC FOR INFOTYPE 0006 IN pa30

hi i have the following bdc..

REPORT zbapi NO STANDARD PAGE HEADING LINE-SIZE 255.

INCLUDE bdcrecx1.

START-OF-SELECTION.

  PERFORM open_group.

  PERFORM bdc_dynpro      USING 'SAPMP50A' '1000'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '/00'.
  PERFORM bdc_field       USING 'RP50G-PERNR'
                                '1'.
  PERFORM bdc_field       USING 'RP50G-TIMR6'
                                'X'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RP50G-SUBTY'.
  PERFORM bdc_field       USING 'RP50G-CHOIC'
                                '6'.
  PERFORM bdc_field       USING 'RP50G-SUBTY'
                                '2'.

  PERFORM bdc_dynpro      USING 'SAPMP50A' '1000'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RP50G-PERNR'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=MOD'.
  PERFORM bdc_field       USING 'RP50G-PERNR'
                                '1'.
  PERFORM bdc_field       USING 'RP50G-TIMR6'
                                'X'.
  PERFORM bdc_field       USING 'RP50G-CHOIC'
                                'Addresses (IT0006)'.
  PERFORM bdc_field       USING 'RP50G-SUBTY'
                                '2'.

  PERFORM bdc_dynpro      USING 'MP000600' '2004'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'P0006-STATE'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '/00'.
  PERFORM bdc_field       USING 'P0006-STATE'
                                'SA'.
  PERFORM bdc_field       USING 'P0006-LAND1'
                                'AU'.

  PERFORM bdc_dynpro      USING 'MP000600' '2004'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'P0006-BEGDA'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=UPD'.
  PERFORM bdc_field       USING 'P0006-STATE'
                                'SA'.
  PERFORM bdc_field       USING 'P0006-LAND1'
                                'AU'.

  PERFORM bdc_transaction USING 'PA30'.

  PERFORM close_group.

i want to change the STATE nd LAND1, but by using the above BDC it doesn't change the value i pass, but it works with normal run can any one see wat's wrong witd the above BDC.

abhishek suppal

Tags:
Not what you were looking for? View more on this topic or Ask a question