Application Development 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: 

what is the difference between standatd table and table as a declaration..

Former Member
0 Kudos

Hi, all

waht is the difference between these two statements

DATA: it_prodord_data TYPE STANDARD TABLE OF t_prodord_data,

wa_prodord_data LIKE LINE OF it_prodord_data.

DATA: it_plpo TYPE TABLE OF t_plpo,

wa_plpo TYPE t_plpo.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

There is no difference.

See we have the three types of Internal Tables like Standard, Sorted and Hashed.

For Standard tables we declare like,

DATA: it_prodord_data TYPE STANDARD TABLE OF t_prodord_data,

wa_prodord_data LIKE LINE OF it_prodord_data.

But Standard table is the Default one. So you can Declare like this also,

DATA: it_plpo TYPE TABLE OF t_plpo,

wa_plpo TYPE t_plpo.

If you declared like this means system takes It_PLPO is the Standard Table.

Thanks.

Reward If Helpful.

2 REPLIES 2

Former Member
0 Kudos

Hi,

There is no difference.

See we have the three types of Internal Tables like Standard, Sorted and Hashed.

For Standard tables we declare like,

DATA: it_prodord_data TYPE STANDARD TABLE OF t_prodord_data,

wa_prodord_data LIKE LINE OF it_prodord_data.

But Standard table is the Default one. So you can Declare like this also,

DATA: it_plpo TYPE TABLE OF t_plpo,

wa_plpo TYPE t_plpo.

If you declared like this means system takes It_PLPO is the Standard Table.

Thanks.

Reward If Helpful.

abdulazeez12
Active Contributor
0 Kudos

There is no difference..u can either mention TYPE TABLE OF or TYPE STANDARD TABLE OF..

However, it makes difference when you mention..

TYPE SORTED TABLE OF

TYPE HASHED TABLE OF..

Cheers