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: 

Data save confirmation in Database

arvish_k
Explorer
0 Kudos

Hi All,

Is there any way that i could confirm that database values has been committed in database.

My Scenario is:-

I'm using a BAPI 'BAPI_OUTB_DELIVERY_CHANGE' to update Delivery Document. On updating the delivery document, VBUK-KOSTK field will be updated with Value 'C'.

If VBUK-KOSTK NE 'C'.

     Create TO

Else.

     don't create

Endif.

My Problem is:-


In Debugging mode I'm getting value VBUK-KOSTK = 'C' and TO is not getting created. (It is behaving perfectly)

But without breakpoints it is going inside VBUK-KOSTK NE 'C' condition... I'm sure that the value passed will have C value updated in database. So My understanding is, the program control is going to create TO because of DB interface response mismatch. Can you please let me know if there is any way that i could very well(100%) make sure that the database has been updated and proceed further???

I dont want to put WAIT statment, b4 that just wanted to analyze the possibility of making the code dynamic!

Tx,

Arvish

2 REPLIES 2

Former Member
0 Kudos

Hi Arvish,

You can manually COMMIT the database saves.But it might have some side effects.

Regards,

Santanu Mohapatra.

Former Member
0 Kudos

Hi arvind ,

dont use commit work....

use bapi_transaction_commit fm......

it additionally refreshes bapi buffer.....

if you go to the fm then you can find a fm named BUFFER_REFRESH_ALL....

Thanks

Sabyasachi