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

difference between template and table

Former Member
0 Likes
3,399

hi

difference between template and table

6 REPLIES 6
Read only

Former Member
0 Likes
1,476

Hi,

Template has fixed no of line.

Table can grow , it can has n no of lines dynamically like our internal tables.

Regards,

Nishant

Read only

0 Likes
1,476

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

Read only

Former Member
0 Likes
1,476

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

Read only

Former Member
0 Likes
1,476

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

Read only

Former Member
0 Likes
1,476

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).

Read only

Former Member
0 Likes
1,476

Output of the TABLE contain application data.These data are dynamic.

Template contain static data.

plzz reward if found helpful.