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

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.

  • 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

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

  • Downloading Smartforms Output into MS Word format

    Hi,
    Is there any way to download Smartform Output data in to MS Word.?...like the way we download Smartform data into PDF format.
    is there any FM available to handle this like CONVERT_OTF, CONVERT_OTF_2_PDF in case of PDF.
    Full points for useful answers.
    Thanks,
    Sree.

    Check these links
    https://forums.sdn.sap.com/click.jspa?searchID=15917117&messageID=4709514
    https://forums.sdn.sap.com/click.jspa?searchID=15917117&messageID=2950348
    Thanks,
    Phani.

  • After downloading my file the word document is mostly gibberish.  Why? service used exportPDF

    After downloading my file the word document is mostly gibberish.  Why? Service used "exportPDF".

    Hi shelbyrn,
    The quality of a conversion really depends on the quality of the original PDF file. Please see Will Adobe ExportPDF convert both text and form... | Adobe Community.  Do you know what or how the PDF file was created?
    You may have better luck by disabling OCR as described in this document: How to disable Optical Character Recognition (O... | Adobe Community. (Note, however, that is  option isn't optimal if the PDF was created from a scanned document; you'd want OCR enabled to convert the image text in the PDF to editable text).
    Best,
    Sara

  • 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

  • Is there a free app I can download that is a (Word) Document on my Mac?

    Is there a free app I can download that is a (Word) Document on my Mac?

    As far as I know, any free word processing apps would be no where near as good as opposed to just purchasing iWork (Apple's version of Word) or Microsoft Office for Mac. It's definitely worth the price to buy one of these if your planning on using it a lot.
    iWork
    http://www.apple.com/iwork/pages/
    Microsoft Office for Mac
    http://store.apple.com/us/browse/campaigns/office

  • Formatting output and downloading it as a word document

    Hello,
    I have come across this requirement where i have to draw a table with certain number of rows and columns(defined), with data in a few columns being static and data in a few other columns being dynamic. Also I need to insert objects like ean xcel sheet or a word document into some columns. Finally download this whole thing as a word document to the desktopobjects(kind of an analysis report). Smartforms do not have any options to insert . So, is there any other way to do this??? Kindly help.

    Hi Nandini,
    As suggested by Soumya you can go for Webdynpro or else I would like to suggest you to have a SAP Adobe Interactive form.
    Please find the links below,.... will give you clear picture on SAP Adobe Interactive forms.
    <<linkfarm removed by moderator>>
    Hope this will suit you.
    Thanks & Regards
    Manu S
    Edited by: ManuSNair on Jan 17, 2012 9:30 AM
    Edited by: kishan P on Jan 17, 2012 11:12 AM

  • 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

  • Download java output to word doc

    Hi ,
    I would like to download the java output iview into Word document.
    IS it possible ?
    Thanks and regards,
    Sithi

    Hi pradeep,
    Thnx for ur reply....
    My scenario is , I have created a Iview in Portal from a par file, which is a java code.
    I would like to download this output from the portal to word doc.
    so if i make any changes to it and save it. it has to save the changes in portal too...
    hope the problem is clear.
    Thanks and Regards,
    Sithi

  • Downloading of file(Microsoft Word Document)

    I have a problem regarding with downloading of Word Document file, the download is working but the when i open the file an was Exception written in the File, here is my code, can anybody help me with this problem? any help is greatly appreciated
    public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws Exception {
              ActionErrors errors = new ActionErrors();
              ActionForward forward = new ActionForward(); // return value
              UtilityBean _bean = null;
              String fileName = "Sample.doc";
              System.out.println("Download Word Document");
              //               set the header details
              int id = 8;
              System.out.println("ID is: " + id);
              // details
              System.out.println("Download Word Document");
              // set the header details
              try {
                   _bean = new UtilityBean();
                   _bean = DAOFacade.file(id);
                   response.setContentType("application/msword");
                   response.setHeader("Content-Disposition", "attachment; filename="
                             + fileName);
                   //set the content type to related file
                   FileOutputStream fileOut = new FileOutputStream(
                             "c:\\tempWordOutput.doc");
                   InputStream inStream = new BufferedInputStream(new FileInputStream(
                             "c:\\tempWordOutput.doc"));
                   OutputStream outStream = response.getOutputStream();
                   // set buffer size. Each attempt to read the file will use // //
                   // specified number of bytes
                   byte[] buf = new byte[4 * 1024];
                   int bytesRead = 0;
                   while ((bytesRead = inStream.read(buf)) != -1) {
                        outStream.write(buf, 0, bytesRead);
                   outStream.flush();
                   outStream.close();
                   inStream.close();
              } catch (Exception e) {
                   e.printStackTrace();
              // If a message is required, save the specified key(s)
              // into the request for use by the <struts:errors> tag.
              if (!errors.isEmpty()) {
                   saveErrors(request, errors);
                   // Forward control to the appropriate 'failure' URI (change name as
                   // desired)
                   //     forward = mapping.findForward("failure");
              } else {
                   // Forward control to the appropriate 'success' URI (change name as
                   // desired)
                   // forward = mapping.findForward("success");
              // Finish with
              return (forward);
         * @return
         private HttpServletResponse HttpServletResponse() {
              // TODO Auto-generated method stub
              return null;
    //------------------------GENERATED FILE------------------------------------
    <H1>Error page exception</H1>
    <H4>The server cannot use the error page specified for your application to handle the Original Exception printed below. Please see the Error Page Exception below for a description of the problem with the specified error page.</H4>
    <BR><H3>Original Exception: </H3>
    <B>Error Message: </B><BR>
    <B>Error Code: </B>500<BR>
    <B>Target Servlet: </B>action<BR>
    <B>Error Stack: </B><BR>
    java.lang.NullPointerException
    <BR>    
         at org.apache.struts.action.RequestProcessor.processForwardConfig&#40;RequestProcessor.java:441&#41;
    <BR>    
         at org.apache.struts.action.RequestProcessor.process&#40;RequestProcessor.java:279&#41;
    <BR>    
         at org.apache.struts.action.ActionServlet.process&#40;ActionServlet.java:1482&#41;
    <BR>    
         at org.apache.struts.action.ActionServlet.doGet&#40;ActionServlet.java:507&#41;
    <BR>    
         at javax.servlet.http.HttpServlet.service&#40;HttpServlet.java:743&#41;
    <BR>    
         at javax.servlet.http.HttpServlet.service&#40;HttpServlet.java:856&#41;
    <BR>    
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service&#40;ServletWrapper.java:1212&#41;
    <BR>    
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest&#40;ServletWrapper.java:629&#41;
    <BR>    
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest&#40;WebApp.java:2837&#41;
    <BR>    
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest&#40;WebGroup.java:220&#41;
    <BR>    
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest&#40;VirtualHost.java:204&#41;
    <BR>    
         at com.ibm.ws.webcontainer.WebContainer.handleRequest&#40;WebContainer.java:1681&#41;
    <BR>    
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready&#40;WCChannelLink.java:77&#41;
    <BR>    
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination&#40;HttpInboundLink.java:421&#41;
    <BR>    
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation&#40;HttpInboundLink.java:367&#41;
    <BR>    
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete&#40;HttpICLReadCallback.java:94&#41;
    <BR>    
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete&#40;WorkQueueManager.java:548&#41;
    <BR>    
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO&#40;WorkQueueManager.java:601&#41;
    <BR>    
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun&#40;WorkQueueManager.java:934&#41;
    <BR>    
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run&#40;WorkQueueManager.java:1021&#41;
    <BR>    
         at com.ibm.ws.util.ThreadPool$Worker.run&#40;ThreadPool.java:1332&#41;
    <BR>    
    <BR>
    <BR><BR><H3>Error Page Exception: </H3>
    <B>Error Message: </B>SRVE0199E: OutputStream already obtained<BR>
    <B>Error Code: </B>0<BR>
    <B>Target Servlet: </B>null<BR>
    <B>Error Stack: </B><BR>
    java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
    <BR>    
         at com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter&#40;SRTServletResponse.java:462&#41;
    <BR>    
         at com.ibm.ws.webcontainer.webapp.WebApp.sendError&#40;WebApp.java:2484&#41;
    <BR>    
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest&#40;WebApp.java:2861&#41;
    <BR>    
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest&#40;WebGroup.java:220&#41;
    <BR>    
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest&#40;VirtualHost.java:204&#41;
    <BR>    
         at com.ibm.ws.webcontainer.WebContainer.handleRequest&#40;WebContainer.java:1681&#41;
    <BR>    
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready&#40;WCChannelLink.java:77&#41;
    <BR>    
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination&#40;HttpInboundLink.java:421&#41;
    <BR>    
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation&#40;HttpInboundLink.java:367&#41;
    <BR>    
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete&#40;HttpICLReadCallback.java:94&#41;
    <BR>    
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete&#40;WorkQueueManager.java:548&#41;
    <BR>    
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO&#40;WorkQueueManager.java:601&#41;
    <BR>    
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun&#40;WorkQueueManager.java:934&#41;
    <BR>    
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run&#40;WorkQueueManager.java:1021&#41;
    <BR>    
         at com.ibm.ws.util.ThreadPool$Worker.run&#40;ThreadPool.java:1332&#41;
    <BR>    
    <BR>

    <B>Error Message: </B>SRVE0199E: OutputStream already obtained<BR>
    <B>Error Code: </B>0<BR>
    <B>Target Servlet: </B>null<BR>
    <B>Error Stack: </B><BR>
    java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
    this is the error because you have alredy closed the output stream
    outStream.flush();
    outStream.close();
    and then you return the Actionforward and struts Controller tries to write to the already closed output stream once again and hence the above exception is thrown
    Please refer to the below link to find how to implement a download action in struts
    http://wiki.apache.org/struts/StrutsFileDownload

  • 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

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

Maybe you are looking for