Output device option in smartform

Hi,
I am getting the below error in a program which calls a smartform.
'Output device LOCL is not defined'.  As the output device LOCL is not maintained in the system through tcode SPAD, ia m getting this.
My doubt is if i remove the option of giving output device, will it work.
The coding is as follows:
* Set the Parameters of smartform
  l_s_ssfctrlop-no_dialog   = 'X'.
  l_s_ssfctrlop-getotf      = 'X'.
  l_s_output_options-tddest = 'LOCL'.  --------> if I comment this line, will it work without any error as I don't want to print it.
  l_s_output_options-tdnoprint = 'X'.
* call FM to get the name of the FM of smart for smart form
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = g_form_name
    IMPORTING
      fm_name            = l_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 l_fm_name
    EXPORTING
      control_parameters = l_s_ssfctrlop
      output_options     = l_s_output_options
      user_settings      = ' '
    IMPORTING
      job_output_info    = l_s_job_output_info
    TABLES
      g_t_datatab        = g_t_datatab
    EXCEPTIONS
      formatting_error   = 1
      internal_error     = 2
      send_error         = 3
      user_canceled      = 4
      OTHERS             = 5.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Thanks & Regards,
Soumya

Hi,
One more doubt if I give the parameter
l_s_output_options-tdnoprint = 'X'. will it prevent the printing of the form generated or is it just to disable the print button in the pop up.
Thanks & Regards,
Soumya.

