Skip to Content
0
Former Member
Jan 30, 2009 at 03:50 AM

smartform output more than one copy

32 Views

Hi expert.

I have a problem and need an advise to resolve.

I create smartforms with driver program, i use control parameter in driver program to specific copy = 1 and show preview page immediately . after execute,preview page shown output just 1 page.

first click at print, one copy receive and page preview still on screen. but in 2nd and 3rd click , i receive two copies and three copies in order.

what i can do to resolve this problem.

i use this code in driver program.

DATA:

control TYPE ssfctrlop,

control_parameters TYPE ssfctrlop,

output_options TYPE ssfcompop.

control-preview = 'X'.

control-no_dialog = 'X'.

control-device = 'PRINTER'.

control_parameters-no_dialog = 'X'.

OUTPUT_OPTIONS-TDDEST = 'PADM'.

OUTPUT_OPTIONS-TDNOPRINT = ' '.

OUTPUT_OPTIONS-TDIMMED = 'X'.

OUTPUT_OPTIONS-TDCOPIES = '1'.

call function lf_fm_name

exporting

output_options = output_options

control_parameters = control

user_settings = ' '

exceptions

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

others = 5.

point for any useful advise.

regards.

kittisak.