Ansicht
Dokumentation
ABAPHANDLER_METH_FEATURES - HANDLER METH FEATURES
Addresses (Business Address Services) BAL Application Log DocumentationThis documentation is copyright by SAP AG.
FOR INSTANCE FEATURES, FEATURES
Handler method definition:
METHODS meth $[FINAL$]
FOR $[INSTANCE$] FEATURES
$[IMPORTING$]
${ REFERENCE(im_par_feat) $| im_par_feat $}
REQUEST ${ REFERENCE(req_feat) $| req_feat $}
FOR bdef
RESULT ${ REFERENCE(res_feat) $| res_feat $}
$[CHANGING ${ $[
failed TYPE data$]
$[reported TYPE data$] $}$].
Effect
Handler method that is used for the instance-based feature control. 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. The ABAP word INSTANCE is optional.
Method Parameters
- IMPORTING parameters:
- im_par_feat: Internal table of type TYPE TABLE FOR INSTANCE FEATURES KEY.
- The importing parameter can also be passed by reference (see REFERENCE). The use of the ABAP word IMPORTING is optional.
- req_feat: Request parameter on which the information retrieval for instance-based feature control is based on. It is a structure of type TYPE STRUCTURE FOR INSTANCE FEATURES REQUEST. The parameter can also be passed by reference.
- CHANGING parameters:
- res_feat: Used to store the result of the information retrieval. It is an internal table of type TYPE TABLE FOR INSTANCE FEATURES RESULT. The parameter can also be passed by reference.
- The CHANGING parameters failed and reported are implicitly available. They are used to return information on failures or messages respectively. It is possible to specify the parameters with the predefined names failed and reported explicitly following the ABAP word CHANGING. In this case, the generic type DATA is used. At runtime, the typed parameters implicitly have the BDEF derived type TYPE RESPONSE FOR ....
BDEF Requirements
See the required BDEF notations for both variants in the topic CDS BDL - feature control.
Examples
Examples for RAP handler method definitions. Find demonstrations of method implementations in the executable examples further down.
METHODS get_instance_features FOR INSTANCE FEATURES
IMPORTING keys REQUEST requested_features FOR bdef
RESULT result.
METHODS get_instance_features FOR FEATURES
keys REQUEST requested_authorizations FOR bdef RESULT result
CHANGING failed 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.
TXBHW - Original Tax Base Amount in Local Currency TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 5565 Date: 20240419 Time: 002708 sap01-206 ( 49 ms )