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: 

COMMIT WORK AND WAIT IN BDC

Former Member
0 Kudos

All stock transfer order updates, generating deliveries and picking and post good issues(PGI) are done via BDC processing. That is we have BDC for tcodes: me22, ye02 and vl02.

The issue is the deliveries are not picked and te PGI is completed. we have to use COMMIT WORK AND WAIT statement after every BDC processing.

There is a form ' insert-transaction using tcode '

This form calls BDC_OPEN GROUP, BDCINSERT and BDC_CLOSE_GROUP.

So we write this COMMIT AND WAIT statement after call transaction <tcode>( eg call transaction me22) every time or just after BDC_CLOSE _GROUP in the form.

2 REPLIES 2

Former Member
0 Kudos

Hi,

you the call of BDC inside a loop and set the COMMIT WORK AND WAIT for the endloop.

loop ...

bcd-processing.

COMMIT WORK AND WAIT

endloop

Regards

Nicole

Former Member
0 Kudos

Hi,

BDC session cannot lock any tables (WAIT is not needed and this will not solve your problem), we can accept if you are using any BAPI. There is something wrong in the code which is does not pick the deliveries?

Regards,

Prabhu Rajesh