Application Development 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: 

Sap Scripts

Former Member
0 Kudos

1. in the first page (and in all the odd pages) the printout takes just one line, instead of filling in all the page,

while on the second page (and on all the even pages) the printout correctly takes all the lines .

2.

the total number of pages is cut in the first 9 pages, while it is OK from the 10th on

ex: pag.: 001 / 4 for the first page to 9th page

010/ 43 for the rest of the pages

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Mahesh,

these points might get you towards the solution to your problem,

1) Generally the standards scripts make use of the page-breaks effectively. This problem that you are facing is not because of the odd/even pages but because of the page break that you are encountering after a few records. So plz enlarge the main window to tackle that page-break. Definitely page-break is there after a few records in your case. That is the reason it might show all the records while debugging. But as it tries to fit in the number of records into the same page it cannot do that becoz of its size constraint. and when it tries to push it into the next page then it shall encounter a page break after pushing a single record.

Lets say the standard script has a page break for every 6 records, but your main window might have a constraint of allowing only 7 records. so when try to print, system tries to push the 7 records but at the 6th there is a page break and hence system prints one record there and then on the next page it goes for all 7 records. but again on the next page u might again have the same problem.

so try to adjust the main window by enlarging it. and take care of the footer also.

2) try to align the pagenumbers to center / right and then see what is happening. this might give u a clue to rectify the error.

Award Points if this is useful,

Regards,

Kiran

3 REPLIES 3

Former Member
0 Kudos

Hi

Check for all the conditions that were used by you, to print the respective data in each page

You might have used some condition, that's why it is not printing in the Odd pages. check and see.

Reward points if useful

Regards

Anji

Former Member
0 Kudos

sounds like unwanted page-breaks?

But you really need to be more specific and describe the problem in detail.

Former Member
0 Kudos

Hi Mahesh,

these points might get you towards the solution to your problem,

1) Generally the standards scripts make use of the page-breaks effectively. This problem that you are facing is not because of the odd/even pages but because of the page break that you are encountering after a few records. So plz enlarge the main window to tackle that page-break. Definitely page-break is there after a few records in your case. That is the reason it might show all the records while debugging. But as it tries to fit in the number of records into the same page it cannot do that becoz of its size constraint. and when it tries to push it into the next page then it shall encounter a page break after pushing a single record.

Lets say the standard script has a page break for every 6 records, but your main window might have a constraint of allowing only 7 records. so when try to print, system tries to push the 7 records but at the 6th there is a page break and hence system prints one record there and then on the next page it goes for all 7 records. but again on the next page u might again have the same problem.

so try to adjust the main window by enlarging it. and take care of the footer also.

2) try to align the pagenumbers to center / right and then see what is happening. this might give u a clue to rectify the error.

Award Points if this is useful,

Regards,

Kiran