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

Structure and Table Type

Former Member
0 Likes
5,001

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

1 ACCEPTED SOLUTION
12 REPLIES 12
Read only

Former Member
0 Likes
2,247

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

Read only

Former Member
0 Likes
2,247

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

Read only

Former Member
0 Likes
2,247

I am asking about TableType...

Not tables

Read only

0 Likes
2,247

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

Read only

Former Member
0 Likes
2,247

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.

Read only

0 Likes
2,247

Still not clear...

Anyway thank you!!!!

The links are helpful but not to the point

Read only

Former Member
0 Likes
2,247

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.

Read only

Former Member
0 Likes
2,247

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

Read only

Former Member
0 Likes
2,247

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........

Read only

Former Member
0 Likes
2,247

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

Read only

Former Member
0 Likes
2,247

Thank you