Q
Problem solve Get help with specific problems with your technologies, process and projects.

Commit calls for BAPIs

SAP documentation says that BAPIs released after 4.x will not issue commit by itself but requires a commit call by the external program (caller). However, some of the new BAPIs (e.g., BAPI_SALESORDER_CREATEFROMDAT1) got one import parameter, without_commit, which the caller can use to control the commit behavior of these BAPIs. Is the usage of commit flag in BAPIs recommended by SAP? Is it documented anywhere? Can we assume that the new BAPIs from SAP will depend on commit flag to issue commit from the BAPIs ?

SAP documentation says that BAPIs released after 4.x will not issue commit by itself but requires a commit call...

by the external program (caller). However, some of the new BAPIs (e.g., BAPI_SALESORDER_CREATEFROMDAT1) got one import parameter, without_commit, which the caller can use to control the commit behavior of these BAPIs. Is the usage of commit flag in BAPIs recommended by SAP? Is it documented anywhere? Can we assume that the new BAPIs from SAP will depend on commit flag to issue commit from the BAPIs ?


The rule is as you say. No BAPI since 4.0A is supposed to issue a COMMIT WORK statement. Most BAPIs follow the rule, but not all. Some do a COMMIT WORK, some allow the application programmer to decide by offering a special parameter. This is all "wrong" according to the rule book, so your own BAPIs should not do this. If the documentation of a BAPI does not explicitly state how it deals with COMMIT WORK, you should test its behavior before using it.


This was last published in December 2001

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close