2006 Feb 17 5:51 AM
Hi experts,
I have 50 pages in my smartforms output.How can i print only first 2 pages?
thanks
kaki
2006 Feb 17 5:53 AM
2006 Feb 17 5:53 AM
2006 Feb 17 5:54 AM
Hi,
Iam getting only print priview.where can select first 2 pages?
kaki
2006 Feb 17 5:55 AM
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
2006 Feb 17 5:58 AM
in page selection you have to give the pages to be printed...
2006 Feb 17 5:59 AM
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
2006 Feb 17 6:13 AM
Yes kaki use the above program its working.You can get some info in this link.