cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent:page wise total in smartforms

Former Member

hi,all

How to do page wise total in smartforms ?

use table in smartforms for summary in pagebreak

ex. page1

10 (line 1)

20 (line 2)

30 (line 3)

total 100

page 2

40 (line 1)

50 (line 2)

total 50

Total in page 1 incorrect = line1(page1) + line2(page1) + line3(page1) + line1 (in page2)

Total in page 2 inccorrect = line2 (in page2) .

please help me guys to solve this problem..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

r u printing the internal table data using the TABLE node then--> in the Calculation tab u can do this.

first create a variable in Global difinations-->global data tab.(ex v_tot)

then in the TABLE>calculations TAB> 1select ->sum then 2nd colun>give the field name which u want to calculate (ex-wa_itab-netwr) in the Target Filedname tab> give the varialbe u have declared for the total(ex v_tot). in TIME colums select AFTER theLOOP...

then in theTABLE>footer>inset a line display the variable(total u r using).here

after the the printing the total..->create a program lines> cleat the v_tot... why u need to clear this is.... u want to display only the total value which are displaying in the current page... after printing this v_tot... clear this... so that in the next page it start totaling the freshly...

lem me know if u have any clarifications.

u can calculate as the above way for all the 6 fields.

please Avoid postin duplicate threads

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Edgar,

In table element we had events like AT the end and so on.

otherewise u can insert a command line in the table and if the

form page is changed u can display the amount at the end of the

page or footer.

Reward if usefull.

regards,

Sunil