ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Modularization → Function Modules
FUNCTION - table_parameters
Other versions: 7.31 | 7.40 | 7.54
Obsolete Syntax
... TABLES p1 {TYPE itab_type} | {
STRUCTURE struc} [OPTIONAL]
p2 {TYPE itab_type} | {
STRUCTURE struc} [OPTIONAL]
...
Effect
Defines the table parameters t1 t2 ... in the
function module interface display in the source code of function modules. Table parameters are obsolete CHANGING parameters that are typed as
standard tables with a
header line. If an internal table without a header line or a
table body is passed as
an actual parameter to a formal parameter of this type, an empty local header line is generated in the
function module. If an internal table with a header line is used as an actual parameter, both the table
body and the header line are passed to the function module. Pass by value is not possible in formal parameters defined using TABLES.
Information about TYPE, STRUCTURE, and OPTIONAL is available in
Properties of the Interface Parameters. The following special rules apply to table parameters:
-
Only pass by reference is allowed in
TABLESparameters. -
Only the following types can be specified after
TYPE:
- A table type
itab_typefrom ABAP Dictionary (including type groups) with the table category standard table and a flat row type. The table type can be full or generic.
- The specified generic type
STANDARD TABLE.
- If no type is specified explicitly,
STANDARD TABLEis used implicitly.
-
A type with
TYPE REF TOis not permitted.
When TABLES parameters are accessed that are not bound to any type-compliant actual parameters, a special
exception situation can arise.
Notes
- 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.
-
Formal parameters defined with
TABLEScan be replaced by formal parameters defined withCHANGING. A local work area can be created for the internal table in the function module by using the additionLIKE LINE OF itabof the statementDATA. -
Exception: Provided that basXML is not set as the
RFC log, using
TABLESparameters for remote-enabled function modules for RFC can be significantly faster than passing by means of theCHANGINGparameter.