‎2008 Apr 24 11:05 AM
Hi all,
I have read that
"Structure contains Single row and Table Type contains Multiple rows"
Can anybody explain?
Thanks in advance!!
Edited by: Shyam Madhav Pallath on Apr 24, 2008 12:05 PM
‎2008 Apr 24 11:10 AM
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
Regards,
Satish
‎2008 Apr 24 11:08 AM
Hello,
Structure is similar to line type (Can store one record only)
For structures get data from underlying table only in runtime and only one record at a time..
Table type is similar to a custom/standard table...(Can store more than one record data..)
Table type can hold data and can be viewed from SE11/SE12
Reward points if useful
Regards
Shiva
‎2008 Apr 24 11:10 AM
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
Regards,
Satish
‎2008 Apr 24 11:28 AM
Hi
Sturcture is just like an header and it is populated/viewable only during the runtime.
Tables can hold rows of data and it is viewable through SE11.
Regards,
Madhu
‎2008 Apr 24 11:32 AM
‎2008 Apr 24 12:01 PM
Hi,
I do not think Table Type can hold multiple entries , but Table can.
I'm not sure if this is the one you are looking for....jus chk this link
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ea31446011d189700000e8322d00/frameset.htm
Regards,
Madhu
‎2008 Apr 24 11:49 AM
Hi Shyam!!!
Hope these diffrnces helps u understand better::
1.Stucture is line type which means body of internal table.
table type is row type which means workarea of IT.
2.A table type has some database attached to it, whereas the
structure is only a definition with NO DATABASE attached to
it.
Kindly reward if useful.
‎2008 Apr 24 11:56 AM
Still not clear...
Anyway thank you!!!!
The links are helpful but not to the point
‎2008 Apr 24 12:13 PM
If you defined a table type with a structure as a line type ,then it act as a table.
ie, If TSFLIGHT is a table type with 'SFLIGHT' as its line type then,
DATA:
Itab type sflight .
this declaration makes the itab as a structure.
DATA:
Itab type tsflight .
this declaration makes the itab as a table.
‎2008 Apr 28 9:20 AM
There are three different type categories:
Data elements (elementary types and reference types).
Structures (structured types):
A structure consists of components that also have a type, that is they refer to a type.
Table types: A table type describes the structure and functional attributes of an internal table. A special case is the ranges table types.
Reward if found helpful
‎2008 Apr 28 12:00 PM
Hi
Table type:
A table type is a type that describes the structure and functions of an internal table in the ABAP program. It can be used in the ABAP program analogously to types that are predefined in the ABAP program or defined directly in the ABAP program to define data objects and types.
Table types can be used in the ABAP Dictionary to define structures (structured types) and other table types:
A component of a structure can have a table type as type. This defines a structured type with a component that is a table.
A table type can be used as the row type of another table type. This defines a table of tables.
A table type describes the following attributes of an internal table:
The structure and data type attributes of the table row are defined by the row type.
The key definition describes the structure of the table key.
The key category defines whether the key is unique, that is if all the records of the table have different key values.
The access mode defines how the table is accessed and how its records are managed internally.
A special form of these general table types are the ranges table types.
structure:
Structures globally define the data structure occurring in program calculations or when data is passed between programs.
Structures are used in particular to define the data at the interface of module pools and screens and to define the types of the parameters of reusable forms or function modules.
Structures are defined (almost) exactly like tables, but no database tables are generated from them. The same data elements and domains can be used in structures as in tables. Tables can also be included.
thnx
sravani
Plz reward if useful........
‎2008 Apr 30 8:23 AM
hi
i have a little information regrading your question.
1) A structure have no memory where as a table has memory
2) A structure have only the format (filed name in it) where as a table also have contain in it.
A) structure :
field1 field2 field3
B) table
feild1 field2 field3
xx yy zz
hope this might help you.
Edited by: anuj anuj on Apr 30, 2008 9:25 AM
‎2008 May 09 1:10 PM