Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

TABLES KEYWORD

Former Member
0 Likes
3,539

WHAT IS THEUSE OF DECLARING THE TABLES USING 'TABLES' KEYWORD .

WHAT IS THEUSE OF DECLARING THE TABLES USING 'TABLES' KEYWORD .

7 REPLIES 7
Read only

Former Member
0 Likes
1,744

Tables mara.

the above statement declares a work area with name MARA and it has the same structure as that of DBtable MARA.

Cheers,

jose.

Read only

0 Likes
1,744

dont worry too much, this staement is obsolete anyway and should not be used anymore.

only thing when you need it is to transfer data from and to your Dynpro.

Read only

0 Likes
1,744

Can u explain me why it is not used .

eg, Select-options. if u declare it requires the table declaretion.

Can u be eloberate abt this.

Tables Keyword gives Direct acess to DB and also creates work area.

Regards,

sarath

Read only

Former Member
0 Likes
1,744

TABLES table_wa.

This statement is not allowed in classes and declares a data object table_wa as a table work area whose data type is adopted from the identically named structured data type table_wa from the ABAP Dictionary. table_wa must be defined as a flat structure in the ABAP Dictionary. You can specify database tables or Views for table_wa.

Work table areas declared with TABLES are interface work areas and should only be declared in the global declaration section of a program for the following purpose:

The statement TABLES is required for exchanging data between screen fields that were defined in a program screen when transferring from the ABAP Dictionary and the ABAP program. For the screen event PBO, the content of the table work area is transferred to identically named screen fields; for PAI, the system adopts the data from identically named screen fields.

In executable programs, flat table work areas can be used for adopting data that were provided for the event GET table_wa from a linked logical database. TABLES is synonymous with the statement NODES for this purpose.

Edited by: Jyothi on Feb 12, 2008 11:21 AM

Read only

Former Member
0 Likes
1,744

Hi,

We can define the work area of same structure and same name if we use tables keyword.

Rgds,

Bujji

Read only

Former Member
0 Likes
1,744

Hi,

if you declare the tables using tables keyword then fieldstring is created which has the same structure as table which you have declared under tables.

Plzz reward points if it helps.

Read only

Former Member
0 Likes
1,744

Hi,

TABLES keyword is used at the begining of the report because, in order to call the entire table structure inthe program.

But its is not recommeanded to use because it effects the program efficiency.

regards,

kavitha.