on 11-09-2006 11:52 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.