Skip to Content
author's profile photo Former Member
Former Member

is there any bapi to save the changes

hai i am using bapi after calling tha bapi i want to save the changes is there anjy bapi to do it,bcos i want to call the same bapi once again, bcos of not delay it is giving me error that the transaction is in progres, but if i debug it is working fine bcos of delay which i am getting due to debugging , so any solution for that

thanx in advance

afzal

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2007 at 01:29 PM

    Hi

    Check whether you are using the bapi

    BAPI_TRANSACTION_COMMIT

    after the execution of the main BAPI to save the changes

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

    • In this case after each BAPI call fm BAPI_TRANSACTION_COMMIT - but make sure that you pass paramter WAIT = 'X' in this call.

      If u use BAPI_TRANSACTION_COMMIT without WAIT = 'X' and then perform "commit work and wait" in your calling program this will not solve the problem because BAPI_TRANSACTION_COMMIT called without WAIT = 'X' starts commit in update task and in this case u never know when it finishes.

      For the same reason make sure that u have no commit statements between your BAPI calls and the BAPI_TRANSACTION_COMMIT.

      This should solve the problem.

      But if not, there's one more tricky way: u can use statement "set update task local" before BAPI calls - this makes system perform all updates in the same process which call "commit", not in a separate update task process.

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.