04-19-2007 12:57 PM
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?
04-19-2007 1:01 PM
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.
04-19-2007 1:29 PM
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
04-19-2007 1:05 PM
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.
04-19-2007 1:07 PM
Set the call transaction mode to S instead of 'A' and see.
Regards,
Ravi
04-19-2007 1:10 PM
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