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

BAPI_TRANSACTION_COMMIT

What is the use of WAIT flag in BAPI_TRANSACTION_COMMIT?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2006 at 07:30 AM

    A set of related tables will get affected while executing a BAPI.

    While doing any operations to those tables using a BAPI those table will be holded and will be released after database operations.

    Until those tables or released another database operation cannot be made, Inorder to process all the entries to the table using the BAPI, a span of time will mentioned to WAIT, by that time the tables will get released and will be ready for processing another entry.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2006 at 07:25 AM

    BAPI_TRANSACTION_COMMIT will return or not return the message depending on whether the value of parameter WAIT is set to 'X'. If it has failed it will return 'Posting could not be carried out'

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2006 at 07:26 AM

    Hi

    It means your program'll waits for end of the commit, i.e.:

    The updating of the BAPI start after calling the COMMIT (so BAPI_TRANSACTION_COMMIT), now your program can:

    - 1) go on to work while database is beeing updated:

    COMMIT WORK

    - 2) wait for the end of database updating:

    COMMIT WORK AND WAIT.

    The first case is better for performance, the second case is better if it wants to make sure to continue only if the data are really saved.

    Max

    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.