‎2006 Sep 20 1:18 PM
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
‎2006 Sep 20 1:21 PM
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!
‎2006 Sep 20 1:21 PM
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!
‎2006 Sep 20 1:21 PM
Check the below link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2d74358411d1829f0000e829fbfe/content.htm
http://www.sappoint.com/faq/faqabdic.pdf#search=%22structure%2BABAP%22
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm
Message was edited by: Prakash Ramu
‎2006 Sep 20 1:21 PM
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
‎2006 Sep 20 1:31 PM
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
‎2006 Sep 20 1:36 PM
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>
‎2006 Sep 20 1:41 PM
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
‎2006 Sep 21 4:49 AM
Hi,
Thanks for all, unable to mark very helpful answer for all.
Thanks,
Senthil