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: 

smartforms print

Former Member
0 Kudos
160

Hi experts,

I have 50 pages in my smartforms output.How can i print only first 2 pages?

thanks

kaki

1 ACCEPTED SOLUTION

Former Member
0 Kudos
130

In the Print dialog you can specify this..

6 REPLIES 6

Former Member
0 Kudos
131

In the Print dialog you can specify this..

0 Kudos
130

Hi,

Iam getting only print priview.where can select first 2 pages?

kaki

0 Kudos
130

DATA i_print TYPE SSFCOMPOP.

DATA i_ctrl TYPE SSFCTRLOP.

i_print-tddest = 'LP01'. "Device

*i_ctrl-preview = 'X'.

*i_ctrl-no_dialog = SPACE.

i_print-TDPAGESLCT='1,2'."page num

CALL FUNCTION '/1BCDWB/SF00000204'

EXPORTING

  • CONTROL_PARAMETERS = i_ctrl

OUTPUT_OPTIONS = i_print

.

Message was edited by: Wenceslaus G

Former Member
0 Kudos
130

in page selection you have to give the pages to be printed...

Former Member
0 Kudos
130

hi Kaki,

use TDPAGESLCT of SSFCOMPOP

ie

declare i_p type SSFCOMPOP.

and set the value of TDPAGESLCT.

i_p-TDPAGESLCT = '1,2'.

and pass it to the Function module..

CALL FUNCTION..

EXPORTING

...

OUTPUT_OPTIONS = i_p

..

i hope it works..

regards

satesh

Former Member
0 Kudos
130

Yes kaki use the above program its working.You can get some info in this link.

http://www.sapgenie.com/abap/smartforms_detail.htm