Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  ABAP RESTful Programming Model →  Behavior Implementations →  Saver Class 

Method CHECK_BEFORE_SAVE

The method check_before_save of the local saver class is the second method of the saver sequence of the behavior implementation of a business object. The method check_before_save is used to check the application buffer for consistency before the method save saves data in the database.

The method check_before_save can return failed keys and messages. For this pupose, there are the output parameters failed and reported.

If the check_before_save 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 method check_before_save does not return an error, the point has been reached after which a successful save is guaranteed for all involved business objects. The subsequent method adjust_numbers is called.

Other versions: 7.31 | 7.40 | 7.54

Remarks

  • The parameter mapped is part of the signature of the method check_before_save. It is not, however, used.

  • The implementation of the method check_before_save is not mandatory.