Skip to Content
avatar image
Former Member

BDC in background for Transaction FB50

Hi,

I have created BDC program for FB50 T.code.

when i run this below code (foreground) :

(call transaction FB50 using it_bdcdata mode 'A' update 'S' messages into it_bdcmsgcoll.)

then my it_bdcmsgcoll contain error messages occured during data downloading.

but when i use this below code in (background) :

(call transaction FB50 using it_bdcdata mode 'N update 'S' messages into it_bdcmsgcoll.)

then my it_bdcmsgcoll does'nt contain error messages occured during downloading data.

i also want to capture document no. created when data downloaded in FB50.

when i execute it foreground it show created doc. num. in message place.

please help me it's urgent.

Ps: correct answear will be rewarded by maximum points.

Regards,

Gaurav.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 08, 2007 at 04:08 PM

    Hi,

    After calling the <b>call transaction FB50 using it_bdcdata mode 'N update 'S' messages into it_bdcmsgcoll</b>, You need to Loop through te T100 message, then you will get the Document number, look at the T100 table in the debugging, then you come to know where the Document number is coming

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 04:23 PM

    FB50 is an EnjoySAP transaction and will not run correctly in the background. Use a BAPI or transaction FB01.

    Rob

    Add comment
    10|10000 characters needed characters exceeded