Show TOC Start of Content Area

Function documentation Generic Table Types  Locate the document in its SAP Library structure

Use

You use generic table types to define the type of generic table parameters in function modules and forms, and thus provide a degree of freedom for the arguments passed in the corresponding calls.

Example

If a generic table type with the index table access type is used as the parameter of a function module, you can pass either a sorted table or a standard table in the call.

A generic table type does not define all the attributes of an internal table in the ABAP Dictionary; it leaves some of these attributes undefined.

A table type is generic in the following cases:

      You have selected Index Table or Not Specified as the access type.

      You have selected Not specified as the key definition.

      You have selected Not specified as the key category.

Caution

Since generic table types do not define all the necessary attributes of an internal table, you cannot use them to define data objects (with DATA) or types (with TYPE).

Rules for the generic attributes:

    A table type with generic access mode (for example, any table or index table) always has the key category Not specified.

    A table type with an unspecified key always has the key category Not specified.

 

 

End of Content Area