on 05-15-2008 4:21 AM
Hi,
My requirement is to print the softex form based on the selection criteria. In selection screen im passing the month & year. So in that period how many orders are there that many forms has to be generated. And each form is having 4 pages. My problem is that, in selection screen i have passed the last month. So there are 4 sales orders are there. so 16 pages should be displayed. But one extra page is coming. How can i avoid that blank page.
Hi,
Along with that define the two variables in the global definition as
g_cnt type sy-tabix.
g_flg type c .
->in the initialization tab
g_cnt = lines( the table name which you are using in the main
window to display sales order).
Now you have the total no of lines in the g_cnt.
in the loop which is in main window write the program line pass the output parameter as g_flg.
in the condions tab give the condition as g_cnt = sy-tabix.
in the source code of that program lines
g_flg = 'X'.
now for the command node in the codition tab give the condition as g_flg ne 'X'.
Now you will not get the extra page.
Thanks,
NN.
Edited by: Nethaji babu on May 15, 2008 8:03 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For the last page to be printed go to the general attributes-->Next page is present
here select the next page as this page name only
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
The extra page occurs because the data in the main window of the previous page is exceeding. if u can adjust the main window to accomoadate the line items then it can be rectified.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
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.