cancel
Showing results for 
Search instead for 
Did you mean: 

I donot need pop screen before Smart form printing

Former Member
0 Kudos

HI All ,

I execute a print program which calls a smartform . then appers the screen on which you fill printer name then go for print preview or print . I do'not want this screen to appear .

I have tried using this code please Help .

DATA : lw_ssfcompop TYPE ssfcompop,

lw_ssfctrlop TYPE ssfctrlop.

CLEAR lw_ssfcompop.

CLEAR lw_ssfctrlop.

lw_ssfcompop-tddest = 'LOCL' .

lw_ssfcompop-tdnoprev = gc_x.

lw_ssfcompop-tdiexit = gc_x.

lw_ssfctrlop-device = gc_printer.

lw_ssfctrlop-no_dialog = gc_x.

ENDIF.

regards

Saurabh Garg

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Saurabh,

It is easy...

data: ctrl_param type ssfctrlop,

out_option type ssfcompop,

fm_name type rs38l_fnam.

<b>ctrl_param-preview = 'X'.

out_option-tddest = 'LP01'. " </b>or whatever <b>

ctrl_param-no_dialog = 'X'.</b>

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = gv_form

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

fm_name = fm_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3

.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

call function fm_name

exporting

<b>control_parameters = ctrl_param

output_options = out_option

user_settings = space</b>

tables

itab = itab[]

exceptions

.

.

.

This will work.

<b>Award points if found useful.</b>

Regards,

SP.

Former Member
0 Kudos

The control parameters No_dialog should take care of this (lw_ssfctrlop-no_dialog = gc_x.)

You are passing these values to the control parameters of the Smartform, right?

Former Member
0 Kudos

you should find some information following this link: