Application Development 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: 

BDC in background for Transaction FB50

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Rob