SAP EVENTS PARAMETERS ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• VALUE EVENTS
• OPTIONAL EVENTS
• DEFAULT EVENTS

EVENTS, parameters
Short Reference

ABAP_SYNTAX
... VALUE(p1) typing $[OPTIONAL$|${DEFAULT def1$}$]
VALUE(p2) typing $[OPTIONAL$|${DEFAULT def2$}$]
...

What does it do?
The syntax of the additions VALUE, OPTIONAL, and DEFAULT and the typing using typing corresponds to the definition of formal parameters in the interface of methods.
When an event is raised using RAISE EVENT, suitable actual parameters must be specified for all non-optional output parameters; these actual parameters are optional for all optional output parameters. Optional parameters for which no actual parameter has been specified are set to their type-dependent initial value or to the replacement parameter def1 def2 ...

ABAP_EXAMPLE_VX5
Declaration of an instance event with an output parameter in the class CL_DEMO_OUTPUT_STREAM.
ABEXA 01630
ABAP_EXAMPLE_END

Return to menu