2008 Feb 12 10:16 AM
WHAT IS THEUSE OF DECLARING THE TABLES USING 'TABLES' KEYWORD .
WHAT IS THEUSE OF DECLARING THE TABLES USING 'TABLES' KEYWORD .
2008 Feb 12 10:20 AM
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.
2008 Feb 12 10:21 AM
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.
2008 Feb 12 10:43 AM
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
2008 Feb 12 10:21 AM
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
2008 Feb 12 10:22 AM
Hi,
We can define the work area of same structure and same name if we use tables keyword.
Rgds,
Bujji
2008 Feb 12 10:26 AM
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.
2008 Feb 12 10:47 AM
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.