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: 

sql does not work after changing data with BAPI

Former Member
0 Kudos

Hey all

I am using bapi 'BAPI_REQUISITION_CHANGE' to change the the data in EBAN.

then on the successfull execution of the above bapi, i am using an sql query to change one customer field in eban.

the Bapi works fine but the sql query does not modify any data. although i am using commit work.

if i put a break-point after bapi then the sql works fine.

any ideas.??

Regards,

Tarun

10 REPLIES 10

former_member156446
Active Contributor
0 Kudos

Hi

use commit work and wait X seconds addition to commit.

0 Kudos

Wait is a pretty bad coding technique

0 Kudos

no such thing as X seconds.

isnt the syntax 'COMMIT WORK AND WAIT'.

Regards

0 Kudos

i dont need to use BAPI TRANSACTION COMMIT for PR Change Bapi.

after using sql i am using commit work and wait.

0 Kudos

Guys Please Help

0 Kudos

Put in a COMMIT after the BAPI.

Rob

0 Kudos

If you do not specify the addition AND WAIT, the program does not wait until the update work process has executed it (asynchronous updating). If you specify the addition AND WAIT, however, program processing after COMMIT WORK will not continue until the update work process has executed the high-priority update function modules (synchronous updating).

source: from sap Help

0 Kudos

I meant your Wait up to x seconds. thats pretty bad

0 Kudos

Changed BAPI and resolved

Former Member
0 Kudos

how are you committing the data? use commit = 'X' in BAPI_TRANSACTION_COMMIT call.