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

BAPI_TRANSCATION_COMMIT?

Hi Friends,

Can anyone give a very simple and clear difference betwee Commit work in BAPIS and BAPI_Transaction_Commit, I have referred to many online info regarding the two but i m not clear about their functional difference? Please help me with very simple answers?

Regards,

MD.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 08:36 AM

    Hello MD

    Have you ever tried to see the code written in FM BAPI_TRANSCATION_COMMIT .

    There we have just Commit work .

    what happens is sometimes IN BAPIs there is no internal commit used those we can test it through SE37 for that we go for Extenal commit .

    Otherwise there is no difference between Commit work in BAPIS and BAPI_Transaction_Commit

    regards

    Hitesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 08:42 AM

    Hi Friend,

    I would say the difference is the way you call them. Otherwise both are same.

    SAP though recommends using BAPI_Transaction_Commit and not using Commit_work in the BAPI...

    Hope this helps you.

    Regards,

    Chandra Sekhar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 08:43 AM

    hi check this...

    the commit work is used when there is a need of modification for the master records such as modfying ,updating the master data ......for that weed commit work..generally we use this in the programs ....with out this there is no updataion of the change in master records....some of the fms or bapi had inside this commit work by the fm bapi_transaction_commit .

    this fm is used when processing with mostly the fms

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 24, 2008 at 08:44 AM

    MD,

    hope this would help to understand better:

    Execute external Commit when using BAPIs
    
    Functionality
    This method executes a COMMIT WORK command. It is required for transactions developed outside the SAP system that change data in the SAP system by using BAPI calls.
    
    When you call BAPIs in your program that change data in the SAP system, you must then call this method to write the changes to the database.
    
    
    Notes
    Messages are returned in the parameter 'Return'. The documentation for this parameter contains the return values and their meanings.
    
    Further information
    Use the method BapiService.TransactionRollback to prevent changes to the database being committed.

    Amit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 08:50 AM

    Hi ,

    When you use a BAPI, you can not

    directly use commit work, instead you are allowed to use only

    BAPI_TRANSACTION_COMMIT

    Short text

    Execute external Commit when using BAPIs

    Functionality

    This method executes a COMMIT WORK command. It is required for

    transactions developed externally to the R/3 System that change data in

    the R/3 System via BAPI calls.

    When you call BAPIs in your program that change data in the R/3 System,

    afterwards you must call this method to write the changes to the

    database.

    Notes

    Messages are returned in the parameter 'return'. This parameter

    documentation contains the return codes and their descriptions.

    Further Information

    Use the method BapiService.TransactionRollback to prevent changes to the

    database being committed.

    Regards.

    Eshwar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 08:55 AM

    Hi MD,

    BAPIs must not invoke a COMMIT WORK. instead use the BAPI TransactionCommit to execute the commit after the BAPI has executed

    cheers,

    sowjanya.

    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.