Skip to Content
0
Former Member
Dec 16, 2007 at 12:20 PM

Error in BDC_INSERT

225 Views

Hello Everyone,

i have created a BDC in session method,

the screens and all are supposed to be correct and still i am getting this error.

"BDC_INSERT, screen .&. is invalid"

i am using the same screens in many different programs, so i strongly feel that there is no problem with the screen. i have come across this error for the first time

in debugging, it is going into at end of xblnr, but when going to perform bdc_insert there is some error there...

the following is the code...

FORM SESSION.

LOOP AT RECORD.

REFRESH BDCDATA.

AT NEW XBLNR.

PERFORM HEADER_DATA.

ENDAT.

IF RECORD-NEWBS EQ '40' OR

RECORD-NEWBS EQ '50'.

PERFORM LINEITEM_40_50.

ELSEIF RECORD-NEWBS EQ '01' OR

RECORD-NEWBS EQ '11'.

PERFORM LINEITEM_01_11.

ELSEIF RECORD-NEWBS EQ '25' OR

RECORD-NEWBS EQ '35' OR

RECORD-NEWBS EQ '21' OR

RECORD-NEWBS EQ '31'.

PERFORM LINITEM_25_35_21_31.

ELSEIF RECORD-NEWBS EQ '29' OR

RECORD-NEWBS EQ '39'.

PERFORM LINEITEM_29_39.

ELSE.

MESSAGE E999 WITH RECORD-NEWBS 'POST KEY NOT USED IN THIS UPLOAD'.

ENDIF.

AT END OF XBLNR.

PERFORM BDC_DYNPRO USING 'ZSAPMF05A' '0700'.

PERFORM BDC_FIELD USING 'BDC_CURSOR' 'RF05A-NEWBS'.

PERFORM BDC_FIELD USING 'BDC_OKCODE' '=BU'.

PERFORM BDC_INSERT.

ENDAT.

ENDLOOP.

PERFORM BDC_CLOSE.

so, pls let me know what i have to do to avoid this error.....

Thanks in Advance,

CAPC