‎2004 Aug 11 6:48 AM
I have this senario:
report zfappm513 line-size 900
line-count 58
no standard page heading.
loop at itab.
at new name.
write:/ itab-name.
endat.
at end of name.
sum.
write:/ itab-total.
endat.
at last.
sum.
write:/ itab-total.
endat.
endloop.
The problem occurs whenever I had a page break, the value of <b>itab-total</b> inside the <b>at end</b> will reflect the grand total.
The grand total should only display when it reaches the <b>at last</b>. Please advise. Thanks
‎2004 Aug 11 7:28 AM
I tested the same program , interestingly I did not find this issue.
‎2004 Aug 11 7:45 AM
When I remove the <b>line-count</b>, everything is normal. Is that a bug??
‎2004 Aug 11 8:22 AM
Hi Jefery,
i think, the reason is your line-size , which is > 255.
plz -> F1 on report / LINE-SIZE col
cheers Andreas
‎2004 Aug 12 3:53 AM
Thanks for your help, Andreas.
I've tried to reduce the <b>line-size</b> to less than 255 but the problems still occur.
‎2004 Aug 30 9:29 PM
Hello Jefery,
If you want the grand total displayed only on the last page, to not write itab-total when you are at end of name.