‎2006 Oct 02 3:32 PM
‎2006 Oct 02 3:33 PM
hi Srinivas,
table type
http://help.sap.com/saphelp_nw2004s/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm
In SE11 you can create table type.
This table type is similar to tables, but not the same way as you create tables. You can create table type with either Line type ( Nothing but a structure), Built-in ABAP types or Reference type. Assume that we have created one table type TYTAB with line type LITYP.
So when you declare like this,
DATA: ITAB type TYTAB - Now ITAB acts as a internal table of type TYTAB.
DATA: LS_TYP TYPE LITYP - This LS_TYP now acts as a structure.
So, it is clear that linetype and structure are one and the same.
Regards,
Santosh
‎2006 Oct 02 3:33 PM
hi Srinivas,
table type
http://help.sap.com/saphelp_nw2004s/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm
In SE11 you can create table type.
This table type is similar to tables, but not the same way as you create tables. You can create table type with either Line type ( Nothing but a structure), Built-in ABAP types or Reference type. Assume that we have created one table type TYTAB with line type LITYP.
So when you declare like this,
DATA: ITAB type TYTAB - Now ITAB acts as a internal table of type TYTAB.
DATA: LS_TYP TYPE LITYP - This LS_TYP now acts as a structure.
So, it is clear that linetype and structure are one and the same.
Regards,
Santosh
‎2006 Oct 02 3:35 PM
With TABLE TYPE you defined an internal table with the same fields and structure of an Transparent table...
DATA: MY_TAB TYPE STANDARD TABLE OF MARA WITH HEADER LINE.
Greetings,
Blag.
‎2006 Oct 02 3:36 PM
Hi Srinivas,
TABLE TYPE is used to create an interanl table.
You can specify type of internal table after TYPE clause.
Thanks,
Vinay
‎2006 Oct 02 3:38 PM
A table type describes the structure and functional attributes of an internal table in ABAP.
For example, A table type YSAM as a struture YSAMPLE.
Then while declaring a internal table it can be just declared as
data: i_data type ysam.
Then while looping the internal it should be looped like,
data: wa_data type ysample.
loop at i_data into wa_data.
endloop.
Regards,
Prakash.