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 type

Former Member
0 Likes
615

what is TABLE TYPE.HOW TO CREATE AND USE

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
574

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

4 REPLIES 4
Read only

Former Member
0 Likes
575

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

Read only

Former Member
0 Likes
574

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.

Read only

Former Member
0 Likes
574

Hi Srinivas,

TABLE TYPE is used to create an interanl table.

You can specify type of internal table after TYPE clause.

Thanks,

Vinay

Read only

Former Member
0 Likes
574

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.