cancel
Showing results for 
Search instead for 
Did you mean: 

SF Print in background: err msg "Parameter DEVICE ='DUMMY' is not allowed"

former_member185943
Participant
0 Kudos

Hi, all,

I am trying to print a SF in background. Whatever device I choose, I get an error "Parameter DEVICE = DUMMY is not allowed." I tried with LOCL, then created a device of method C, with the same result. What am I doing wrong? This is the code:

  ls_ssf_control-no_dialog = abap_true.
  ls_ssf_control-device    = 'DUMMY'.  
  ls_ssf_control-langu     = 'EN'.
  DATA: ls_print_options TYPE SSFCOMPOP.
  ls_print_options-tdimmed = space.
  ls_print_options-tddest  = 'DUMMY'.
  CALL FUNCTION l_func_name
    EXPORTING
      control_parameters = ls_ssf_control
      output_options     = ls_print_options
      user_settings      = space
    TABLES
      it_dokumenti       = lt_zfi_dokumenti
      it_orders          = lt_orders
    EXCEPTIONS
      formatting_error   = 1
      internal_error     = 2
      send_error         = 3
      user_canceled      = 4
      OTHERS             = 5.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

*ls_ssf_control-device    = 'PRINTER'.*

[Control Structure|http://help.sap.com/saphelp_nw70/helpdata/en/71/9ccd9c8e0e11d4b608006094192fe3/frameset.htm]

Regards,

Sravanthi

former_member185943
Participant
0 Kudos

Sravanthi,

It doesn't work line that.

KR,

Igor