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: 

Issue in two subsequent call transaction of VA01 & VBL1N

Former Member
0 Kudos

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.

3 REPLIES 3

Sandeep_Kumar
Advisor
Advisor
0 Kudos

Try commit work and wait .

shishupalreddy
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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