ABAP Keyword Documentation → ABAP − Reference → ABAP RESTful Programming Model → Behavior Implementations → Saver Class
Method FINALIZE
The method finalize of the local saver class is the first method of the saver sequence of the behavior implementation of a business object. The method is used to make any final calculations and data modifications before the method save saves data in the database.
The method finalize can return failed keys and messages. For this pupose, there are the output parameters failed and reported.
If the finalize method returns an error in the output parameter failed, the saver sequence is terminated. The cleanup method is called to discard all changes made to the data in the current LUW and to clean up the transactional buffer.
If the finalize method does not report an error, the subsequent method check_before_save is called.
Other versions:
7.31 | 7.40 | 7.54
Remarks
- The parameter mapped is part of the signature of the method finalize. It is not, however, used.
- The implementation of the method finalize is not mandatory.