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

Auto commit in BAPI

alex_m
Active Contributor
0 Likes
839

Hi All,

How do we find the BAPI have auto commit or not, is it TEST RUN parameter, but all the BAPI doesn't have this parameters.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
573

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

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.

Read only

Former Member
0 Likes
573

You have to look for parameters like test run or commit .

If it does exist, then no problem.

If it doesn't have , then it means yo uhave to use BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK based on the success or failure.

Regards,

Ravi

Read only

0 Likes
573

Ok Ravi, the BAPI BAPI_MATERIAL_SAVEDATA doesnt have any paramter like TEST RUN or COMMIT, but still this BAPI is have auto commit.

Can we say some other way, all the master date BAPI have auto commit and Transactional data BAPI doesnt have auto commit.