what is the differance b/w template and table in Smartforms?

Answer Posted / suraj prakash

Table exteds dynamically.
Template is fixed in size.

template is Output of a table containing static data
these are the Possible direct successors-All except window, page, table,
and template nodes
Table - Output of a table containing application
data and these are the Possible direct successors-as with template node

Template is used for proper allignment of data which table is used for displaying multiple data.

We can say Template is for static data and Table is for dynamic data.

Suppose we have a requirement in which we have to allign the customer address in such a way as shown below:-

Name- Krishna Company- WIPRO Location- Chennai
Desig- S/W Native - Mumbai

Then for proper allighnment we can create a template and split that into 3 columns and 2 rows and create text elements for each cell display a proper allighned data at the output.

When we include a template inside a loop it gives the same property as a table.

When we have mutiple data which is to be extended to the next page like when we display all employee details in a company we use table.

Table has 3 sections , HEADER, ITEM ,FOOTER
The header secntion will be executed once and it will loop at the item level. at the end footer will be executed.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the attributes of the data? : abap data dictionary

650


Can there be more than 1 main window in sap script?

613


What is append search help? : sap abap data dictionary

689


What are two different ways to add fields to sap tables?

526


What happens if a function module runs in an update task?

552






What are pooled tables?

614


What are internal tables? How do you get the number of lines in an internal table?

629


What are Tickets in Realtime ?

1671


How many ways can a sap system be accessed?

684


Can you define a field without a data element? : abap data dictionary

615


What will happen when we use fully buffered in abap?

559


Can we use transfer dataset to transfer data in internal table ?

1639


How do you activate a function exit?

556


Explain what is an rdbms?

561


What are the page windows?

547