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

Table Declaration

Former Member
0 Likes
1,032

Can anyone tell me what is there in declaring a table with a * as prefix with table name.

ex:

TABLES: *MARA.

Thanx in advance.

9 REPLIES 9
Read only

Former Member
0 Likes
998

this declares a workarea for table MARA.

but this usage is obsolete now

Read only

Former Member
0 Likes
998

Hi

In SE11 if u type *MARA and if u press F4 then it will search for all tables that contains string MARA.

Reward points if useful..

Regards

Nilesh

Read only

alex_m
Active Contributor
0 Likes
998

Its a work area, u can find in lot of std program. But now its absolete.

Read only

Former Member
0 Likes
998

Hi,

Just like work area

Thanks

Sunil

Read only

Former Member
0 Likes
998

Thats an Obsolete command

This statement declares an <b>additional table work area</b> *table_wa, whose data type, like that of normal TABLES statements of flat, structured data type table_wa, is copied from the ABAP Dictionary.

The additional table work area can be used like the normal table work area. This applies in particular to obsolete short forms of Open SQL statements.

--sap help

santhosh

Message was edited by:

Kaluvala Santhosh

Read only

Former Member
0 Likes
998

If you declare the tables using tables statement and put a * before it then a work area is created automatically with all the fields of mara ... but instead you can create a workarea of your own ..with the fields that you need... or create a work area of the type structure that you may be using in your program....

Read only

Former Member
0 Likes
998

Please mark the question as answer and reward points to the helpful answers... if you question is solved........ it helps other too...

Regards,

Jayant

Read only

Former Member
0 Likes
998

Hi biswaranjan,

1. This is actually a facility provided in abap syntax.

2. It is usually checked while saving a record.

3. For eg.

If we have one variable

EKKO

and another *EKKO

(They both are same only, with same structure)

(but two different variables)

4. The functional meaning, for usage purpose,

of *EKKO is OLDEKKO.

5. While saving the transaction,

the data is saved only if there is any change

in the values.

IF EKKO <> *EKKO.

*--- SAVE

ELSE.

MESSAGE 'NO DATA CHANGED'

ENDIF.

6. We can aswell use any other variale

eg. oldekko

oekko

myekko

etc,

7. But for business meaning,

R/3 has the facility for *

*----


1. we can use almost everywhere.

2. just copy paste

report abc.

*----


TABLES : T001.

TABLES : *T001.

DATA : ITAB LIKE EKKO.

DATA : *ITAB LIKE EKKO.

DATA : NUM TYPE I.

DATA : *NUM TYPE I.

regards,

amit m.

Read only

Former Member
0 Likes
998

Hi,

It is nothing but, the table names ends with mara. For example, there are tables like CONT01_Mara, TWISPC_MARA. If u declare a table statement such as

Tables: *mara. It creates work area for all tables that ends with mara.

Try this.

Reward if useful.

Regards,

U. Uma