Application Development and Automation 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: 
Read only

smartforms print

Former Member
0 Likes
680

Hi experts,

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

thanks

kaki

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
650

In the Print dialog you can specify this..

6 REPLIES 6
Read only

Former Member
0 Likes
651

In the Print dialog you can specify this..

Read only

0 Likes
650

Hi,

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

kaki

Read only

0 Likes
650

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

Read only

Former Member
0 Likes
650

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

Read only

Former Member
0 Likes
650

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

Read only

Former Member
0 Likes
650

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

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