SAP HANDLER METH VALIDATE ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• FOR VALIDATE ON SAVE METHODS

FOR VALIDATE, RAP Handler Method

ABAP_SYNTAX
Handler method definitions:
METHODS meth $[ FINAL$]
FOR VALIDATE ON SAVE
$[IMPORTING $] ${ REFERENCE(im_par_val) $| im_par_val $}
FOR bdef~val
$[CHANGING ${ $[failed TYPE data$] $[reported TYPE data$] $}$] .

What does it do?
Handler method that is used for the validations. 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 and val is the name of the validation.

Method Parameters
IMPORTING parameters:
im_par_val: Includes the keys of RAP BO instances that are to be validated. It is an internal table of type TYPE TABLE FOR VALIDATION bdef~val .
The importing parameter can also be passed by reference (see REFERENCE). The use of the ABAP word IMPORTING is optional.
CHANGING parameters: