cancel
Showing results for 
Search instead for 
Did you mean: 

How to suppress Output Type dialog box at printing time

Former Member
0 Kudos

Hi all,

Can anybody tell me how to suppress the dialog box of Output Type at the time of Print and Print Preview of Smartform through transaction? I mean there will be default for Print or Print Preview.

Thanks,

Manas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

try with this

gs_control-no_dialog = 'X'.

gs_control-preview = 'X'.

gs_control-no_open = 'X'.

gs_control-no_close = 'X'.

call function 'SSF_OPEN'

exporting

control_parameters = gs_control

exceptions

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

others = 5.

if not sy-subrc is initial.

exit.

endif.

then call smartform function module after that

call function 'SSF_CLOSE'.

Regards

vasu