Ansicht
Dokumentation

ABENOO_OBS_PROCEDURE_2 - OO OBS PROCEDURE 2

ABENOO_OBS_PROCEDURE_2 - OO OBS PROCEDURE 2

PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Cannot Use Untyped Interface Parameters

In ABAP Objects, the TYPE addition is required for the interface parameters of procedures. The only procedures allowed in ABAP Objects are methods.

In ABAP Objects, the following statement causes an error message:

METHODS meth IMPORTING p1
             EXPORTING p2.

Correct syntax:

METHODS meth IMPORTING p1 TYPE ANY
             EXPORTING p2 TYPE ANY.

Cause:

In ABAP Objects, the interface parameters of parameters must always be explicitly typed. Use the TYPE ANY addition if you want an interface parameter to be completely generic.






BAL_S_LOG - Application Log: Log header data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 1059 Date: 20240329 Time: 072121     sap01-206 ( 21 ms )