cancel
Showing results for 
Search instead for 
Did you mean: 

PARAMETERS NECESSARY FOR PRINTING SMARTFORM WITH NO DIALOG AND NO PREVIEW

Former Member
0 Kudos

Hi all,

I would like to print inmediately a smartform with no dialog an preview window specifying the printer and the device type

How can I implement the parameters in the module function of the smartform

like output_options and control_parameters. Is necessary any other structure indicated in the function to print like I desire.

Thank you very much.

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

Hello,

You can do it while passing these parameters in the CONTROL_PARAMETERS.

data: ls_CONTROL_PARAMETERS type SSFCTRLOP.

ls_CONTROL_PARAMETERS-DEVICE  = 'LOCL'.
ls_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
ls_CONTROL_PARAMETERS-PREVIEW = ' '.

Pass this ls_CONTROL_PARAMETERS to the importing parameter of the FM .

     CALL FUNCTION LF_FM_NAME
           EXPORTING
                      CONTROL_PARAMETERS   = LS_CONTROL_PARAM

.................

regards,

Naimesh Patel

Former Member
0 Kudos

In addition to this, you might also want to set the print immediately field on the same structure to 'X'.

Generally you leave the device field empty, the user master record default printer will be used.

Answers (0)