ABAP Dictionary Table types

Table type is a special type that can be used to define internal tables in ABAP programs. You use a table type to describe the structure and functional attributes of an internal table in ABAP. With table type we can define parameters to pass tabular data in functional modules and methods.

A table type is defined by referencing to a line type. An existing dictionary type can be used as line type such as database tables, structure, views, data elements, direct type definitions or even another table type.

Steps to create table type

  • Goto Tcode se11
  • Choose data type, enter table type name and click create
  • In the dialog box, select the TABLE TYPE radio button.
  • Enter a short description and enter structure ZAMARMN_EMPLOYEE
  • Save and activate the table type

Use table type in ABAP program to create an internal table

In the above example, the internal table is defined using a table type. The work area is defined using line type. Append will add records to the internal table. Loop the internal table to display its records.