2007 Sep 18 10:37 AM
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.
2007 Sep 18 11:05 AM
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.
2007 Sep 18 10:39 AM
2007 Sep 18 10:42 AM
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
2007 Sep 18 10:43 AM
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
2007 Sep 18 10:54 AM
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
2007 Sep 18 11:05 AM
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>
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |