Search code examples
commitabapbapi

Call BAPI without modifying the database?


Is it possible to call a BAPI and then do something to prevent the BAPI from committing the database change?

I need to make something like a test mode for my report and don't want to commit anything to the database.


Solution

  • For "old" bapis < 3.1 there was no possibility to prevent a commit of a bapi: all bapis did their commit by themselves. Since 4.6 all DB changing bapis have to be called explicitely via bapi commit. If you dont call it your changes wont be saved