SAP TYPING - Syntax

Get Example source ABAP code based on a different SAP table
  


ARTICLE
• TYPE ABAP_TYPING
• TYPE METHODS
• TYPE CLASS-METHODS
• TYPE EVENTS
• TYPE CLASS-EVENTS
• TYPE FORM
• TYPE FIELD-SYMBOLS
• LIKE ABAP_TYPING
• LIKE METHODS
• LIKE CLASS-METHODS
• LIKE EVENTS
• LIKE CLASS-EVENTS
• LIKE FORM
• LIKE FIELD-SYMBOLS

typing Addition
Short Reference

Syntax
... generic_type | complete_type ...

Effect
The addition typing is part of the definition of formal parameters and field symbols in the statements:
[CLASS-]METHODS
[CLASS-]EVENTS
FORM
FIELD-SYMBOLS
The addition allows a generic typing with generic_type and a complete typing with complete_type. In positions where the addition typing is not necessary, implicit typing with the generic type any takes place (if no typing is specified explicitly).

Notes
In classes, the formal parameters of methods or events and field symbols must be typed explicitly. The formal parameters of methods or events of global classes and the formal parameters of function modules are typed in Class Builder or Function Builder. For a typing of system wide visible public interface parameters to be carried out in Function Builder or Class Builder, only the types in ABAP Dictionary may be used.
For more on the typing of parameters of function modules, see function module interface.