Skip to Content
avatar image
Former Member

smartform output more than one copy

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 30, 2009 at 04:07 AM

    Hi,

    This is because when you click fprint first time the spool is genertated and printer recives the print command and you get the expected results.

    Second time when you click again the print button again the new spool is generated and as same printer receives print command and prints the previous spool and present spool because of this you get the two prints and same for the Third time aslo.

    Pass X to OUTPUT_OPTIONS-TDDELETE this shpuld work.

    Add comment
    10|10000 characters needed characters exceeded