Application Development and Automation 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: 
Read only

sql does not work after changing data with BAPI

Former Member
0 Likes
1,132

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
Read only

former_member156446
Active Contributor
0 Likes
1,109

Hi

use commit work and wait X seconds addition to commit.

Read only

0 Likes
1,109

Wait is a pretty bad coding technique

Read only

0 Likes
1,109

no such thing as X seconds.

isnt the syntax 'COMMIT WORK AND WAIT'.

Regards

Read only

0 Likes
1,109

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

after using sql i am using commit work and wait.

Read only

0 Likes
1,109

Guys Please Help

Read only

0 Likes
1,109

Put in a COMMIT after the BAPI.

Rob

Read only

0 Likes
1,109

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

Read only

0 Likes
1,109

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

Read only

0 Likes
1,109

Changed BAPI and resolved

Read only

Former Member
0 Likes
1,109

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