Ansicht
Dokumentation
ABAPHANDLER_METH_DET - HANDLER METH DET
CPI1466 during Backup General Data in Customer MasterThis documentation is copyright by SAP AG.
FOR DETERMINE
Handler method definition:
METHODS meth $[FINAL$]
FOR DETERMINE ON ${ SAVE $| MODIFY $}
$[IMPORTING$]
${ REFERENCE(im_par_det) $| im_par_det $}
FOR bdef~det
$[CHANGING
reported TYPE data$].
Variants:
1. ... SAVE ...
2. ... MODIFY ...
Effect
Handler methods that are used for determinations. They must be defined and implemented in a handler class of an ABAP behavior pool. The method name meth can be chosen freely. bdef is the name or the alias of the BDEF. det is the name of a determination specified in the BDEF.
Method Parameters
- IMPORTING parameter:
- im_par_det: Includes the keys of RAP BO instances for which a determination should be executed. It is an internal table of type TYPE TABLE FOR DETERMINATION.
- The parameter can also be passed by reference (see REFERENCE). The use of the ABAP word IMPORTING is optional.
- CHANGING parameter:
- The changing parameter reported is implicitly available. It is used to return messages. It is possible to specify the parameter with the predefined name reported explicitly following the ABAP word CHANGING. In this case, the generic type DATA is used. At runtime, the typed parameter implicitly has the BDEF derived type TYPE RESPONSE FOR REPORTED.
BDEF Requirements
See the required BDEF notations for both variants in the topic CDS BDL - determinations.
Variant 1
... SAVE ...
Effect
Used for determinations that are executed during the RAP save sequence.
Variant 2
... MODIFY ...
Effect
The method is called after data changes take place in the transactional buffer.
Examples
Examples for RAP handler method definitions. Find demonstrations of method implementations in the executable examples further down.
METHODS det_on_save FOR DETERMINE ON SAVE
IMPORTING keys FOR bdef~det_save.
METHODS det_on_modify FOR DETERMINE ON MODIFY
IMPORTING keys FOR bdef~det_mod.
METHODS det_on_save2 FOR DETERMINE ON SAVE
IMPORTING keys FOR bdef~det_save2
CHANGING reported TYPE DATA reported TYPE DATA.
- Example for RAP Handler Methods: Demonstrates this RAP handler method within a RAP handler class using a simple unmanaged RAP BO that is draft-enabled.
Fill RESBD Structure from EBP Component Structure General Material Data
This documentation is copyright by SAP AG.
Length: 5496 Date: 20240425 Time: 144612 sap01-206 ( 58 ms )