Ansicht
Dokumentation

ABAPEVENTS_PARAMETERS - EVENTS PARAMETERS

ABAPEVENTS_PARAMETERS - EVENTS PARAMETERS

General Material Data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

EVENTS, parameters

Short Reference



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

Effect

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 ...

Example

Declaration of an instance event with an output parameter in the class CL_DEMO_OUTPUT_STREAM.

CLASS cl_demo_output_stream
  ...
  PUBLIC SECTION.
    ...
    EVENTS completed
      EXPORTING
        VALUE(ev_output) TYPE xstring.
    ...
ENDCLASS.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2023 Date: 20240420 Time: 014715     sap01-206 ( 17 ms )