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

Smartform Footer gets appended to Header

Hi,

In my smartform I have a table --> Header, Main Area and Footer.

I have 3 line-types for each one.

I have used framed patterns for them.

My footer area consists of the Totals.

When there is data in my table it gives me the table contents as well as the table lines are displayed in the normal way like an invoice.

But, when there is no data in my table (Main Area) then the Totals (Footer) is getting appended to the Header, like this:

Header

-


Footer (Totals)

My main requirement is even if there is no data in my tables it should display only the blank table like a an empty invoice.

Instead the footer is getting appended.

Best regards.

Harsh Dave

Add a comment
10|10000 characters needed characters exceeded

Related questions

8 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2008 at 01:53 PM

    Well Harsh,

    Ur problem will be solved if u use templates, but then u lose the advantages of table node,

    so what u can probably do is, keep ur table as it is just add a condition in the conditions tab that internal table is not initial,

    then create a template and assign it a condition that internal table is initial,

    so when there is data ur table will show up, when data is not there then ur empty template will show up.

    кu03B1ятu03B9к.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 06:29 AM

    Hi,

    In footer check the internal table is initial or not.If internal table is not initial then only u can print the totals.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 19, 2008 at 06:49 AM

    Hello Harsh,

    Scenario I:

    If your table is blank you need to display only the header & no footer.

    Soln:

    In the conditions tab of the Footer Line, check if the Table is initial.

    Scenario II:

    If your table is blank you need to display only the header, a blank line & no footer.

    Soln:

    Create a "Program Line"; check it ITAB IS INITIAL (if so set v_flag = 'X') & then append a blank row to the table.

    And in the conditions tab of the Footer Line, check if the v_flag = 'X'.

    I hope this might help you.

    BR,

    Suhas

    Edited by: Suhas Saha on Dec 19, 2008 7:50 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 07:41 AM

    Hi,

    Set Condition in smartform for Table Line of Footer in conditions tab (total field not equal to 0).

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 05:25 AM

    Hi

    Best and simple solution is to specify minimum length of the table

    Select table -> goto detail section -> specify minimum heght

    Hope it helps .... 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 05:43 AM

    Hi,

    I f you do not want to display the Totals line in the footer when the table is empty then use the condition ITAB # INITIAL to the section of nodes under the footer.

    Regards,

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 06:23 AM

    Hi,

    If you use Footer option of the table, this scenario will occur

    To avoid this you need to create a template in Main Area and use absolete from left option

    Specify the length for it and deduct this length with main area length

    Regards

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 08:58 AM

    Thanks All for your quick and effective response.

    As suggest by Shivakumar and Kartik.

    The use of Templates was beneficial.

    But for that it worked well in another window --> Copies.

    So After calling the main window (Table), I called the template window.

    My footer - Totals was declared in another window as the footer always reserves some space after the main area as per my knowledge and if wrong suggestions are welcome.

    So after the Template window I called my Footer window.

    The Initial conditions can be applied then.

    Any more suggestions are welcome.

    Best regards,

    Harsh Dave

    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.