Search This Blog

Saturday, May 2, 2020

COMMIT inside a BADI Implementation

Commit work in BADI Implementation is not advisable as it can lead to process inconsistencies.

  • COMMIT WORK will end the Logical Unit of Work (LUW) and a new LUW will begin.

  • COMMIT WORK will clear/refresh the buffers.



Suppose, commit work is used in the BADI, it will commit the database changes till that point but if after the BADI execution, any other SAP standard validation fails the transaction is terminated without saving or creating the record. Since the commit work was performed in the BADI, those unnecessary changes will be there in the database even though the transaction has not been completed.


All code changes written inside a BADI implementation will get affected automatically as the standard code will do a commit work when the transaction is completed successfully.