Application Development and Automation 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 only

BDC

Former Member
0 Likes
706

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.

4 REPLIES 4
Read only

Former Member
0 Likes
641

Hi,

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

Read only

0 Likes
641

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

Read only

Former Member
0 Likes
641

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.

Read only

Former Member
0 Likes
641

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