We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
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$] $}$].
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.
See the required BDEF notations for both variants in the topic CDS BDL - feature control.
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.
Leave us your contact details and we will call you back. Fields marked with * are mandatory.
We offer holistic SAP solutions from a single source to shape digital change and develop new business areas.
Switzerland
Schaffhausen
Germany
Mannheim, Düsseldorf, Munich
USA
Haverhill
Greece
Thessaloniki