cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove last blank page from preview of Smartform

Former Member
0 Kudos
74

Hi Experts ,

I am creating a smartform having vbeln range option. Now if i give range from 2 to 10 then After Doc NO. 10

i got a blank page . So can u please tell me how to remove that.

Rgds,

Premraj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hey,

Create a program lines node.....

in that describe the internal table in which you are having the document number.If you are having 10 document number then you will be having 10 pages.... so create program lines befor the command line in the command line just give a flag ok.

when the 10th page is created then the control comes to program line where the pagenumber will be equal to the number of document number there create a flag ( f = 'X') then give this codition in command line.Trigger the command line when ever f NE 'X'.So in the last time new page will not be triggered.

Regards,

Midhun Abraham

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi premraj,

Check the main window size in smartform.

Regards,

Sravanthi

Former Member
0 Kudos

Hi,

If you know how many pages are comming when you are executing the smart form,

then pass total pages - 1 to tdpageslct field .

data ls_output_opts TYPE ssfcompop.

ls_output_opts-tdpageslct = total pages - 1.

and pass this structure to output_options parameter of your fumtion Module called for the smart form.

Thanks.

UmaS.

Former Member
0 Kudos

Hi Premraj,

Please check the below thread(s),

Best Regards.