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

SMARTFORMS

Former Member
0 Likes
580

Hi All

>>> What is diffrence between Templates And tables in smartforms?

Thanks With Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
557

Hi Navin,

In both cases You can display passed data in for example text elements, but

TEMPLATE is kind of static element - You can set it width, height etc. and You

can display only variables or single table fields,

TABLE on the other hand don't gives You possibility to set it height (You might need that sometimes - width You can) and in this case You can display

passed tables data - TABLE is doing loop at passed table displaying rows

depending from the conditions

Check

http://help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d45...

Regards,

Priyanka.

5 REPLIES 5
Read only

Former Member
0 Likes
558

Hi Navin,

In both cases You can display passed data in for example text elements, but

TEMPLATE is kind of static element - You can set it width, height etc. and You

can display only variables or single table fields,

TABLE on the other hand don't gives You possibility to set it height (You might need that sometimes - width You can) and in this case You can display

passed tables data - TABLE is doing loop at passed table displaying rows

depending from the conditions

Check

http://help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d45...

Regards,

Priyanka.

Read only

Former Member
0 Likes
557

Hi

Template can be considered as static structure . basically template can used as header footer etc. where u know actually the ammount of data coming . data is static not dynamic

Tables is the dynamic flow of data . no of records are not known . data is dynamic .

Read only

Former Member
0 Likes
557

hi,

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 (see Displaying Graphics in Templates).

To use a template, you must:

Define the table layout.

Display contents in the table cells.

n table is a combination of rows n columns.......here rows r the records n columns r the fields.....we create a table in smartform to define cells.....

if u feel this information is useful then dont foeget to reward with points.

with regards,

madhuri.

Read only

Former Member
0 Likes
557

hi,

Template is for printing Header details.

Template: Displays texts for table cells of a static table

Table is used for Looping that is for printing item details.Table Display table contents

For more details :

chk this link for more detailed info.:

http://www.sap-press.com/downloads/h955_preview.pdf

Regards

Jayant

Please award if helpful

Read only

Former Member
0 Likes
557

Hi Navin,

Template in smartforms are used for variable windows i.e. windows that will appear only on first page.

while tables are used for main window in which data will continue to next pages. mainly tables are used for continues data i.e. line item data in case of sales order.

tables are having 3 fields.

1. header

2. main body.

3. Footer

while templates are used just to print data in tabular form.

Reward points if helpful.

Regards,

Hemant