SAP HANDLER METH MODIFY ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• FOR MODIFY METHODS
• FOR CREATE FOR MODIFY
• FOR UPDATE FOR MODIFY
• FOR DELETE FOR MODIFY
• FOR ACTION FOR MODIFY
• REQUEST FOR MODIFY
• RESULT FOR MODIFY

FOR MODIFY, RAP Handler Method

ABAP_SYNTAX
Handler method definitions:
METHODS meth $[ FINAL$]
FOR MODIFY
$[IMPORTING$] ${ REFERENCE(im_par_mod) $| im_par_mod $}
FOR ${ CREATE bdef $}
$| ${ CREATE bdef _assoc $}
$| ${ UPDATE bdef $}
$| ${ DELETE bdef $}
$| ${ ACTION bdef~ action
$[REQUEST ${ REFERENCE (req_act) $| req_act $} $]
$[RESULT ${ REFERENCE (res_act) $| res_act $}$] $}
$| ${ ACTION ${ bdef~activate
$| bdef~edit
$| bdef~discard
$| bdef~resume $} $}
$[CHANGING ${ $[failed TYPE data$] $[reported TYPE data$] $[mapped TYPE data$] $}$] .

ABAP_VARIANTS:
1 ... CREATE bdef ...
2 ... CREATE bdef _assoc ...
3 ... UPDATE ...
4 ... DELETE ...
5 ... ACTION bdef~action ...
6 ... ACTION bdef~activate ...
7 ... ACTION bdef~edit ...
8 ... ACTION bdef~discard ...
9 ... ACTION bdef~resume ...

ABAP Addition
1 ... REQUEST ...
2 ... RESULT ...
3 ... CHANGING ...

What does it do?
Handler methods that are used for changing operations on RAP BO entities and operation augmentation. They must be defined and implemented in a handler class of an ABAP behavior pool. A single method can include multiple, different operations during one processing step. The method name meth can be chosen freely. bdef is the name or the alias of the BDEF, assoc the name of the association, and action the name of an action. It is possible to combine operations in one method.

ABAP_VARIANT_1 ... CREATE bdef ...

What does it do?
Handles create operations.
See more details and the required BDEF notations for the variant in the following topics:
RAP BDL - operations for associations
RAP BDL - augment, projection
Method parameters:
IMPORTING parameter:
im_par_mod: Includes the RAP BO instances to be created. It is an internal table of type TYPE TABLE FOR CREATE bdef. The parameter can also be passed by reference (see REFERENCE).
CHANGING parameters: