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

TABLE' N' TEMPLATE

Former Member
0 Likes
662

<b>Hi Mentors.

will u plz let me knw the clear differences between TABLE and TEMPLATE, if possible with examples.</b>

4 REPLIES 4
Read only

Former Member
0 Likes
625

HI Aneesa,

If u send me u r personal mail_id, i have brief docu on TABLE,TEMPLETS AND LOOPS WITH example

send me to fareedas@intelligroup.com

Regards

fareedas

Read only

Former Member
0 Likes
625

A table is meant to be used to display dynamic number of lines (eg. invoice line items), whereas a template is for fixed number of column and lines (labels).

In SAP SmartForms, templates (from template node) define the format of the columnar output but they are just structures which can used to set how the columns in the output are placed. Whereas as tables actually contain rows to hold data. The Template contains a fixed number of rows and columns, where the output is fixed. The Table can have variable number of rows

The application data is selected in the application program and transferred to the form using the form interface. In contrast to the template node, the table node has another tab called the Data tab. On this tab, you enter the internal table whose data is to be output. The data is read to a work area in row format.

The table layout is determined using row types (this is same for templates).

A header area (for table headers), main area (for items of the table), and footer area (for whole sums, or similar) are table output areas. Table rows are created as subnodes of these areas.

Read only

Former Member
0 Likes
625

Hi,

Here is the Difference

TEMPLATES: Display texts for table cell of a static table

Where as

TABLES: Display table contents

If u want example with screen-shots, please let me know ur Personal mail_id .soon

Reward Points If usefull to u

Regards

Fareedas

Edited by: Fareedas on Mar 4, 2008 6:43 PM

Read only

Former Member
0 Likes
625

Hi,

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.

SmartForms Useful links

http://www.sapgenie.com/abap/smartforms.htm

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

http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm

http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm

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

http://www.sap-img.com/smartforms/smartform-tutorial.htm

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

http://www.sapgenie.com/abap/smartforms.htm

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

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.