Smartform output in word document

hi all,
how to download a smartform in word document so that the user can make changes in it. i tried converting the output into OTF format but formatting is not coming properly.how to overcome this?

Hi,
Even i had the same requirement for a sales order form to download in word and then change it manually before sending to customer. I tried a lot of ways to do the same and finally raised a sap noted for the same.i got a reply from SAP that it is not possible to download forms in word with same allignments maintained with logo. SAP note 641560 says the same thing.
All you need to do is find a technical solution to fill the data which they want to fill maually or go for adobe form. Thats amazing technology to solve your issue.

Similar Messages

  • How can we save smartform output as word document

    Hi Friends,
    Can anybody help me, how to save Smartform output as Word document instead of PDF file.
    Thanks,
    Ramana.

    Hi Venkat,
    I think you can do it manually.
    After the print preview, Select the menu <b>Goto->List Display</b>.
    Now select the menu <b>System->List->Save->Local File</b>.
    Now you can select the radio buttion <b>Rich Text Format</b>.
    Now you save the document as a .doc file (say test.doc)
    That is it!!!!!
    <b>Award points if found useful.</b>
    Regards,
    SP.

  • Download Smartform output in word document

    Hi All,
    I had a requirement to download the smartform output in ".doc" format.
    I had run FM CONVERT_OTF with parameter value format = 'ASCII', and downloaded using .doc format
    I was able to download but the output is not having logo and some different symbols are added.
    Can any suggest what would be the exact procedure to download the output in word document.
    Regards,
    Dinakar.

    Hi Dinakar,
    Please check the link provided:
    Help with Smartform download - unwanted items showing in file
    The solution provided in this link is very relevant for your question, so hope you will get the solution.
    Thanks & regards,
    Sarita Singh Rathour

  • Printing output on word document

    i[b] want to print the output on word document .
    i saved the data in the file so that should be printed on word document.

    on the button1_action() type the following :
    FileWriter out = new FileWriter("c:/MyFile.rtf");
    out.write("Your data is here......................");
    out.close();hope this will help
    good luck
    mohammed

  • Produce smartform output in word doc

    I want to get my smartform output in a word doc instead of PDF. I've gone thorough the previous threads for the same thing but couldn't find any exact solution. can anyone tell me how this is to be done?
    <promise removed by moderator>
    Moderator message: please do more research before asking.
    Edited by: Thomas Zloch on Apr 13, 2011 3:26 PM

    Hi yogesh.,
    There is no standard possibility to do Word outputs in SAP.
    you can do manually..
    After the print preview, Select the menu Goto->List Display.
    Now select the menu System->List->Save->Local File.
    Now you can select the radio buttion Rich Text Format.
    Now you save the document as a .doc file (say test.doc)
    That is it!!!!!
    Anyway you can develop connection of Mail-merge technology of Microsoft and SAP ABAP class i_oi_document_proxy.
    http://help.sap.com/saphelp_sm32/helpdata/EN/e9/0be980408e11d1893b0000e8323c4f/content.htm
    with interface get_mail_merge_interface:
    http://help.sap.com/saphelp_sm32/helpdata/en/6e/8fc2e3dd0d11d2bdba080009b4534c/content.htm
    Refer this use ful link for word output
    http://www.sap2word.de/abap.html
    hope this helps.,
    Thanks & Regards
    Kiran
    Moderator message: copy/pasted from several sources, please do not repeat if you want to keep your user ID!
    http://www.google.com/search?q=%22Aftertheprintpreview%2CSelectthemenu+Goto%22&hl=en&source=hp&lr=&aq=f&aqi=&aql=&oq=
    http://www.google.com/search?hl=en&source=hp&q=%22AnywayyoucandevelopconnectionofMail-merge%22&meta=lr%3D&aq=f&aqi=&aql=&oq=
    Edited by: Thomas Zloch on Apr 13, 2011 3:35 PM

  • Smartform output in word format

    dear all
    i have created a smartform which needs to send to external mail ID.s as an .doc attachment.
    how to do this.  even i have no basic idea also.  kindly help out.
    regards

    Hi,
    You cannot convert the smartfrom to word doc for this sap has not provided any provision, Instead you can convert to pdf and send as email.
    You can check my reply in this thread..
    [convert smartform output to pdf   |Re: convert smartform output to pdf]

  • How to download graph output into word document?

    Hello experts!
    I have plotted graphs using some data.
    The graph is actually output of a function module into a container.
    Can anybody tell me , how can i download this graphs into a word document?
    I am able to download text data into word documents, but not graphs.
    Regards,
    Rahul

    Steelers, unfortunately your reply didn't get through. Perhaps you tried to send an attachment or screen shot by email? Please try again (but not sending attachments or screen shots by email).

  • Downloading smartform as a word document

    Hi How to download smartformoutput as a word document.It was previously displaying as a pdf document.
    Can anybody give a sample code
    Edited by: Ramya Ramya on May 13, 2009 6:18 AM

    hi buddy!!!!
    the smartforms are usually saved in OTF format.
    so first u need to do all the formalities like calling the function module of that form and executing it
    after that u need to use the function module 'CONVERT_OTF' to convert it into ur desired format.
    Example:
    CALL FUNCTION "CONVERT_OTF"
           EXPORTING    FORMAT                = "PDF"
           IMPORTING    BIN_FILESIZE          = FILE_LEN
           TABLES       OTF                   = OTFDATA
                        LINES                 = PDFDATA
           EXCEPTIONS   ERR_MAX_LINEWIDTH     = 1                  
                        ERR_FORMAT            = 2
                        ERR_CONV_NOT_POSSIBLE = 3
                        OTHERS                = 4.
    in format specify ur desired format type
    Hope this will help you!!!
    Thanks & Regards,
    Punit Raval

  • Convert SAPScript output into Word document (.doc)

    Hi,
    I want to convert the output of sapscript into the word document. Will u pls. suggest the appropriate way to achieve it.
    We have a Function Module which converts the ouput in to the PDF and RTF format. Is dere a possibility to convert it into the DOC file.
    Thanks,
    Hitz

    hi ,
    Use ABAP program: RSTXSCRP
    It will download and upload your sapscripts as a text file in your local harddisk.
    when u execute that program ,one screen appears.there u have to enter the directory path and the name of the upload or download file. Use the naming conventions of the file system where the file is located.
    File system Example
    Windows, DOS d:\tmp\text.rtf
    Unix /usr/sap/c11/SYS/global/text.rtf
    When uploading, the data in the file is transported into the SAP System. When downloading, the data is stored in the file by the SAP System.
    If you are working on a PC, enter a file that is located on a hard disk or a disk of the PC.  If the PC is connected to a network, or if you are on a workstation, you can specify a file on a remote disk.
    and for converting the output in to PDF format use the function module CONVERT_OTF.
    u can use these function modules to convert the script.
    SX_OBJECT_CONVERT_OTF_PDF Conversion From OTF to PDF (SAPScript conversion)
    SX_OBJECT_CONVERT_OTF_PRT Conversion From OTF to Printer Format (SAPScript conversion)
    SX_OBJECT_CONVERT_OTF_RAW Conversion From OTF to ASCII (SAPScript conversion)
    i think  there is no such function module to convert script out put into DOC format.
    Reward points if useful.
    Thanks,
    Usha
    Message was edited by:
            usha

  • Output as word Document

    i want to create a report as a word document.
    data is present in database can anyone help me to extract data from database and create the result as a word document

    i want to create a report as a word document.
    data is present in database can anyone help me to
    extract data from databasehttp://java.sun.com/docs/books/tutorial/jdbc/
    and create the result as a
    word documenthttp://onesearch.sun.com/search/onesearch/index.jsp?qt=write+word+document&subCat=siteforumid%3Ajava31&site=dev&dftab=siteforumid%3Ajava31&chooseCat=javaall&col=developer-forums

  • Smartform convert to WORD - e-mail/fax

    Hi All,
    Quickly can we convert Smartform output to Word output. Currently I am doing Smartform converted to PDF and sending that as e-mail/fax. New requirement is to send in word format. Can we convert Samrtform to WORD and send as e-mal/fax?
    Thanks in advance.
    Regards,
    Tim

    Check this code below ....
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            FORMNAME                 = 'ZSD_SFM_ATTACH'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
          IMPORTING
            FM_NAME                  = FM_NAME
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
    CALL FUNCTION FM_NAME
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
           CONTROL_PARAMETERS         = wa_control
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
           OUTPUT_OPTIONS             = wa_prnctrl
      USER_SETTINGS              = 'X'
        CUST_LINE                  = gl_cust_line
         IMPORTING
           DOCUMENT_OUTPUT_INFO       = wa_doc_info
           JOB_OUTPUT_INFO            = wa_outinfo
           JOB_OUTPUT_OPTIONS         = wa_job_opt
         EXCEPTIONS
           FORMATTING_ERROR           = 1
           INTERNAL_ERROR             = 2
           SEND_ERROR                 = 3
           USER_CANCELED              = 4
           OTHERS                     = 5.
    t_otf[] = wa_outinfo-otfdata[].
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
    EXPORTING
      USE_OTF_MC_CMD               = 'X'
      ARCHIVE_INDEX                =
       IMPORTING
          BIN_FILESIZE                 = g_filesize
        TABLES
          OTF                          = t_otf
          DOCTAB_ARCHIVE               = t_docs
          LINES                        = i_tline
    EXCEPTIONS
      ERR_CONV_NOT_POSSIBLE        = 1
      ERR_OTF_MC_NOENDMARKER       = 2
      OTHERS                       = 3
    convert PDF 132 to 255
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    No translation
    loop at i_tline.
      i_objbin-line = i_tline-tdline.
      append i_objbin.
    endloop.
    Convert PDF from 132 to 255.
      LOOP AT i_tline.
    Replacing space by ~
        TRANSLATE i_tline USING ' ~'.
        CONCATENATE w_buffer i_tline INTO w_buffer.
      ENDLOOP.
    Replacing ~ by space
      TRANSLATE w_buffer USING '~ '.
      DO.
        i_record = w_buffer.
    Appending 255 characters as a record
        APPEND i_record.
        SHIFT w_buffer LEFT BY 255 PLACES.
        IF w_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
      Refresh: i_reclist,  i_objtxt,  i_objbin,  i_objpack.
      clear w_objhead.
    Object with PDF.
      i_objbin[] = i_record[].
    loop at i_record.
       i_objbin-line = i_record-line.
       append i_objbin.
    endloop.
      DESCRIBE TABLE i_objbin LINES v_lines_bin.
      glt_objpack-head_start = 1.
    Number of lines of an object header in object packet
      glt_objpack-head_num = 0.
    Start line of object contents in an object packet
      glt_objpack-body_start = 1.
    Number of lines of the object contents in an object packet
      glt_objpack-body_num = v_lines_txt.
    Code for document class
      glt_objpack-doc_type = 'RAW'.
      APPEND i_objpack.
    Packing as PDF.
      glt_objpack-transf_bin = 'X'.
      glt_objpack-head_start = 1.
      glt_objpack-head_num = 1.
      glt_objpack-body_start = 1.
      glt_objpack-body_num = v_lines_bin.
      glt_objpack-doc_type = 'PDF'.
      glt_objpack-obj_name = 'ReturnForm'.
      CONCATENATE 'ReturnForm_output' '.pdf'
      INTO glt_objpack-obj_descr.
      glt_objpack-doc_size = v_lines_bin * 255.
      APPEND glt_objpack.
      glt_objhead = 'Return_form.PDF'. append glt_objhead.
    Document information.
      CLEAR i_reclist.
    Fill the receiver list
      clear gs_reclist.
    condense gl_fax_num.
      gs_reclist-receiver = P_Z_MFR_MAIL.
      gs_reclist-rec_type = co_u.
      append gs_reclist to i_reclist.
    Sending mail.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = gl_doc_chng
          put_in_outbox              = 'X'
          COMMIT_WORK                = 'X'
        TABLES
          packing_list               = glt_objpack
          object_header              = glt_objhead
          CONTENTS_BIN               = i_objbin
        contents_hex               = i_objbin
          contents_txt               = gt_objcont
          receivers                  = i_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.

  • REPORT OUTPUT IN WORD OR EXCEL

    Hi,
    I need to convert my report output to word document with a customised logo in the word document. Can anyone please help me out by providing the necessary procedure (step by step process or code in abap).
    Thanks and Regards
    AK

    Hi Ashok ,
    You just copy this Abap code and run it. The output is an excel file .
    REPORT  ZKUN_FILE6                              .
    TABLES: USR03,DD02L.
    DATA: ZX030L LIKE X030L.
    DATA BEGIN OF ZDFIES OCCURS 0.
         INCLUDE STRUCTURE DFIES.
    DATA END OF ZDFIES.
    DATA: BEGIN OF FLDITAB OCCURS 0,
          FLDNAME(11) TYPE C,
          END OF FLDITAB.
    DATA ITABUSR03 LIKE USR03 OCCURS 0 WITH HEADER LINE.
    DATA TNAME LIKE DD02L-TABNAME.
    SELECT * FROM USR03 INTO TABLE ITABUSR03.
    TNAME = 'USR03'.
    PERFORM GETFIELEDS.
    PERFORM SHOW123.
    FORM GETFIELEDS.
         CALL FUNCTION 'GET_FIELDTAB'
          EXPORTING
              LANGU              = SY-LANGU
              ONLY               = SPACE
              TABNAME            = TNAME
              WITHTEXT           = 'X'
          IMPORTING
              HEADER             = ZX030L
          TABLES
              FIELDTAB           = ZDFIES
          EXCEPTIONS
              INTERNAL_ERROR      = 01
              NO_TEXTS_FOUND      = 02
              TABLE_HAS_NO_FIELDS = 03
              TABLE_NOT_ACTIV     = 04.
         CASE SY-SUBRC.
            WHEN 0.
              LOOP AT ZDFIES.
                   FLDITAB-FLDNAME = ZDFIES-FIELDNAME.
                   APPEND FLDITAB.
              ENDLOOP.
            WHEN OTHERS.
                 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  with  SY-SUBRC.
          ENDCASE.
    ENDFORM.
    FORM SHOW123.
    CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'
         EXPORTING
              FILE_NAME                 = 'C:\USR03.XLS'
              DATA_SHEET_NAME           = 'USER LIST'
        TABLES
             DATA_TAB                  =  ITABUSR03
             FIELDNAMES                =  FLDITAB
        EXCEPTIONS
             FILE_NOT_EXIST            = 1
             FILENAME_EXPECTED         = 2
             COMMUNICATION_ERROR       = 3
             OLE_OBJECT_METHOD_ERROR   = 4
             OLE_OBJECT_PROPERTY_ERROR = 5
             INVALID_FILENAME          = 6
             INVALID_PIVOT_FIELDS      = 7
             DOWNLOAD_PROBLEM          = 8
             OTHERS                    = 9.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.
    Thanks and Regards,
    Kunal.
    ( hope this solves your problem.)

  • Using and Apex developed system and generating  word documents

    Started a new development project. We looked at using Apex for the system but ran up against a road block because the customer needs to generate word documents that they can edit and print. Does anyone know if Apex can handle this? Any suggestions on were to look for more information.

    Hi Dawn,
    Yes you can certainly do that, take a look at this quick overview -
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    It refers specifically to PDF printing, however with BI Publisher you can output in Word Document format too.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Edit a word document from a JSP page

    hi all,
    i would like to know if it is possible to edit a Word document from a JSP page (without uploading it).
    thanks.

    Technically no. But what you can do is output a word document to the browser with the contenttype "application/msword" and if word is installed it will be opened inside the browser.

  • Convert Smartform in WORD Document

    Hi Gurus
    How can i convert a smartform Output in a word document ??? and  download into PC..
    Regards
    Gregory

    There is no standard possibility to do Word outputs in SAP.
    Anyway you can develop connection of Mail-merge technology of Microsoft and SAP ABAP class i_oi_document_proxy.
    http://help.sap.com/saphelp_sm32/helpdata/EN/e9/0be980408e11d1893b0000e8323c4f/content.htm
    with interface get_mail_merge_interface:
    http://help.sap.com/saphelp_sm32/helpdata/en/6e/8fc2e3dd0d11d2bdba080009b4534c/content.htm
    Simple example I found here:
    http://www.sap2word.de/abap.html
    Hope, it helps
    Edited by: Dimy IT dev on Sep 7, 2009 2:58 PM

Maybe you are looking for