Skip to Content
avatar image
Former Member

BDC

Hi friends,

I am running call transaction method using mode ‘N’ in debugging once the cursor reaches to call transaction statement if I press f6 the sy-subrc value is becoming 0 and I press f5 the sy-subrc value is becoming 1001. Please tell me what could be the difference.

And how to rectify this . I want sy-subrc value every time zero. If I give mode ‘E’ that time sy-subrc is becoming 0.

Thanks to all.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 20, 2007 at 11:39 AM

    Hi,

    Better you write your code then it will easy for me to understand your problem .

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      PERFORM bdc_dynpro USING 'SAPMM07M' '0400'.

      PERFORM bdc_field USING 'BDC_CURSOR'

      'RM07M-LGORT'.

      PERFORM bdc_field USING 'BDC_OKCODE'

      '/00'.

      PERFORM bdc_field USING 'MKPF-BLDAT'

      • syst-datum. x_date.

      PERFORM bdc_field USING 'MKPF-BUDAT'

      • syst-datum.

      x_date.

      PERFORM bdc_field USING 'RM07M-BWARTWA'

      '309'.

      PERFORM bdc_field USING 'RM07M-WERKS'

      zv1fpl-zprwerks.

      PERFORM bdc_field USING 'RM07M-LGORT'

      lv_lgort.

      PERFORM bdc_field USING 'XFULL'

      'X'.

      PERFORM bdc_field USING 'RM07M-WVERS2'

      'X'.

      PERFORM bdc_dynpro USING 'SAPMM07M' '0421'.

      PERFORM bdc_field USING 'BDC_CURSOR'

      • 'MSEGK-WEMPF'.

      'MSEG-CHARG(01)'.

      PERFORM bdc_field USING 'BDC_OKCODE'

      '/00'.

      • PERFORM bdc_field USING 'MSEGK-WEMPF'

      • ' '.

      PERFORM bdc_field USING 'MSEGK-UMWRK'

      zsdv1temp-werks.

      PERFORM bdc_field USING 'MSEGK-UMLGO'

      lv_lgort.

      PERFORM bdc_field USING 'MSEGK-UMMAT'

      zsdv1temp-zdmatnr.

      PERFORM bdc_field USING 'MSEG-MATNR(01)'

      zv1fpl-matnr.

      • PERFORM bdc_field USING 'MSEG-ERFMG(01)'

      • zv1fpc-zmenge.

      PERFORM bdc_field USING 'MSEG-CHARG(01)'

      • lv_dest.

      lv_dest1.

      PERFORM bdc_field USING 'DKACB-FMORE'

      'X'.

      PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.

      PERFORM bdc_field USING 'BDC_OKCODE'

      '=ENTE'.

      • PERFORM bdc_field USING 'DKACB-FMORE'

      • 'X'.

      • PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.

      • PERFORM bdc_field USING 'BDC_OKCODE'

      • '=ENTE'.

      • PERFORM bdc_dynpro USING 'SAPMM07M' '0410'.

      • PERFORM bdc_field USING 'MSEG-UMCHA'

      • lv_dest.

      • PERFORM bdc_field USING 'DKACB-FMORE'

      • 'X'.

      PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.

      PERFORM bdc_field USING 'BDC_OKCODE'

      '=ENTE'.

      PERFORM bdc_dynpro USING 'SAPMM07M' '0421'.

      PERFORM bdc_field USING 'BDC_CURSOR'

      'MSEG-ERFMG(01)'.

      PERFORM bdc_field USING 'BDC_OKCODE'

      '=BU'.

      PERFORM bdc_field USING 'DKACB-FMORE'

      'X'.

      PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.

      PERFORM bdc_field 'BDC_OKCODE'

      '=ENTE'.

      GET PARAMETER ID 'DBG' FIELD xdebug.

      IF xdebug IS NOT INITIAL.

      xmode = 'A'.

      ELSE.

      xmode = 'N'.

      ENDIF.

      CALL TRANSACTION 'MB11' USING i_bdcdata MODE xmode.

      IF sy-subrc NE 0.

      MESSAGE e000(zz) WITH 'Call Transaction failed'.

      ENDIF.

      ENDIF.

      ENDFORM. " mb11

  • avatar image
    Former Member
    Aug 20, 2007 at 11:41 AM

    1001 Error in batch input processing.

    Sy-subrc 1001 is error in batch input data .

    so try to correct this error .

    0 The batch input processing of the called transaction was successful.

    < 1000 Error in the called transaction. If within the transaction a message was sent, you can receive it using the addition MESSAGES.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 11:43 AM

    Hi,

    I think you have writen the CALL TRANSACTION STATMENT wrongly, just follow this steps

    • Call transaction to update customer instalment text

    CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded