06-26-2009 5:41 AM
Hi Freiends,
In a single program we are trying to create sales order,delivery note and PGI one after the other for each record from the inbound file. We are doing all the 3 process using call transaction method. After the sales order creation the sy-subrc is set to 0 but while creting the delivery note the table was not updated with the sales order number.Some time gap is required between these two process or what then how the first call transaction sets the sy-subrc to 0.
Please help to solve this problem.
06-26-2009 5:50 AM
06-26-2009 5:51 AM
Hello,
Yes u r correct , it requries some time between the process for updating the data into tables .
Better use Asynchrnous process for sales order update and use DELAY statmenet with some time ....then go head with Delivery and PGI process updation ......
Why dont u go ahead wtih BAPI_SALESORDER_CREATE and other BAPIs instead with BDC Call transaction for all the process .
Regards
06-26-2009 6:26 AM
Hi,
We faced the same problem.
Just use
*
CALL FUNCTION 'ENQUE_SLEEP'
EXPORTING
SECONDS = 10
EXCEPTIONS
SYSTEM_FAILURE = 1
OTHERS = 2
after CALL TRANSACTION for VA01.
I hope this helps,
Regards
Raju Chitale
Edited by: Raju Chitale on Jun 26, 2009 7:27 AM