Create an ABAP Table Type
Beginner
20 min.
Create a table type and use it to retrieve data from a database table.
You will learn
- How to create and edit a table type for an internal table in the new, form-based Table Types editor
- How to use this table type to retrieve data from a database table
Prerequisites
- You have done one of the following:
- You have a valid instance of SAP Business Technology Platform (BTP) ABAP Environment. For more information, see Tutorial: Create Your First ABAP Console Application, steps 1-2
- You have a valid instance of an on-premise AS ABAP server, version 7.52 or higher. (The text-based Table Editor is not available for earlier ABAP server versions). For a free AS ABAP server, 7.52, SP04, see SAP Developers: Trials and Downloads - 7.52
- You have installed ABAP Development Tools 3.0, latest version
- You have downloaded or pulled the ABAP Flight Reference Scenario. To pull this reference scenario from
Github
, see Downloading the ABAP Flight Reference Scenario - Tutorial: Create a Database Table
Table types can also be defined in, for example, an ABAP program or class. The differences between the two approaches include:
- Table types in the ABAP Data Dictionary are maintained in a form-based editor, table types in ABAP in a text-based editor
- Reuse: Table types can only be used by other Dictionary types if they are defined in the Data Dictionary
- Modularization: Table types in the Dictionary are stand-alone objects, whereas table types in ABAP are always part of another Repository object
Throughout this tutorial, objects have the suffix XXX
. Remember to always replace this with your initials or group number.