Skip to Content
0
Mar 26, 2009 at 10:56 AM

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

58 Views

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.