‎2008 Feb 20 6:14 AM
hello everyone,
plz tell me why we create line type and table type.
‎2008 Feb 20 6:23 AM
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
‎2008 Feb 20 6:23 AM
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.
‎2008 Feb 20 6:24 AM
These r mainly useful in Smartforms
to create internal tables without having the TABLE keyword
‎2008 Feb 20 6:32 AM
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
‎2008 Feb 20 6:33 AM
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.
‎2008 Feb 20 6:59 AM
Table type to strore multiple records
line type just to store a single record