Skip to Content
author's profile photo Former Member
Former Member

diffrence b/w template & table in smart form?

hi ,

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

deepak

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2007 at 05:07 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2007 at 05:16 AM

    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,

    smartforms

    Regards

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2007 at 05:22 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2007 at 05:28 AM

    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,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.