Ansicht
Dokumentation

ABAPHANDLER_METH_GLOBAL_FEATURES - HANDLER METH GLOBAL FEATURES

ABAPHANDLER_METH_GLOBAL_FEATURES - HANDLER METH GLOBAL FEATURES

RFUMSV00 - Advance Return for Tax on Sales/Purchases   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

FOR GLOBAL FEATURES

Handler method definition:

METHODS meth $[FINAL$]
   FOR GLOBAL FEATURES
   $[IMPORTING$] REQUEST ${ REFERENCE(req_gl_feat) $| req_gl_feat $}
   FOR bdef
   RESULT ${ REFERENCE(res_gl_feat) $| res_gl_feat $}
   $[CHANGING reported TYPE data$].


Effect

Handler method that is used for the global feature control of RAP BO entities. It 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.

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 - feature control.

Examples

Example for a RAP handler method definition. Find a demonstration of a method implementation in the executable example further down.

METHODS get_global_features FOR GLOBAL FEATURES
    IMPORTING REQUEST requested_features FOR bdef
    RESULT result.

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.






CPI1466 during Backup   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 4613 Date: 20240426 Time: 032924     sap01-206 ( 53 ms )