Application Development 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: 

bapi commit question

Former Member
0 Kudos

If you call BAPI_COMMIT twice on the same set of changes, does the second call also do a recommit?

Or once the first commit is done, there is nothing left to commit anymore and the second commit does essentially nothing? Thanks

5 REPLIES 5

Former Member
0 Kudos

yes exactly the second BAPI COMMIT does nothing its waste because it donot recommit.

Thanks,

Aditya

Former Member
0 Kudos

Hi Saurabh,

I think second commit does nothing. But I have never tried this.

Lanka

Former Member
0 Kudos

Hi Saurabh,

The 2nd BAPI_COMMIT does'nt work at all.

0 Kudos

If you use a second BAPI_COMMIT the only you're going to get....it's a waste of time...Because if the first BAPI_COMMIT works fine...the second got nothing to do...and if the first fails...the second is going to fail to -;)

Greetings,

Blag.

0 Kudos

Thanks guys. The reason I ask this is we have a function module (Z_DOC_CREATE) which creates a contract object document and does a commit. I also do a commit after I have called the function module. For some reason, I am getting two documents posted in certain scenarios instead of one and the amount is pretty random. And If I comment out my BAPI COMMIT call, then no document gets posted.