Ansicht
Dokumentation

ABAPHANDLER_METH_DET - HANDLER METH DET

ABAPHANDLER_METH_DET - HANDLER METH DET

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

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

The parameter can also be passed by reference (see REFERENCE). The use of the ABAP word IMPORTING is optional.
  • 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.






BAL_S_LOG - Application Log: Log header data   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 5496 Date: 20240614 Time: 042727     sap01-206 ( 57 ms )