Ansicht
Dokumentation

ABENSAVER_ADJUST_NUMBERS - SAVER ADJUST NUMBERS

ABENSAVER_ADJUST_NUMBERS - SAVER ADJUST NUMBERS

BAL_S_LOG - Application Log: Log header data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

adjust_numbers, RAP Saver Method

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

CLASS lsc_bdef IMPLEMENTATION
      ...
      METHOD adjust_numbers.
      ...
      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 declared by redefining predefined methods of the superclass.

Once the save sequence gets triggered, the method is called for each RAP BO after at least one successful modification of data in the current RAP LUW.

The method is only relevant and mandatory in late numbering scenarios.

Method Parameters

The method has the following implicit, predefined parameters:

Since the implementation of adjust_numbers maps preliminary IDs (%pid), with which RAP BO instances are identified during the RAP interaction phase, to the real and final key values the mapped must be filled. It must be ensured that those key values are unique.

Errors from RAP BO consumers must not appear after the check_before_save method, hence, failed is not available as a parameter. However, if the application must stop the transaction, a runtime error occurs.

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

The example Example for a RAP Saver Class (Late Numbering Scenario) demonstrates this RAP saver method within a RAP saver class using a simple unmanaged RAP BO in late numbering scenario.






ABAP Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4889 Date: 20240417 Time: 010418     sap01-206 ( 47 ms )