‎2007 Oct 18 8:20 AM
hi friends,
could u plz tell me what is meant by "Line Type" in smartforms????
thanks in advance.
regards.
Priya.S
‎2007 Oct 18 8:22 AM
Hi,
It represents the no. of columns in the table in a line defined in the line type.
Hope this helps.
Reward if helpful.
Regards,
Sipra
‎2007 Oct 18 8:56 AM
You use line types to construct the layout of templates and tables. For both node types, you use the line type to describe the following attributes of a table line:
The width of the table line
The number and width of individual cells within the table line
A major difference between line types of templates and line types of tables lies in the height: line types of templates all have the same height, while SAP Smart Forms determines the height of table lines dynamically (depending on the output in the table).
for more details plz refer to the link below
http://help.sap.com/saphelp_nw04/helpdata/en/0b/e06b1c2d8411d5b693006094192fe3/frameset.htm
***********************************
The line type of an internal table can be any data type. The data type of an internal table is normally a structure. Each component of the structure is a column in the internal table. However, the line type may also be elementary or another internal table.
Line type
For the line type <linetype>, you can specify:
Any data type if you are using the TYPE addition. This can be a predefined ABAP type, a local type in the program, or a data type from the ABAP Dictionary.
If you specify any of the generic elementary types C, N, P, or X, any attributes that you fail to specify (field length, number of decimal places) are automatically filled with the default values. You cannot specify any other generic types.
Any data object recognized within the program at that point if you are using the LIKE addition. The line type adopts the fully-specified data type of the data object to which you refer. Except for within classes, you can still use the LIKE addition to refer to database tables and structures in the ABAP Dictionary (for compatibility reasons).
All of the lines in the internal table have the fully-specified technical attributes of the specified data type.
WE USE LINE TYPE TO RETRIEVE FIELDS FROM YOUR WORK AREA OR INTERNAL TABLE BASED ON YOUR REQUIREMENT ( THAT HOW YOU USED IN YOUR SMART FORMS ).
****************************************************************
The line type name is a key used in the subnodes of a table to refer to a desired line layout ('Output options' tab for subnodes). The name of a line type must start with a letter and be unique within a table,
The line type of the table describes the table width. The specified cells can then be filled in subnodes of the table node. You must assign a line type to each table line to be displayed. This allows you to design the layout of complex tables.
The total width of the line type must be the same as the width of the table.