Ansicht
Dokumentation

ABENSAVER_METHOD_CLEANUP - SAVER METHOD CLEANUP

ABENSAVER_METHOD_CLEANUP - SAVER METHOD CLEANUP

CL_GUI_FRONTEND_SERVICES - Frontend Services   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

cleanup, RAP Saver Method

CLASS lsc_bdef DEFINITION
  INHERITING FROM CL_ABAP_BEHAVIOR_SAVER $[ ABSTRACT$] $[FINAL$].
  PROTECTED SECTION.
      ...
     $[METHODS cleanup REDEFINITION.$]
      ...
ENDCLASS.

CLASS lsc_bdef IMPLEMENTATION
      ...
     $[METHOD cleanup.
      ...
      ENDMETHOD$]
      ...
ENDCLASS.


Effect

RAP saver method that is, as part of a RAP saver class (lsc_bdef), available in the CCIMP include of an ABAP behavior pool. It is declared by redefining predefined methods of the superclass. It does not have any IMPORTING or CHANGING, for example, response parameters.

The method clears the transactional buffer and is only called after the save method has been processed.

It is the final method of the save sequence to be called in case of a successful saving of instances to the database table.

The cleanup method can also be defined in ABPs of managed scenarios that include additional or an unmanaged save implementation with the notation ... and cleanup in the BDEF (see the BDEF prerequisites in CDS BDL - saving options).

Development guide for the ABAP RESTful Application Programming Model, section Save Sequence Runtime.

  • 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.





Fill RESBD Structure from EBP Component Structure   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 4189 Date: 20240426 Time: 032037     sap01-206 ( 42 ms )