Ansicht
Dokumentation
ABAPRAP_SAVER_METH_SAVE_MODIFIED - RAP SAVER METH SAVE MODIFIED
BAL_S_LOG - Application Log: Log header data BAL Application Log DocumentationThis documentation is copyright by SAP AG.
save_modified, RAP Saver Method
CLASS lsc_bdef DEFINITION
INHERITING FROM
CL_ABAP_BEHAVIOR_SAVER $[
ABSTRACT$] $[FINAL$].
PROTECTED SECTION.
METHODS save_modified REDEFINITION.
...
ENDCLASS.
CLASS lsc_bdef IMPLEMENTATION
METHOD save_modified. ... ENDMETHOD.
...
ENDCLASS.
Effect
RAP saver method that must be defined as part of a RAP saver class lsc_bdef in the CCIMP include of an ABAP behavior pool. It is only relevant for managed scenarios that include an additional or unmanaged save implementation. See the BDEF prerequisites in CDS BDL - saving options. The method is declared by redefining predefined methods of the superclass.
The method saves the current state of the transactional buffer, i. e. all RAP BO instances (including instances from cross-BO relationships) from within the current LUW, to the database.
Method Parameters
The method has the following implicit, predefined parameters:
- IMPORTING parameters:
- create: Includes information on instances that have been created within the LUW. It is of type TYPE REQUEST FOR CHANGE.
- update: Includes information on instances that have been updated within the LUW. It is of type TYPE REQUEST FOR CHANGE.
- delete: Includes information on instances that have been deleted within the LUW. It is of type TYPE REQUEST FOR DELETE.
- CHANGING parameter:
- reported parameter: Should only contain success or information messages. It is of type TYPE RESPONSE FOR REPORTED LATE.
Development guide for the ABAP RESTful Application Programming Model, section Save Sequence Runtime.
- The example - TYPE REQUEST FOR in a Managed RAP BO with Additional Save demonstrates the save_modified method in the context of a simple managed RAP BO whose BDEF is specified with with additional save.
- The example - TYPE REQUEST FOR in a Managed RAP BO with Unmanaged Save demonstrates the save_modified method in the context of a simple managed RAP BO whose BDEF is specified with with unmanaged save.
ABAP Short Reference Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 5195 Date: 20240509 Time: 050438 sap01-206 ( 53 ms )