cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Footer gets appended to Header

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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к.

Answers (7)

Answers (7)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

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

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

Hope it helps ....

Former Member
0 Kudos

Hi,

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

SuhaSaha
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

Hi,

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

Former Member
0 Kudos

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