ABAP - Keyword Documentation →  ABAP - Reference →  Declarations →  Declaration Statements →  Data Types and Data Objects →  Declaring Data Objects → 

TABLES

Quick Reference

Syntax

TABLES table_wa.

Effect

This statement is not allowed in classes and declares a data object table_wa as a table work area whose data type is taken from the identically named structured data type table_wa in ABAP Dictionary. table_wa must be defined as a flat structure in ABAP Dictionary. This means either database tables or classic views can be specified for table_wa.

Table work areas declared using TABLES are interface work areas and should only be declared in the global declaration part of a program for the following purpose:

Programming Guideline

No table work areas except for classic dynpros

Notes

Example

Declaration of a table work area demo_conn with reference to the dictionary structure of the same name DEMO_CONN in a module pool.

PROGRAM demo_dynpro_module.

TABLES demo_conn.

...