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

Subtotals in SMARTFORMS

Hi,

I am getting a problem in printing the subtotals on each page of the form.

I am using the table node to loop through the line items. Each line item in the table may run through 3 or 4 lines dynamically with the first line as the actual line item and next lines are some texts.

So,the page break is not getting controlled and the sum of the amounts is not getting populated properly.

I have checked the standard examples SF_TOTALS,But that method is also not working.

Thanks,

Araja

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2005 at 04:50 AM

    Araja,

    Max has hit the nail on the head in saying that you need to use the "Footer" event in the Table Node. In the Output Options of the Footer Node under Pruit Time, make sure you select the "At Page Break" as well as the "At End of Table" events. Also it may be worth "Protecting" your line item texts. The "Protect" command is defined in your SmartStyles and can be activated in your Text Node as well. This will make sure that a page break does not happen half way through your text.

    Hope this helps.

    Cheers,

    Pat.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Pat,

      I have tried using the same.But here problem is if I protect the entire line item then first thing is, it will display lot of empty gaps on each page which they don't want and one more thing is along with this inside the table node I am using one more loop node .so some times the each line item may run through the several lines also.

      Thanks,

      Araja

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2005 at 04:51 PM

    Hi

    Into your loop you should active the area of end of page and here insert your node for subtotal.

    Before displayng the subtotal you need an abap node to calculate the total, insert this node into loop but of area of end of page.

    Max

    Add comment
    10|10000 characters needed characters exceeded