Skip to Content

Data save confirmation in Database

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 07, 2013 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 07, 2013 at 05:35 PM

    Hi Arvish,

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

    Regards,

    Santanu Mohapatra.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.