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

Diff Btw Table type, Line type and Structure

Former Member
0 Likes
1,706

Hi All,

Can anybody tell me clearly the difference between

1. Table type

2. Line type

3. Structure

The Usage of these in an internal table with coding examples.

Thanks in Advance,

Senthil

1 ACCEPTED SOLUTION
Read only

eddy_declercq
Active Contributor
0 Likes
988

Hi,

Pls check this help for

table type

http://help.sap.com/saphelp_nw2004s/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm

line types

http://help.sap.com/saphelp_nw2004s/helpdata/en/30/4fbac72e5f11d5b694006094192fe3/frameset.htm

structures

http://help.sap.com/saphelp_nw2004s/helpdata/en/90/8d7301b1af11d194f600a0c929b3c3/frameset.htm

Eddy

PS.

Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.

Spread the wor(l)d!

7 REPLIES 7
Read only

eddy_declercq
Active Contributor
0 Likes
989

Hi,

Pls check this help for

table type

http://help.sap.com/saphelp_nw2004s/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm

line types

http://help.sap.com/saphelp_nw2004s/helpdata/en/30/4fbac72e5f11d5b694006094192fe3/frameset.htm

structures

http://help.sap.com/saphelp_nw2004s/helpdata/en/90/8d7301b1af11d194f600a0c929b3c3/frameset.htm

Eddy

PS.

Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.

Spread the wor(l)d!

Read only

Former Member
0 Likes
988

If A is a Table type,

and you say data: itab type A. then itab is an internal table.

If B is a Line type, and you say itab type B. Then itab is a structure .

If CXX is a Structure, and you say itab type CXX, then itab is a structure.

and itab type line of A = itab type CXX = itab like line of A.

Regards,

Ravi

Read only

0 Likes
988

hi,

in the case of table type.

we will get an internal table.

In the case of line type we

will get a structure.

structure means a skelton.

it has no mememory space.

whn a structure is included in an internal table,

thn only it will hold a memory.

rgds

anver

if hlped mark points

Read only

0 Likes
988

refer the link

http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb35de3

58411d1829f0000e829fbfe/frameset.htm

Table is for contents( container for data- you can store data )

Structure is only the field names (you can not store data)

regards

Vivek

<b> reward points for helpful answers </b>

Read only

Former Member
0 Likes
988

Hello,

Case 1:

=======

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,

Venkat Ramanan N

Read only

0 Likes
988

Hi,

Thanks for all, unable to mark very helpful answer for all.

Thanks,

Senthil