‎2007 Nov 20 4:01 AM
<b>Hi Mentors.
will u plz let me knw the clear differences between TABLE and TEMPLATE, if possible with examples.</b>
‎2008 Feb 21 12:59 PM
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
‎2008 Feb 21 1:04 PM
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.
‎2008 Mar 04 1:12 PM
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
‎2008 Mar 08 6:53 AM
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.