‎2008 Apr 09 7:00 AM
‎2008 Apr 09 7:02 AM
Hi,
Template has fixed no of line.
Table can grow , it can has n no of lines dynamically like our internal tables.
Regards,
Nishant
‎2008 Apr 09 7:14 AM
HI,
Template is static
Tables are dynamic.
template:
Use node type template to display a table whose layout and size is determined before the runtime of the print
program.
To create a template, define a table layout to determine the cell structure for each line. The cells are used to
display the cell structure for each line. The cells are used to display the contents of the successor nodes of the
template node.
· Create Template under the INFO window node. Create > Template.
The template layout is used to determine the following,
1. The number of lines and cells
2. The height of each cell
3. The width of each cell
4. The alignment of the table in the window
5. Whether and where to display separator lines or frames
Use the table control on the template tab to define the layout of the lines. Each line of the template must have
a definition.
Use the pattern box to select the desired table pattern.
·
Displaying contents in cells: (TLE_CONTACT)
The template node defines the table layout. The successor nodes of the template determine the data to be
displayed in the table cells.
In General Attributes choose Text type Text Element. In editor, type DTE Contact.
In Output Options, define the output structure LINE 5 and Column 1.
Similarly all other information for each cell can be filed using the text module and address module.
table:
to Displaying Dynamic Table (ITEM_TABLE)
· Create TABLE under the MAIN window node. In DATA Tab, loop through the data internal table.
L_XEKPO is the item table which has all the line item details.
Define the line types based on the positioning of the text in main window. For example: TABLE_HEADER1
is used for positioning Header texts in the table.
· Table is divided into three parts: Header, Main Area and Footer.
· Header is used for printing the Header Title of the table and it at the start of the table on every page.
· Main Area is used to print the line item details of the PO. Create a line (ITEM_DETAIL) of the line type
TABLE_HEADER1. It will dynamically generate number cells based on the line type defined in the table layout.
Name all the cells as per the usage. For each cell create the text node to display the information. For example:
Cell VAL_MATERIAL, Text node MATNR is created which has text element - -matnr.
· Footer is used for printing the information after Main Area data is printed. This can be used for Total
printing or any other information which needs to be printed after all line items are printed. Create line
TLE_CONTR_STP for Contractual Stipulation of the line type LINE which has only one column. Create the
text element to print the information.
Regards,
Keerthi
‎2008 Apr 09 7:11 AM
Template: Displays texts for table cells of a static table
Table Display table contents
chk this link for more detailed info.:
http://www.sap-press.com/downloads/h955_preview.pdf
Regards
Kiran
‎2008 Apr 09 7:13 AM
HI,
Template :
1. No of rows & coloumns are fixed.
2. u can directly mention, which data has to be fill in which row & coloumn.
3. Templates are used, where u r having static no of data.
( ex : Name, rollno, age, sex)
4. No header & footer
Table :
1. No of cols are fixed, u can have 'n' no of rows.
2. it has header & footer concept
With Rgds,
S.barani
‎2008 Apr 09 7:14 AM
Hi,
Template: Displays texts for table cells of a static table
Table Display table contents of dynamically.
chk this link for more detailed info.:
http://www.sap-press.com/downloads/h955_preview.pdf
Regards,
If helpful reward with points(Don't forget).
‎2008 Apr 09 7:25 AM
Output of the TABLE contain application data.These data are dynamic.
Template contain static data.
plzz reward if found helpful.