Application Development and Automation 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: 
Read only

Bdc Background

Former Member
0 Likes
1,259

Hi,

im using bdc call transaction method ..when i run it foregorund its working ok but in the background it doesnt..

plz advise..

regards

11 REPLIES 11
Read only

Former Member
0 Likes
1,195

Run with mode 'E'.

Read only

Former Member
0 Likes
1,195

check u have put mode as no display or all screens disply (N or A).

make it N.

Read only

Former Member
0 Likes
1,195

Hi Brightside,

Hope the below threads clear your queries:

https://forums.sdn.sap.com/click.jspa?searchID=14948501&messageID=5553624

Have A Good Day

Chaitanya.

Read only

Former Member
0 Likes
1,195

Use Error Mode .

SO that it will stop at Error screen.

CALL TRANSCTION TCODE using BDCDATA MODE 'E'....

Read only

Former Member
0 Likes
1,195

Hi,

see the message table 'BDCMSGCOLL' while running it in backgroud.

Run the program in mode 'E'.

Hope it helps you.

Read only

Former Member
0 Likes
1,195

Hi there,

thanks for your replies ...

when running in mode A(foreground) its working alright.

when running in mode N( back ground) its not working for some reason.

Read only

Former Member
0 Likes
1,195

Hi There.

I would like to suggest,

If In Foreground, There is no problem which means that the program is running fine.

If there was any error in the BDC program, It could have easily rectified by running in 'E' or 'A' mode.

But, While delivering the object to the client we keep in 'N' mode.

Apart from this, In the case of Background job these modes will make no meaning as in foreground there were no errors.

Possibly, the cause may be the scheduling of the background jobs.

I suggest, In BDCMSCOLL the error messages can be found out or are stored.

Check these messages after running the BDC program in background.

This will be very vital in the analysis.

Hope that's usefull.

Good Luck & Regards.

Harsh Dave

Read only

Former Member
0 Likes
1,195

hai,

in the final o/p screen u give the mode as 'N'. then it wil defnitely work in background.

with regards,

R.Dhineshraj.

Read only

Former Member
0 Likes
1,195

Hi,

Your bdc is doing well in foreground means your program is OK. But in Background which is not work well, this is means your background seheduling is not proper way.

check bdcmsgcoll table carefully and identify where acctually problem happen.

also you use Mode 'E' in Call Transaction.

bye

Tarapada

Read only

Former Member
0 Likes
1,195

hi guyz,

thanks for ur replies..but still not working ..i tried with mode E it goes to initial screen and saves with out going any further..i recorded the bdc again but ima gettin same ..this is the bdc im using

FORM delete_hu USING p_vbelv.

PERFORM clear_bdc.

PERFORM bdc_dynpro USING 'SAPLHU_PACKING_STATION' '0010'.

PERFORM bdc_field USING: 'BDC_OKCODE' '=ENTR',

'BDC_CURSOR' 'HUM_PROFILE_S-PAKING_STATION',

'HUM_PROFILE_S-PACKING_STATION' 'DELIVERY01'.

PERFORM bdc_dynpro USING 'SAPLHU_PACKING_STATION' '1000'.

PERFORM bdc_field USING:

'BDC_OKCODE' '=ENTR',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1010SUBOBJKEY',

'BDC_CURSOR' 'GF_DELIVERY',

'GF_DELIVERY' p_vbelv,

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1020SUBHU',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1051SUBWIEGEN',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1030SUBTAB',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1060SUBSCANNER'.

PERFORM bdc_dynpro USING 'SAPLHU_PACKING_STATION' '1000'.

PERFORM bdc_field USING:

'BDC_OKCODE' '=DELHU',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1010SUBOBJKEY',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1020SUBHU',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1051SUBWIEGEN',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1030SUBTAB',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1060SUBSCANNER',

'BDC_CURSOR' 'GF_SCANBARCODE'.

PERFORM bdc_dynpro USING 'SAPLHU_PACKING_STATION' '1000'.

PERFORM bdc_field USING:

'BDC_OKCODE' '=SAVE',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1010SUBOBJKEY',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1020SUBHU',

'BDC_CURSOR' 'GF_HU',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1051SUBWIEGEN',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1030SUBTAB',

'BDC_SUBSCR' 'SAPLHU_PACKING_STATION1060SUBSCANNER'.

CALL TRANSACTION 'HUPAST' USING bdcdata

MODE p_mode

UPDATE 'S'

MESSAGES INTO gt_messtab.

plz let me know if im missing something in it...

thanks

Read only

Former Member
0 Likes
1,195

Hai Experts,

I have uploaded the image using the UI element file upload and then i need to see it using the UI element image when i clicking the button.

can u please tell me the solution?

with regards,

R.Dhineshraj.