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.
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 .