BDC in background for Transaction FB50
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.