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

line type and structure.

Former Member
0 Likes
1,136

What is the difference between line type and structure?

one real time use of both.

instead of line type we can directly use the corresponding tables.

Points assured.

regards,

Prabhu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,104

Hi

<b>The line type of a table type can be defined by:</b>

Specification of a type that already exists (data element, structure, table type, table, view) whose properties are then copied as properties of the defined table line.

Direct type input, where data type, number of positions, and, if required, decimal places, are entered directly.

Specification of a reference type.

<b>structure</b>

The table category defines how the logical table description defined in the ABAP Dictionary is represented in the database.

There are the following table categories:

transparent table

structure

append structure

For internal purposes, such as storing control data or update texts, there are in addition the following table categories:

pooled table

cluster table

generated view structure

<b>reward if usefull</b>

What is the difference between line type and structure?

one real time use of both.

instead of line type we can directly use the corresponding tables.

Points assured.

regards,

Prabhu.

5 REPLIES 5
Read only

Former Member
0 Likes
1,104

one more how to create a line type?

regards,

Prabhu

Read only

former_member404244
Active Contributor
0 Likes
1,104

Hi,

Plz have a look at the below link..

http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/content.htm

line type refers to the structure of an internal table,whereas row type is the actual part that contains the data and it refers to the table body.creating internal table using line type and row type concept is for reusability purpose.Line type and Row type are defined at DDIC LEVEL. .

Regards,

Nagaraj

Read only

Former Member
0 Likes
1,104

Line type is used to create work area for an internal table.

Ex:

data: begin of ty_mara,

matnr like mara-matnr,

werks like marc-werks,

maktx like makt-maktx,

end of ty_mara.

Data: g_t_mara type table of ty_mara.

data: wa_mara like line of g_t_mara.

here you are creating a table g_t_mara of type ty_mara. For work area you are creating a structure wa_mara which looks like a line of g_t_mara with same fields.

http://help.sap.com/saphelp_nw04/helpdata/en/0b/e06b1c2d8411d5b693006094192fe3/frameset.htm

Regards

vasu

Read only

0 Likes
1,104

hi,

data: begin of ty_mara,

matnr like mara-matnr,

werks like marc-werks,

maktx like makt-maktx,

end of ty_mara.

Data: g_t_mara type table of ty_mara.

data: wa_mara like line of g_t_mara.

instead I can put is as

wa_mara like ty_mara.

right?????

regards,

Prabhu

Read only

Former Member
0 Likes
1,105

Hi

<b>The line type of a table type can be defined by:</b>

Specification of a type that already exists (data element, structure, table type, table, view) whose properties are then copied as properties of the defined table line.

Direct type input, where data type, number of positions, and, if required, decimal places, are entered directly.

Specification of a reference type.

<b>structure</b>

The table category defines how the logical table description defined in the ABAP Dictionary is represented in the database.

There are the following table categories:

transparent table

structure

append structure

For internal purposes, such as storing control data or update texts, there are in addition the following table categories:

pooled table

cluster table

generated view structure

<b>reward if usefull</b>