cancel
Showing results for 
Search instead for 
Did you mean: 

why we use templates

Former Member
0 Kudos

very very urgent

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Template:

Output of a table containing static data. That is when u know the amount of data u have (i.e. fixed data), you use a template.

Table:

When the data is of variable length and u dont know how many record lines u r going to have, you use a table. But u can also use the table as a dynamic template by unchecking the 'loop at internal table' check box in the data tab of the table node.

In brief, template is for static data and table is for dynamic data.

Reward points if helpful

Former Member
0 Kudos

Hi,

When we have to display a paragraph of information aligned as desired then we have to use a template to align properly .

Ofcourse the no of rows is to be fixed...

Regards,

Ram

Former Member
0 Kudos

hi ,

templates are used for displaying the fields which their value are known to us before the runtine,

for example take a field purchase order no: like "49876". its fine it can be diclared. in that, given range of the template ,

but there is a field like description : then we have to check wheather that information will fits it or not, because we are not developing a invoice for a single po number , it may varies so that , we have to take for that.....other wise u will see some abnormalities like some of the data was missing on it or new line ....like that................

regards ,

venkat.........

Former Member
0 Kudos

hi,

A template as the name suggests allows to print data in a particular format. It contains placeholders for printing the data. The data is ultimately printed using Text nodes. The main features of a Template are:

Tabular layout for printing data (tabs in SAP Script)

Static - number of rows & columns are known before runtime and are fixed.

The structure of the row of the template is defined using a Line type. The height of a line and number of columns that will occur in the line are defined using the Line type. The rows that will use the specified structure of line is also specified. The width of the line type (sum of width of all cells in line type) should be the same as the total width of the template.

The Line Type can be built graphically using the Table Painter. The pattern of the grid to be drawn around the template (if required) can also be selected.

The Output options tab of the Template requires the Line and Column to be specified. As the template is static and the number of rows and columns are pre-specified, the Line and Column help to identify exactly which position of the template the text is being printed in.

Former Member
0 Kudos

Hi,

Template is used for Displaying the static data in the smartform.

Use node type Template to display a table whose layout and size (number of lines and columns) is determined before the runtime of the application program. For this reason, a template is also called a static table.

To create a template, define a table layout to determine the cell structure for each line. The cells are used to display the contents of the inferior nodes of the template node. This allows you to position text and a graphic side by side

The template node is also suited for label printing.

Its very simple

goto any window and right click there

create---> template

There u can graphically create no of rows and columns u want

goto details and there also u can make any changes to the template

For putting any value in that u have to create text under the template and mention the position where the text will appear.

i.e row and column number

Regards

Kiran

Former Member
0 Kudos
Former Member
0 Kudos

Hi

Use template when you know no. of rows early.

Template to display a table whose layout and size (number of lines and columns) is determined before the runtime of the application program.,template is also called a static table.

My Advice:Dont use Long text(e.g Material PO text,item text..) inside the Templates since you do not know the no. of charactes in it.

Edited by: Raj In on Apr 9, 2008 9:26 AM