‎2006 Jan 04 4:37 PM
Hi All,
I have modified the standard print program for quotation to suit my requirements. To print the total value at the bottom of main window, I am using bottom-endbottom.
The problem is that for specific no. of line items the total is not printed at the bottom of the main window. For eg: if i have 33 line items, the total is printed but if there are 34 or 35, the total is not printed.However if there are 36 lineitems, the total is printed on the next page along with the 36th line item. I am calling the text element for total from the end_print perform as in case with standard program.
Not sure what the error is.
Thanks for your help
Amu.
‎2006 Jan 04 6:11 PM
Hi,
wat u can do is print only 33 line items in one page. This u can do by calling PROTECT functio in the sapscript after 33rd line in the internal table. then u can call ENDPROTECT function after TOTAL.
y this is required is that after 34 items, there isnt enuf space for the total n also it doesnt go to next page. if u use protect after 33 items, n endprotect after total, these docs will have to be carried to the next page as they cannot be accomodated in the same page.
neways if u dont use bottom endbottom n simply put the total after ur line items, there wontbe any probs as such.
Please acknowedge if it helps,
Bikash
‎2006 Jan 04 6:11 PM
Hi,
wat u can do is print only 33 line items in one page. This u can do by calling PROTECT functio in the sapscript after 33rd line in the internal table. then u can call ENDPROTECT function after TOTAL.
y this is required is that after 34 items, there isnt enuf space for the total n also it doesnt go to next page. if u use protect after 33 items, n endprotect after total, these docs will have to be carried to the next page as they cannot be accomodated in the same page.
neways if u dont use bottom endbottom n simply put the total after ur line items, there wontbe any probs as such.
Please acknowedge if it helps,
Bikash