cancel
Showing results for 
Search instead for 
Did you mean: 

page in smartform

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Nethaji

i have tried this but again that extra page is coming. Actually in first i have created text elements. So it is displaying all the text elements without data.

Former Member
0 Kudos

Hi,

If they are not needed remove them.

Thanks,

NN.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi shilpa,

If i am giving next page as last page it will print only one record.

former_member216668
Participant
0 Kudos

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

Former Member
0 Kudos

Hi

In my forth page there is no main window. Main window is only in first page.