Skip to Content

implicit vs. explicit commit

Hello all

Can anyone tell the complete story:

1) When is implicit commits done ? (by screen/dynpro change etc.)

2) What is the difference between implicit and explicit commits ? ( update task etc.)

3) Has the "commit concept" changed over time or is it the same in all version of ABAP.

Best regards

Thomas Madsen Nielsen

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 21, 2003 at 05:03 PM

    ABAP Objects

    The Official Reference

    ISBN 1-59229-011-6

    tells you the following:


    33.2.1 Database Commit

    In an SAP system, you can trigger database commits implicitly or explic-

    itly. Implicit Database Commits

    The implicit database commits of an SAP system originate in the fact that

    a SAP system is logged on the database system via its work processes. A

    work process can perform only one database LUW at once,and cannot

    intervene in the database LUWs of other work processes. Since various

    work processes can execute an ABAP program durirng its runtime, the cur -

    rent work process must complete the database LUW for every action that

    leads to a change in the work process.Accordingly,the following situa-

    tions will trigger an implicit database commit:

    • Completing a dialog step

    The program waits for a user action and does not use a work process in

    the meantime.The next dialog step assigns the next free work process

    to the program.

    • Calling a function module using Remote Function Call (RFC)

    The current work process transfers control to another work process or


    • Ending a function module called in its own work process using Remote

    Function Call

    This action assigns a new work process to the calling program.

    • Using the WAIT statement to interrupt the current work process

    This action assigns the next free work process to the program after the


    • Sending error and information messages and warnings

    These messages interrupt the current dialog step (see above). Explicit Database Commits

    The following situations explicitly trigger database commits in ABAP pro-


    • Using the corresponding database-specific ABAP Native SQL state-


    • Calling the DB_COMMIT function module.This non-parametric func-

    tion module encapsulates the corresponding ABAP Native SQL state-


    • Executing the Open SQL statement COMMIT WORK (see Section 33.3.1).


    There is al lot more to find in that book!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2003 at 01:49 PM

    Yes there have been changes, at least on the impicit side. Up to Rel 3.1 a commit was set when encountering a break-point or situations that lead to different screen.

    If you want to avoid the effects of implicit commit, you might want to try the


    FETCH NEXT statements

    which give you perfect control via named cursor.

    kind regards

    Joerg Wulf

    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.