cancel
Showing results for 
Search instead for 
Did you mean: 

Printing of total values only on last page

Former Member
0 Kudos

Dear All, In my invoice layout there are line items and corresponding to it there are total values.I have to show total values table on all the pages . if the line item exceeds one page then only header of total values table should come on first page without any actual values and the values with header should come only on last page.

Please suggest me how to do it.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for clarify.

You do one things, depends upon your main window size and number of line items.

You can use Command in smartform, and check your main window size, suppose only 15 line items can come on main window and suppose your total line items are more than 15 than you can set condition in Command and it will trigger your next page automatically.

Hope, this solve your issue.

Regards

Sachin

Former Member
0 Kudos

Hi,

You can approach this:

Process your final internal table.. Add one field with name : Sub_tot.

Loop on your internal table into workarea

workarea-Sub_tot = workarea-subtot + Currency_field .

modify internaltable from workarea transporting sub_tot.

endloop.

now after it..... when you are processing your data in Smartform.

You can put your footer condition at Page-break. ad print the value for the line_item subtot which is coming before end of page

IT will solve your issue...

if you have any doubt, you can apporach me.....

If your problem get resolved, please appreciate

Regards

Sachin

Former Member
0 Kudos

you have not understood my problem.

i have to print blank table with header only on first page if line item table exceeds one page and on next page i have to print total table with all value of all the line items

Former Member
0 Kudos

Hi Sonu,

have u solved ur problem, else i can help.

Former Member
0 Kudos

Dear all Thanks for helping me. I have solved my problem

Former Member
0 Kudos

Hi,

If the total is in the footer of the main window,then it will be displayed on the last page.

If it is a different window altogether, then check only after end of main window in the output options of the window