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

Similar Messages

  • 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.

  • 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

  • Output devices list  not appearing completely in the drop down list

    Hi,
    I have a query where I am not able to see all the 583 output devices in the drop down list of output device for a transaction code whereas I can see all the output devices in SPAD. Can anyone tell me the reason for this?
    Thanks.
    Brijesh

    Dear Brijesh,
    You can show all the value, click on the restriction button, then change the max numbers of hits to 10000,then you can list all the data in drop down, as per i know in standard it will only give you 500.
    Regards

  • Output device for adobe forms

    Hi,
    Pls let me know which ouput device should be used for adobe document services documnet(adobe froms). I'm unable to view the ouput.
    Also pls tell me how to configure the output device in SPAD.
    regards,
    ravi valluri

    Hi Ravi,
    Please refer to the note - <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/no_display_pdf/sapnote.pdf?numm=685571&vers=0000000000&language=E&sap-language=E">685571</a>
    Hope this helps :).
    - anto.

  • Output device - printing in unix file - where do I define the UNIX path?

    Hi,
    We use an special Output Device to print spool requests directly in Unix. These Output Devices are defined as Local Unix File. When those spool requests are printed, a file is created in certain path in UNIX.
    The question is where this link is defined?, I dont see where in the Output Device (trn SPAD) is defined the path in UNIX.
    Thanks!
    Aaron

    Hi,
    Might be the unix path would have been defined in the SPAD only under the Access method of the output device, in the field Destination host.
    Regards,
    Aditya

  • Attach specific printer to output device

    I have created an output device in SPAD tcode .Its name is  YSEA. Now i want to attach a specific printer to this output device. Like whenever  i use this output device and give a print command, the print should come on this specific printer only. Now how do i give this specific printer so that it fulfills this requirement.

    You add entries in table TNAD7.
    Go SM30 and V_TNAD7--Maintain.
    In program you need to select as follows
    selct single ldest into ...........

  • 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.

  • NULL output Device creation in SPAD

    Dear Guru's,
    To Preventing the creation of spool request  for all users.We can assign an output device with the name NULL. It means that no spool requests are created for those users in SAP. Could you please some one let me know, how to create NULL output Device in SAP and is there any other setting we need to do at OS level.
    Thanks,

    Hi,
    Please refer the below note and link which should answer your query. As per my knowledge I think you have to create one output device name NULL in SPAD Tcode.
    Note 181571 - Output device NULL
    http://wiki.sdn.sap.com/wiki/display/ABAP/Spoolrequestgeneration
    Regards,
    Sharath

  • 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.

  • 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.

  • Create Output Device through tcode SPAD

    Dear Expert,
    I would like to create a new output device, but the "Create" option is in grey color.
    I have follow the below path to do it, but no luck.
    SPADConfigurationoutputdevice-changemode-Create
    Could anyone let me know how to do this?
    Best rgs,
    WF

    Hi,
    Dont Give any Name for Output Device in initial screen
    Give Enter
    Now click change mode
    Now check Output device->Create

Maybe you are looking for

  • AS2: Where to specify certificates and keys: CC or Receiver Agreement

    Hello, when configuring a AS2 scenario (Proxy - AS2 Receiver) I am wondering about configuration details for certificates. In the AS2 receiver configuration channel I can enter: SSL Certificates Server Certificate (Keystore) Private Key for Client Au

  • Cinima Display fades Between blue and the deskop after my Mac Pro sleeps

    Hello all, I really hope someone can help. I have a Mac Pro Running 10.5.4 and a 23 Inch Cinema Display. When I wake my machine from sleeping the desktop appears then about a second later the screen fades blue. After a second of blue it fades back to

  • T420s Linux (Fedora) Video -- Getting Started

    I installed Fedora 15 on my new T420s and it works fine so far except that I can only get a resolution of 1024x768 on the built-in LCD, instead of the 1600x900 which the screen supports. It works fine in Windows 7 at 1600x900. I have not tried an ext

  • How to reverse GR, GI, delivery, STO ?

    Dear Experts, I have created STO for stock transfer from plant 2 to plant 1. Delivery, PGI, Excise Invoice has been confirmed at plant 2. Subsequently GR has been made with ref. to delivery doc. at plant 1. Being the transfered material is subject to

  • X240t anytime soon?

    Have read that when haswell arrives Lenovo will release the new gen of thinkpads. I'm interested in the future x240t. Are there any news on this? Will it have better resolution/quality than the x230t?