Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

The problem is when printing from smartform.

Former Member
0 Likes
643

[http://blogfiles5.naver.net/20090921_228/jin8417_1253524625285L1ra3_png/print_jin8417.png]

The screen will pop up, such as when printing pictures.

What are ways can not see?

Thanks.

[http://blogfiles5.naver.net/20090921_228/jin8417_1253524625285L1ra3_png/print_jin8417.png]

The screen will pop up, such as when printing pictures.

What are ways can not see?

Thanks.

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
610

link:[http://an-abaper.blogspot.com/2009/07/printing-smartform-without-print-dialog.html]

Edited by: Keshu Thekkillam on Sep 21, 2009 9:36 PM

Read only

Former Member
0 Likes
610

Hi,

Set this,


CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = w_destination
layout = 'X_58_170'
*no_dialog = 'X'*                     "Set this parameter 
IMPORTING
out_parameters = params
valid = valid.

Regards,

Vikranth

Read only

soumya_jose3
Active Contributor
0 Likes
610

Hi,

Check the below code:

data: function_module_name type rs38l_fnam,
      ssfctrlop type ssfctrlop,
      ssfcompop type ssfcompop.
*print parameters
  ssfctrlop-device    = printer.
ssfctrlop-no_dialog = x.  -----------------> No dialog display
  ssfcompop-tddest   = locl.
 
call function 'SSF_FUNCTION_MODULE_NAME'
          exporting
            formname           = form
          importing
            fm_name            = l_fmname
          exceptions
            no_form            = 1
            no_function_module = 2
            others             = 3.
        if sy-subrc  0.
        endif.
 
 
        call function l_fmname
          exporting
            control_parameters = ssfctrlop
            output_options     = ssfcompop
            user_settings      = ' '
            data_cust          = it_data
          exceptions
            exceptions         = 1
            formatting_error   = 2
            internal_error     = 3
            send_error         = 4
            user_canceled      = 5.

Regards,

Soumya