2013 Mar 07 4:39 PM
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
2013 Mar 07 5:35 PM
Hi Arvish,
You can manually COMMIT the database saves.But it might have some side effects.
Regards,
Santanu Mohapatra.
2013 Mar 07 5:45 PM
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