Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Obsolete Language Elements →  Obsolete Declarations →  Interface work areas 

TABLES *

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Obsolete Syntax

TABLES *table_wa.

Effect

This statement declares an additional table work area *table_wa, whose data type, like that of the regular TABLES statement with its flat structured data type table_wa, is taken from ABAP Dictionary.

The additional table work area can be used just like the regular table work area. This applies in particular to obsolete database accesses.


Note

The statement TABLES cannot be used in classes. The addition TYPE can be used to reference the data types in ABAP Dictionary and declare any number of separate work areas.

Bad Example

Declaration of a regular and additional table work area and their use in obsolete short forms of the SELECT statement.

TABLES: scarr, *scarr. 

SELECT SINGLE * 
       FROM scarr 
       WHERE carrid = 'LH'. 

SELECT SINGLE * 
       FROM *scarr 
       WHERE carrid = 'UA'.

Good Example

Declares two work areas using DATA and how they are used in the INTO clause of the SELECT statement.

DATA: scarr1 TYPE scarr, 
      scarr2 TYPE scarr. 

SELECT SINGLE * 
       FROM scarr 
       WHERE carrid = 'LH' 
       INTO @scarr1. 

SELECT SINGLE * 
       FROM scarr 
       WHERE carrid = 'UA' 
       INTO @scarr2.