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

Call transaction issue

Former Member
0 Likes
704

Hi guys ,

This is a little urgent .. if anyone could advice it wuld be helpful .

I have a call transaction to va02 (BDC) which updates sales orders.- FM

I am updating sales orders in a loop .

when i run for 3 sales orders to be updated

i see that when run in background it does not update one sales order .

if i put a debug point and run the FM it updates all sales orders successfully

could anyone tell me .. what is the reason that in backgrnd one of the sales order is not getting updated?

Hi guys ,

This is a little urgent .. if anyone could advice it wuld be helpful .

I have a call transaction to va02 (BDC) which updates sales orders.- FM

I am updating sales orders in a loop .

when i run for 3 sales orders to be updated

i see that when run in background it does not update one sales order .

if i put a debug point and run the FM it updates all sales orders successfully

could anyone tell me .. what is the reason that in backgrnd one of the sales order is not getting updated?

5 REPLIES 5
Read only

Former Member
0 Likes
672

hi,

Make use a <b>commit work </b>statement

Sometimes, it takes time to update the database.

So, in that case, the records gets updated if we are going in debug mode.

or else

you can make use of <b>wait</b> statement.

Wait up to 2 seconds.

Regarsd

Sailaja.

Read only

0 Likes
672

thanks sailaja

that was exactly what i was looking into ... and u confirmed my point .

problem not resolved .. but i am sure now its coz of timing of a previous functionality which i was not involved in.

Thanks once again

Read only

Former Member
0 Likes
672

hi neelima,

I believe u r using ws_upload to upload the data from the file to the internal table.

Try to use gui_upload. It will solve ur problem.

Regards...

Arun.

Reward points if useful.

Read only

Former Member
0 Likes
672

Set the call transaction mode to S instead of 'A' and see.

Regards,

Ravi

Read only

0 Likes
672

Hi,

Use update 'S' in Call transaction statement.It will use synchronous update .

CALL TRANSACTION 'VA02' using bdcdata MODE 'A' UPDATE 'S'.

Message was edited by:

Vigneswaran S