10-08-2007 6:48 AM
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.
10-08-2007 6:50 AM
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.
10-08-2007 6:50 AM
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.
10-08-2007 6:52 AM
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