cancel
Showing results for 
Search instead for 
Did you mean: 

How i can print the smartform directly

Former Member
0 Kudos

hi,

my requirement is i have to print the smartform directly by skiping the dialog window.

i am using the following code but in that i have press the Print push button again .

DATA: output_options TYPE ssfcompop.

output_options-tdimmed = 'X'.

output_options-tddest = 'LOCL'.

Accepted Solutions (0)

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor
0 Kudos

Trty something like

*   Print parameters
    ssfcompop-tddest = tddest.
    ssfcompop-tdimmed = 'X'.
    ssfcompop-tdnewid = 'X'.
    ssfcompop-tddelete = 'X'.
*   Control parameters
    ssfctrlop-device = 'PRINTER'.
    ssfctrlop-no_dialog = 'X'.
* Call driver
    CALL FUNCTION fm_name
         EXPORTING
              control_parameters = ssfctrlop
              output_options     = ssfcompop
(...)

Regards

Former Member
0 Kudos

thank u lot

arul_murugan
Active Participant
0 Kudos

hi,

declare the following

zxyz TYPE ssfctrlop,

options TYPE ssfcompop.

in start of selection.

zxyz-device = 'PRINTER'.

zxyz-no_dialog = 'X'.

zxyz-preview = 'X'.

options-tddest = 'Z_PRINT_lOCAL'.

options-TDIMMED = give printer name.

in the function module give

control_parameters = zxyz

output_options = options

regards

arul.