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: 

In BDC Data not uploading in background mode

Former Member
0 Kudos

Hi Experts,

I have a problem in BDC with call transaction..

My bdc is working fine in foreground mode but when i run it in background mode, in debugging i can see the values comes in fields but after completion of bdc when i check the data, it is not updating.

I can't understand the reason..

can status message create a problem in background mode??

Because when i run in foreground mode i can see some status messages in message table, but with the same data when i run bdc in background mode i can see only first message.

Can you please help me??

7 REPLIES 7

Harsh_Bansal
Contributor
0 Kudos

Hi Dhrumit,

Have you used FM GUI_UPLOAD ???

It will not work in background..

Regards,

Harsh Bansal

former_member925838
Participant
0 Kudos

Hi Dhrumit,

I dont think that status message should give any problem.

I think if its running in foreground mode it must be get execute in Background is well.

please revert with exact problem (status messages if u get any).

Whats the BDC for??

Regards,

Amar

0 Kudos

Hi amar,

thanks for your reply..

Actually, the bdc is for MD61. here if we are uploading the data for the first time the status message is not coming, but if the data is already there for a material, the field matnr is non editable so the status message comes that this field in non editable.

When i run the bdc in foreground and for exp. there are four materials, we can see four messages, but with the same data if i run the bdc in background mode i can see message for only first material and the data us not updating..

0 Kudos

Do one thing..

Use MODE 'E' with call transaction instead of A and N for testing..it will run in background and will show the error screen

Regards,

Harsh Bansal

0 Kudos

The reason why this is happening is you are trying to put data in a field which is non editable. You need to put a check before entrering the material bdc internal table whether material is already there or not.

Nabheet

0 Kudos

Hi Patel,

I will suggest you to use the BDC session method instead of using the Call Transaction. After creation of session in SM35 you can submit the session in background mode easily . We cannot submit the call transaction in background. You won't get any messages if you submit in background in session method.

Three steps to follow if you want to create the session.

1) BDC_OPEN

2) BDC_INSERT

3)BDC_CLOSE

Thanks,

Satheesh

Former Member
0 Kudos

Hi, Dhrumit

After u call the transaction use FM BAPI_TRANSACTION_COMMIT and pass 'WAIT' as X . also after the write WAIT FOR 2 SECONDS.

it's possible that the commit is not happening.

Thanks & Regards,

Ravi Aswani