10-08-2007 5:00 PM
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.
10-08-2007 5: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
10-08-2007 5:23 PM
FB50 is an EnjoySAP transaction and will not run correctly in the background. Use a BAPI or transaction FB01.
Rob