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

regarding table type .....

Former Member
0 Likes
612

hello everyone,

plz tell me why we create line type and table type.

6 REPLIES 6
Read only

Former Member
0 Likes
596

HI

line type: this is used to declare global workarea

when u declare a structure in se11 and u use it in smartforms u declare it as line type.

table type: this is used to decalre the total internal table.

when u create a internal table in se11 u decalre it as table type.

Edited by: Jyothsna M on Feb 20, 2008 7:27 AM

Read only

Former Member
0 Likes
596

line type http://help.sap.com/saphelp_nw04/helpdata/en/30/4fbac72e5f11d5b694006094192fe3/frameset.htm

table type

http://help.sap.com/saphelp_nw04/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm

usually line type is used in smartforms, while creating tables.

table type used for global type declaration of an internal table.

Read only

Former Member
0 Likes
596

These r mainly useful in Smartforms

to create internal tables without having the TABLE keyword

Read only

Former Member
0 Likes
596

Hi Vishal,

When we have to Pass a table to a method (used in a class), we just can not pass as it is.

we first create a Table type of existing table and we give the Line type of table type as the Table that we have to Method.

For Eg. suppose you need to pass Table1 to method.

then first u'll create TableType1 and in this table type u'll give Line type as Table1.

and u'll pass this TableType1 to method.

Hence, table type acts as table while passing to methods and Line type acts as work area or Structure for this table type.

Hope it is clear,

Reward points if helpful.

Regards,

Preeti

Read only

Former Member
0 Likes
596

Hi,

Line type can be used as a work area.

and row type (table type) can be used as body.

suppose you want to declare internal table that time its better to define the internal table based on line type and row type.

here line type serves as work area for your internal table and

row type serves as body of your internal table.

regards,

swami.

Read only

Former Member
0 Likes
596

Table type to strore multiple records

line type just to store a single record