Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI

Former Member
0 Likes
322

Hi guys

BAPI Functio Module comes with COMIT sometimes, when BAPI dosent have COMIT we have to give COMMIT explicitly.

SO my Question is how to know that BAPI has COMIT internally.

Hope u understand my question

Thanks

Basheer

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
297

That is a good question. To understand this we ahve to understand the journey of BAPI. Initially whe BAPIs were created, they had internal COMMIT. But in the due course of time it was decided to remove the internal commmit. This is because some BAPIs will be used for both simulations and postings.

The BAPIs from versions 4.6 do not have internal commits, but BAPIs in versions prior to this have internal commit. There is no specific rule to identify BAPIs with internal commits, but as per my understanding, BAPIs from 4.5 and 4.6 do not have internal commit.

2 REPLIES 2
Read only

ferry_lianto
Active Contributor
0 Likes
297

Hi,

Typically you have parameters like TEST_RUN (as in BAPI_PO_CHANGE) or I_COMMIT (in ME_CCP_TPO_PRICE_CHANGE) for internal commit.

There is no general rule here and also many BAPIs won't have any COMMIT inside them. They need to be called and committed in wrapper function/program or you can use BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK based on the success or failure.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
298

That is a good question. To understand this we ahve to understand the journey of BAPI. Initially whe BAPIs were created, they had internal COMMIT. But in the due course of time it was decided to remove the internal commmit. This is because some BAPIs will be used for both simulations and postings.

The BAPIs from versions 4.6 do not have internal commits, but BAPIs in versions prior to this have internal commit. There is no specific rule to identify BAPIs with internal commits, but as per my understanding, BAPIs from 4.5 and 4.6 do not have internal commit.