Ansicht
Dokumentation
ABENSAVER_FINALIZE - SAVER FINALIZE
PERFORM Short Reference SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3upThis documentation is copyright by SAP AG.
finalize, RAP Saver Method
CLASS lsc_bdef DEFINITION
INHERITING FROM
CL_ABAP_BEHAVIOR_SAVER $[
ABSTRACT$] $[FINAL$].
PROTECTED SECTION.
...
$[METHODS finalize REDEFINITION.$]
...
ENDCLASS.
CLASS lsc_bdef IMPLEMENTATION
...
$[METHOD finalize.
...
ENDMETHOD$]
...
ENDCLASS.
Effect
Optional RAP saver method that can be defined as part of a RAP saver class lsc_bdef in the CCIMP include of an ABAP behavior pool. It is declared by redefining predefined methods of the superclass.
Once the save sequence gets triggered, the method is called after at least one successful modification of data in the current LUW.
It is the first method of the save sequence to be called and used to make any final calculations and data modifications involving all BOs in the current LUW. The method is the last chance to modify data on the transactional buffer using MODIFY requests.
Method Parameters
The method has the following implicit, predefined parameters:
- CHANGING parameters:
- failed parameter: Returns failed keys. It is of type TYPE RESPONSE FOR FAILED LATE.
- reported parameter: Returns success, information or error messages. It is of type TYPE RESPONSE FOR REPORTED LATE.
If the method returns an error in the failed parameter, the save sequence is terminated and the
cleanup_finalize
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 method check_before_save is called next.
Development guide for the ABAP RESTful Application Programming Model, section Save Sequence Runtime.
- The example Example for a RAP Saver Class demonstrates this RAP saver method within a RAP saver class using a simple unmanaged RAP BO.
- The example Example for a RAP Saver Class (Late Numbering) demonstrates this RAP saver method within a RAP saver class using a simple unmanaged RAP BO in late numbering scenario which also includes the adjust_numbers saver method.
ABAP Short Reference SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 4879 Date: 20240426 Time: 165308 sap01-206 ( 52 ms )