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 Vs TABLE

Former Member
0 Likes
662

Hi folks,

What is the diffrence between *TABLE and TABLE workareas(where 'TABLE' can be any sap table) . Can u explain me a SCENARIO where we can use this method..??

Thanks in advance.

Regards,

Ram

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
627

There is really no difference, they are both work areas with the same structure, just two different memory areas. This was the old way of declaring work areas, for example, the *TABLE could hold old data, and the TABLE would how the most recent data during a transaction.

Anyway, don't use either, use DATA statements.

Regards,

RIch Heilman

5 REPLIES 5
Read only

Former Member
0 Likes
627

*TABLE is obsolete now ..

chk this ..

tables : mara , *mara.

select single * from mara into *mara where matnr eq p_matnr.

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
628

There is really no difference, they are both work areas with the same structure, just two different memory areas. This was the old way of declaring work areas, for example, the *TABLE could hold old data, and the TABLE would how the most recent data during a transaction.

Anyway, don't use either, use DATA statements.

Regards,

RIch Heilman

Read only

0 Likes
627

Is this kind of declaration same as declaring two work areas using the same table structure.

Ex. data: wa1 type mara.

wa2 type mara.

Ragards,

Ram

Read only

0 Likes
627

*mara creates a structure of the type Mara and works like a work area where as Mara can be used in select endselect statment and can hold more than one row.

Read only

0 Likes
627

Yes, that's all it is, it would be the same as using DATA statements.

data:  wa_tab1 type ztab.
data:  wa_tab2 type ztab.

Regards,

Rich Heilman