Similar Messages

  • Output device in SPAD/Smartform

    Hi All,
    We have a ouput device created through SPAD transaction with a name of 14 characters.
    We want to pass the output device name to the Smartform. But the smartform has a parameter of ssfcompop-tdest of only 4 characters.
    We do not want to change the output device name from 14 characters to 4 characters.
    Is there any alternative to pass the Output device name to smartform without changing the name of output device.
    Thanks in advance,
    Best regards,
    Prashant

    Hi prashant,
    even you create 14 chars or 20 chars it doesn't matter. but we will pass the short name not the name which you created 14 chars. i guess you might gave <b>short name</b> for your printer in SPAD while creating check it, that you have to pass.
    Regards
    vijay

  • Output device tddest in smartforms

    Hi,
    I am using smartforms to convert the otf data to pdf. The coding is as follows:
    * Set the Parameters of smartform
      l_s_ssfctrlop-no_dialog   = 'X'.
      l_s_ssfctrlop-getotf      = 'X'.
      l_s_output_options-tdnoprint = 'X'.
    * call FM to get the name of the FM of smart for smart form
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = g_form_name
        IMPORTING
          fm_name            = l_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 l_fm_name
        EXPORTING
          control_parameters = l_s_ssfctrlop
          output_options     = l_s_output_options
          user_settings      = ' '
        IMPORTING
          job_output_info    = l_s_job_output_info
        TABLES
          g_t_datatab        = g_t_datatab
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      REFRESH g_t_pdf_tab.
    *Convert to OTF Format
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = l_byte_count
        TABLES
          otf                   = l_s_job_output_info-otfdata[]
          lines                 = g_t_pdf_tab
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    I am not passing tddest (output device) to 'l_s_output_options' as I don't want to print it.
    I just want to convert the otf data obtained to pdf and use it for further processing.
    Will there be any problem if I don't assign any ouput device.
    Please note that in the system ouput device 'LOCL' is not maintained.
    Thanks,
    Soumya.

    Hi Valerie,
    I am using below code to get the printer name by default , even i want to skip that screen that asks for the printer name. But am unable to get this requirement. I have tried with various combinations but its not working. Please suggest.
    control-preview = 'X'.
    control-no_dialog = SPACE.
    output_options-tddest = 'LP01'.
      CALL FUNCTION lv_fmname
    EXPORTING
    output_options     = output_options
    contol             = control
      p_matnr            = p_matnr
      user_settings      = 'X'
        TABLES
      gt_stpo            = gt_stpo
      EXCEPTIONS
        formatting_error   = 1
        internal_error     = 2
         send_error         = 3
         user_cancelled     = 4
         OTHERS             = 5.
    Thanks & Regards
    Jatin

  • Output device issue in smartform

    Hi All,
    I have configured smartform and driver program throough nace and testing output . I am facing the problem of  alignment of  output which is changing  depening on Printer. i.e., for printer one the field KOMVD-KBETR(VAT) is prining properly .But if we give another printer or MAIL_PDF as output device then it is moving towards left and alignemnt is wront.
    Please let me know if any solution and max points will provided.
    Thanks,
    J.P
    Edited by: Prakash Jeevakala on Sep 14, 2009 2:00 PM

    When using SAPscript or SmartForms, HP (PCL based) printers in SAP will generate an extra 1/4 inch or so on the left margin.
    Design your form for the specific printer.  If multiple printer types will be used, design the form to fit regardless of the margin adjustment.

  • OUTPUT DEVICE SEND TO SMARTFORMS

    Dear All,
                  I have to send output device of smartforms from my driver program.
    Waiting for reply.
    Regards,
    Shrikant.

    Hi,
    Please check this code.
    DATA:  lx_ssfctrlop      TYPE ssfctrlop,
             lx_ssfcompop     TYPE ssfcompop.
    lx_ssfcompop-tddest    = 'output device'.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
              EXPORTING
                formname                 = l_fname
             IMPORTING
               fm_name                  = l_fm_name
             EXCEPTIONS
               no_form                      = 1
               no_function_module   = 2
               OTHERS                      = 3
    CALL FUNCTION l_fm_name
              EXPORTING
               output_options             = lx_ssfcompop
    Thanks
    Abhijit

  • How to configure output device option

    DEAR ALL ,
                      I have been facing problem in taking printout in line printer(lp04)  with page dimension 305 mm * 215mm for transaction mb90--> output type -->we03 which is not giving the option to choose output device type before print preview option. how will i configure output device for standard output types.

    Hi sonu sonu,
       For Your concern you have to discuss with BASIS whehter printer(lp04) with page dimension 305 mm * 215mm is present or not.
       Or else go thru SPAD and check whether that printer has that Page Format or not ???
    Regards,
    Suneel G

  • The device is in use by another process - error - cannot select Multi Output Device - Mac OSX 10.8.2

    Dear Adobe Users!
    Please help!
    I'm using Adobe Audition CS5.5 on a Mac - OSX 10.8.2 (latest version of Mountain Lion) and I'm trying to select a Multi-Output device.
    This was working FINE last few days - today, I get an error. I've tried to re-install Adobe Audition and that hasn't fixed the problem. When it first started up it said it couldn't find any audio devices at all.
    Please can you help? I'm getting a message saying the device is being used by another process - but it's not being used by anything else at all!
    Hope you are able to help! I use the multi output device option so I can record what I can hear. I spent two days trying to sort that out after it all-of-a-sudden didn't work last Thursday.
    Now just spent last two hours trying to get Adobe to recognise the Multi Output device - it's been working fine last few days!
    Many thanks if you're able to help!
    - Rory

    Durin,
    May have sussed it! It seems that Built-in output was the way to have it for Audition CS5.5 to record what I'm hearing! Yes, the multi-device needs to be used - but in another settings.
    Here's how I have each section configured and it now works!
    First of all, in Audition > Preferences > Audio Hardware:-
    Then, on the Mac's OS - System Preferences > Sounds (input settings)
    Then Output settings :-
    Then Midi Settings found in Finder > Applications > Utilities > Audio MIDI set up
    All now seems to be working! I'll let you know if anything further happens!
    I was certain I had the output device as Multi Device Output on Adobe before, perhaps it should've been set to Built-in Audio all along. Anyway, I re-installed my Mac from Time Machine, logged in as another user and it worked under that profile, then logged back in as me - and am using the settings in the pics above and all seems to be working!
    It's been a long week, perhaps I was just going around in circles and didn't actually test these particular settings yesterday in this order after all.
    Thanks again for your help! Sorry if I've caused any confusion!

  • Output device not listed.

    What if my sound output device not listed? Trying to connect my MacBookPro 17" (mid 2010) to my tv. Video plays. I have connected digital audio cable to both tv n Mac. When I go to sound in system preference (after cord was plugged in) nothing listed. 

    Very well stated.  And, sometimes I do forget that there is still such a thing as celluloid.  Not to mention all the new "K"s that RED is coming up with (aren't they working on something like 27 or 28k now?)  When I look at it from that point of view, what you say makes perfect sense.
    But then why does preferences>video preview in After Effects give me the "output device" option of IEEE 1394 at NTSC 720x480?  This leads me to believe that I could plug a deck into 1394 and get a video preview.  If this is the case, then my way of thinking says it should offer other options for "output device".
    When I first set up Premiere Pro CS4, the playback settings did not list the HDMI HDTV as an external monitor option.  It wasn't until I fooled around with the system's display settings and turned the HDTV into an extention of the desktop that suddenly Premiere Pro listed it as a possible external monitor.  So, my history there (and my goofy sense of logic that makes perfect sense to me) has me wondering if a similar sequence of messing with the display options is suddenly going to make AE see the HDTV as an "output device".  I am not interested in realtime playback, merely the closest reference possible as to what my video image looks like in HD on an external monitor.  I ask "why do I need a separate video card like my old Matrox card, when standard graphics cards these days can handle HD & even have HDMI out?"
    Admittedly, I know next to nothing about the complexity & inner workings of software and computer components.  Why, I was ready to throw a party just because I successfully installed an additional hard drive in my new computer.  I must be like one of my own clients who don't understand why we can't easily separate a voice track from a music track when it's been rendered as one .mp3 file...or why we can't quickly cut a person out of a video layer and make them seamlessly interact with footage of JFK, Zemekis-style.

  • Default output device for smartform

    Hi all
    how can we assign a default output device to a smart form so that the every time we execute a smartform it doesnt ask for a output device?
    thanks in advance....

    Hi
    First see what your default out put device is.
    That you can see in SU3>Default>OutputDevice.
    Suppose it is set as 'PRINTER' .
    Then in ur print program you have to write the logic as below.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME           = 'Z_smartform
        IMPORTING
          FM_NAME            = WF_FUNCMODULENAME
        EXCEPTIONS
          NO_FORM            = 1
          NO_FUNCTION_MODULE = 2
          OTHERS             = 3.
      CLEAR: WA_CONTROL_PARAMETERS.
        WA_CONTROL_PARAMETERS-GETOTF    = 'X'.
        WA_CONTROL_PARAMETERS-LANGU = 'E'.
      WA_CONTROL_PARAMETERS-DEVICE = 'PRINTER'.
        CALL FUNCTION WF_FUNCMODULENAME
          EXPORTING
            CONTROL_PARAMETERS   = WA_CONTROL_PARAMETERS "Control Params
            OUTPUT_OPTIONS       = WA_OUTPUT_OPT  "Output Options
            WF_CARRID            = WF_CARRID
            WF_CONNID            = WF_CONNID
            WF_FLDATE            = WF_FLDATE
          IMPORTING
            DOCUMENT_OUTPUT_INFO = WA_DOCUMENT_OUTPUT_INFO
            JOB_OUTPUT_INFO      = WA_JOB_OUTPUT_INFO
            JOB_OUTPUT_OPTIONS   = WA_JOB_OUTPUT_OPTIONS
          EXCEPTIONS
            FORMATTING_ERROR     = 1
            INTERNAL_ERROR       = 2
            SEND_ERROR           = 3
            USER_CANCELED        = 4
            OTHERS               = 5.

  • SmartForms : Printing Non-English characters with SWIN output device?

    I have a Japanese Text (entered in Unicode at So10) and I want to print it from my SmartForms application using SWIN device type.
    I thought SWIN converted all the components into graphics before sending to printer. To my surprise, the Japanese text printed out as "########".
    I even tried duplicate the SWIN output device to another output device and changed the character set to 4103 UTF-16LE Unicode / ISO/IEC 10646 but then the print process hang.
    Anyone knows how to overcome the problem so that I can print Japanese with SWin output device?

    I have a Japanese Text (entered in Unicode at So10) and I want to print it from my SmartForms application using SWIN device type.
    I thought SWIN converted all the components into graphics before sending to printer. To my surprise, the Japanese text printed out as "########".
    I even tried duplicate the SWIN output device to another output device and changed the character set to 4103 UTF-16LE Unicode / ISO/IEC 10646 but then the print process hang.
    Anyone knows how to overcome the problem so that I can print Japanese with SWin output device?

  • Smartforms, Output device WA_EKPO-NETPR not defined., ME9F

    Hi
    I am creating a form of purchase order, I am trying to have the price printed, but I have the following message when I try to print:
    Output device WA_EKPO-NETPR not defined.
    Message no. SSFCOMPOSER011
    Diagnosis
    The output device specified is not known in the SAP System. Valid output devices are maintained in spool administration.
    System Response
    The system issues an error message.
    Procedure
    Choose an output device from the possible entries help on the printer dialog box.
    Procedure for System Administration
    Check the output devices defined in spool administration.
    thanks

    hi, i guess you havent defined your printer (i.e) output type.
    if you use driver program then when you call your sf just insert the below code.
    also please check your reference field
    NETPR in > global declaration >Currency / Quant. Fields and select either currency or quantity.
      call function 'SSF_FUNCTION_MODULE_NAME'
              exporting
                formname                 = f_sf_formname
    *   VARIANT                  = ' '
    *   DIRECT_CALL              = ' '
              importing
                fm_name                  =  f_sf_fmname
             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.
    st_control_parameters-no_dialog = 'X'.
    st_control_parameters-preview = 'X'.
    st_output_options-tddest = 'WINDEFAULT'.
    and also please check your smartform -> form attributes -> output tab page format and also check output format.
    regards,
    koolspy.

  • Change output device in smartform when using gui_diwnload

    can any one please tell me how to change the output device for gui_download into pdf for a smartform.
    (i want the setting to be done in my report -driver program ,   not in sap application tool bar settings)
    kindly please suggest me,
    thanks in advance,
    koolspy.

    I give you an example
      DATA: ls_control_param      TYPE ssfctrlop.
      DATA: ls_composer_param     TYPE ssfcompop.
        Parametros por defecto para la generación de la orden de spool.
          ls_composer_param-tddataset = 'PDF'.
          ls_composer_param-tdsuffix1 = 'FACT.'.
          ls_composer_param-tdsuffix2 = nast-OBJKY.
          ls_composer_param-TDDEST   = 'LP02'.
        output_options-tdprinter = 'PRINTER'.
          ls_composer_param-tdnewid = 'X'.
          ls_composer_param-tddelete = 'X'.
          ls_composer_param-tdfinal = ' '.
          ls_composer_param-tdlifetime = 8.
          ls_control_param-no_dialog = 'X'.
          ls_control_param-preview = ' '.
          ls_composer_param-tdimmed = ' '.
          ls_control_param-getotf = 'X'.
    call smartform invoice
          CALL FUNCTION lf_fm_name
            EXPORTING
              archive_index        = toa_dara
              archive_parameters   = arc_params
              control_parameters   = ls_control_param
              mail_recipient       = ls_recipient
              mail_sender          = ls_sender
              output_options       = ls_composer_param
              user_settings        = space
              is_bil_invoice       = ls_bil_invoice
              is_nast              = nast
              is_repeat            = repeat
              is_vbdkr             = is_vbdkr
            IMPORTING
              job_output_info      = job_output_info
              document_output_info = document_output_info
              job_output_options   = job_output_options
            TABLES
              gt_vbdpr             = gt_vbdpr
            EXCEPTIONS
              formatting_error     = 1
              internal_error       = 2
              send_error           = 3
              user_canceled        = 4
              OTHERS               = 5.
        Convertimos el fichero OTF a PDF
        CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
            format                      = 'PDF'
            MAX_LINEWIDTH               = 132
            ARCHIVE_INDEX               = ' '
            COPYNUMBER                  = 0
            ASCII_BIDI_VIS2LOG          = ' '
            PDF_DELETE_OTFTAB           = ' '
          IMPORTING
            bin_filesize                = file_size
            BIN_FILE                    =
          TABLES
            otf                         = job_output_info-otfdata
            lines                       = lt_pdf
          EXCEPTIONS
            err_max_linewidth           = 1
            err_format                  = 2
            err_conv_not_possible       = 3
            err_bad_otf                 = 4
            OTHERS                      = 5
    Hope it helps.

  • How to avoid the printer device option screen when calling smartform?

    Dear gurus
    i have create a smartform and i have called it from my program.
    i dont want to show the printer device options how can i achieve that ?
    below is the code for calling my smartform.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = 'ZSNAK_VF03_PRINTING'
       IMPORTING
        fm_name                  = smart_form_function_nm
       EXCEPTIONS
         no_form                  = 1
         no_function_module       = 2
         OTHERS                   = 3
      CALL FUNCTION smart_form_function_nm
        EXPORTING
          itab1              = itab1
          temp4              = temp4
          temp3              = temp3
          ref_doc_no         = ref_doc_no
          po_no              = po_no
          printno            = printno
        TABLES
          itab_tab           = itab_tab
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
    Regards
    Saad Nisar.

    Hi,
    check this link
    smartforms  -   print option
    Regards and Best wishes.

  • Help! No Audio Output device is installed

    My speaker in bottom right for My sound say "No Audio Output Device Is Installed" and i have tried to go through many things to solve such as go into device manager and enable or update through there etc...to no avail.  
    I stumbled across a thing that worked for most people. Recovery Manager. but. I don't have it on my computer to try so i have no other options to turn to. Can someone please help on how to fix this issue

    Dear Customer,
    Welcome to the HP Consumer Support Forum!!
    To isolate the issue please perform the steps below:
    1. Restart the computer.
    2. Check the Sound icon in the taskbar.
    3. If the icon has an X in the lower corner, click the Sound icon in the taskbar or
    4. Right-click the icon, and then click Troubleshoot sound problems.
    5. The audio troubleshooter checks for sound problems. When the troubleshooter finishes, it displays the results.
    6. If the computer has sound, the issue is resolved.
    Install Original Realtek High Definition Audio Driver from the link below:
    http://support.hp.com/us-en/drivers/selfservice/HP-Pavilion-Slimline-s5000-Desktop-PC-series/3942804...
    From the above link click on Driver-Original > Original Realtek High Definition Audio Driver > Download and install the same.
    In case the issue still persists and if the audio was working fine earlier, you may perform system restore to previous working condition using the steps mentioned in the link below:
    http://bertk.mvps.org/html/restoresysv.html
    Hope this helps, for any further queries reply to the post and feel free to join us again.
    **Click the KUDOS star on left to say Thanks**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    Thank You,
    GR1
    Although I am an HP employee, I am speaking for myself and not for HP

  • HELP ASAP! no audio output device installed with hp pavilion dv2500

    product name: hp pavilion dv2000
    model number: dv2710us
    product number:2CE75228LJ
    windows vista home premium 32bit
    my hp keeps telling that  have no audio output device installed and theres the the image for volume with a large red circle with a white x in it.
    this is not true because i have contexant  (i think that's what it is called) speakers installed.
    Lately when i would restart my computer the sound would work intermittently but for the past two days whether i restart my computer or not the image for volume with a large red circle with a white x in it is still there and says no audio output device installed. PLEASE HELP!
    This question was solved.
    View Solution.

    Hi, you can try the below steps to resolve the issue :
    Step 1 : Re-install audio drivers from HP Recovery Manager.
    1. Click Start, in the Start search box, type recovery . Then click Recovery Manager .
    2. In the Recovery Manager window that displays, click Next. On the Reinstall software programs that came with your computer screen, click No, I would like to see other options . Then click Next .
    3. In the Reinstall hardware drivers screen, click Yes . Then click Next. On the Welcome to Hardware Driver Reinstaller screen, click Next .
    4. In the driver list, select the name of the sound adapter installed on the system. Then click Next. When complete, the Reinstallation is complete screen displays. Click Finish to restart the computer. After the computer starts, test for sound. If the issue persists perform step 2.
    Step 2 : Re-install audio drivers manually
    If there is no sound and the error still displays, update the audio driver from the weblink below :
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-63129-1&cc=us&dlc=en&lc=en&...
    Step 3 : Restart the Windows Audio Service.
    1. Click Start , type services.msc into the search field, and then select services.msc from the list when it becomes available to open the Programs window.
    2. Scroll down to and select Windows Audio , right-click to open the drop-down menu, and then click Start .
    3. Right-click Windows Audio , click Properties , and then verify that Startup Type is set to Automatic .
    Restart the Notebook and check for the issue.
    ****Click the White Kudos star to say thanks****
    ****Please mark Accept As Solution if it solves your problem****

Maybe you are looking for