cancel
Showing results for 
Search instead for 
Did you mean: 

diffrence b/w template & table in smart form?

deepak_kumar11
Participant
0 Kudos

hi ,

wat is the diffrence b/w template & table in smartforms and how this diffrence can be used while creating layout using smartforms?

deepak

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

A table is of dynamic size where as

template is fixed size in smart forms.

Template is used when we know the exact size of the output or the output is in a fixed format. E.g. Tax form/ cheques /airline form/railway ticket: all these use templates.

Exact difference between table and template:

In Table the height changes dynamically.We call a row a ‘line’ in template.

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.

Template is for constant data.. If u want to print any address or logo or headings we use Template..

It wont trigger new page.. If data crosses the defined size then Template truncates it..

but table triggers a new page and continues with the data !!

Table is for dynamic data..as u know in scripts..

chk this link

http://help.sap.com/saphelp_47x200/helpdata/en/4b/83fb42df8f11d3969700a0c930660b/frameset.htm

For more info, check these links.

http://www.sap-img.com/smartforms/smart-006.htm

http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

Regards,

Priyanka.

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

Template is a static content so that its layout cannot be changed dynamically.Eg.Tax forms etc..

Table is a dynamic content whose layout doesn't have fixed size ie.dynamic..eg..internal table contents..

Regards,

Former Member
0 Kudos

Hi,

There are situations where the number of rows in smartforms may vary accordingly,,in that situatios we have to make use of template or tables...

use:

1.template is used to hold static rows i.e., fixed number of rows...used to design windows during compile time

2.table is used to hold recurring/dynamic data i.e.. the data that is not fixed and will vary according to the numbers rows/records being fetched frm the database during runtime!!!!

reward points if found helpful

regards,

abc xyz

Former Member
0 Kudos

hi,

1.we can say Template is just for a static value and table is for dynamic values..

Template can be heading columns for a table (constant)

Table contains data (as many as we retrieve from data base..)

material Plant }Template

1 nl09 }- table first row

2 lt01

23 It09

2.just go to the page window and add your field where ever you want and activate.

rewards if useful,

Regards

Sudheer