Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Obsolete Language Elements →  Obsolete Modularization →  Subroutines →  FORM 

FORM - table_parameters

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Obsolete Syntax

... t1 [{TYPE itab_type}|{LIKE itab}|{STRUCTURE struc}]
    t2 [{TYPE itab_type}|{LIKE itab}|{STRUCTURE struc}]
    ...

Effect

Defines table parameters t1 t2 ... for subroutines A table parameter is typed as follows:

  • A table type itab_type of the table category standard table can be specified after the addition TYPE. Both full and generic table types are possible, as well as the built-in generic type STANDARD TABLE.
  • An internal table itabof the table category standard table can be specified after the addition LIKE. The technical properties of this internal type are applied in full.
  • A flat structure struc can be specified after the obsolete addition STRUCTURE.
  • If nothing is specified explicitly, TYPE STANDARD TABLE is used implicitly as the typing.

The additions TYPE and LIKE type the formal parameter either generically or in full. The addition STRUCTURE applies the structure struc to the row type. The table key remains generic. In generic typings, the formal parameter takes the non-fixed technical type properties from the actual parameter and the usual typing rules apply.

When TABLES parameters are accessed that are not bound to any type-friendly actual parameters, the same exception situation can arise as in function modules.


Notes

  • The definition of table parameters is obsolete and can be replaced by general formal parameters defined using USING and CHANGING.
  • The table key of a table parameter is either defined in full in the typing or it is taken from the actual parameter in the case of generic typing. This means that the table key of a table parameter is not necessarily the standard key.