ABAP Keyword Documentation → ABAP − Reference → Declarations → Typing
typing Addition
Other versions: 7.31 | 7.40 | 7.54
Syntax
... generic_type | complete_type ...
Effect
The addition typing
is part of the definition of formal parameters and field symbols in the following statements:
The addition allows generic typing with generic_type
and full 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.
- More information about typing parameters of function modules can be found under Function Module Interface.
- When formal parameters are typed, the addition
LIKE
can be used to reference formal parameters (in the same procedure) that have already been declared.