Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sapscript: Bottom-Endbottom issue

Former Member
0 Likes
544

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
414

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

1 REPLY 1
Read only

Former Member
0 Likes
415

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