on 12-08-2006 4:15 AM
Hi,
I'm using SAP system version 4.6C. (Dont have the new SUM tab in SMARTFORMS as in the newer version.
I'd like to enquire..
Is there a way for me to fix loop 15 rows in a page?
(But need to overflow the rest of the rows into another page. Each page must only have 15 rows)
and
Is there a way for me to total-up the 15 rows of amount in a page?
(Need to refresh the total sum of 15rows to be output on that same page layout as it loops to to many pages)
tq very much.
Hi,
Declare a global variable(say v1 default 0) in global definitions->Global data.
Create a program line inside loop.
Give input and output parameters as v1.
Increment v1 inside the program lines.
Use alternate to check if the counter is 15.
set counter = 0.
Then inside alternate use command to go to new page.
Hope this helps.If so,kindly reward points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I've already reset the counter to 0 in the alternate you mentioned but still cannot...
so, i use restrict the size of the main window to the size of 15 rows. So the rest of the rows can loop into the next page. (but the table header doesnt appear at the next page).
What about the sum?
In smartfrom, how can we sum up the rows of a page?
Thank you..
Hi,
Inside the loop,use program lines.
Declare input variable as field name to be sumed(say wa-xyz),the variable you use for summing(say v1) and cnt(type i) for counting 15 rows.
Declare output variable as v1 and cnt.
In coding,
if cnt = 15.
cnt = 0.
v1 = 0.
endif.
v1 = v1 + wa-xyz.
cnt = cnt + 1.
While the cnt is 15,try to print the total.
declare variable type i.
within a loop.
create a command line, increment the variable.
create a command - Go to new page. in conditions give variable is 15.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.