Conversion of flat file to word document

Hello,
I have a reqt where in I have data available in the flat file on the presentation server .
I want to extract some information based on some logic from the flat file and move it to the word document.
In case anyone has an idea how to go about it, please let me know.
Thanks.

Here is the sample report to open word doc with some testing message......
Report Test.
INCLUDE ole2incl.
DATA: word TYPE ole2_object, documentos TYPE
ole2_object,
documento TYPE ole2_object,
selection TYPE ole2_object,
font TYPE ole2_object.
CREATE OBJECT word 'WORD.APPLICATION'.
CALL METHOD OF word 'Documents' = documentos.
CALL METHOD OF documentos 'Add' = documento.
CALL METHOD OF documento 'Activate'.
GET PROPERTY OF word 'Selection' = selection.
GET PROPERTY OF selection 'Font' = font.
SET PROPERTY OF word 'Visible' = 1.
SET PROPERTY OF font 'Name' = 'Arial'.
SET PROPERTY OF font 'Size' = 12.
SET PROPERTY OF font 'Bold' = 1. "o 0
SET PROPERTY OF font 'Underline' = 1. "o 0
CALL METHOD OF selection 'TypeText' EXPORTING #1 = 'Word Doc Test'.
CALL METHOD OF selection 'TypeParagraph'.
CALL METHOD OF documento 'SaveAs' EXPORTING #1 = 'c:test.doc'.
CALL METHOD OF word 'Quit'.
Hope this will help.....

Similar Messages

  • 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

  • Conversion of Flat file Idoc to Idoc

    hello SDNers
    I am currently working on conversion of Flat file representation of an IDoc to IDoc XML. There is a document available in
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a regarding this
    conversion.I am new to this field. Please help me out
    1)  step by step process of how its working?
    2) Or any other ways to do the conversion?

    Hi,
    >>>1) step by step process of how its working?
    the document you mention is just a mapping which you need to add to your scenario
    and it will work
    >>>2) Or any other ways to do the conversion?
    if you have PI 7.1 and EhP1 then there is a java adapter module that you can add to the file adapter
    and it will do the transformation automatically
    Regards,
    Michal Krawczyk

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • How can I convert my Open Source document files into Word document files? I cannot download Pages since my Macbook Air does not have the most recent software.

    How can I convert my Open Source document files into Word document files? I cannot download Pages since my Macbook Air does not have the most recent software. I downloaded open office to my mac to try and save money. It worked well for a while. Now I get this pop-up message that asks me to "Reopen" and when I select the option, nothing happens. I cannot save my documents anymore and I cannot convert them to word. Help!

    dwb wrote:
    Does OpenOffice output Word documents by default or do you have to select it manually?
    You have 17 options to save as in Open Office, one of which is .doc  files,  yes it needs to be saved manually.
    You may be able to default to DOC, but have not tried same.
    Since Open Office is 99% same as Word, I use it, or Word, either one.  Open Office is a bit less buggy than Word 11'

  • I have a MacBook Pro and can't print pdf files or word documents using my HP Wireless Photosmart Printer.  It will print files from the internet.  Any suggestions or ideas will be greatly appreciated.  Thank you.

    I have a MacBook Pro and can't print pdf files or word documents using my HP Wireless Photosmart Printer.  It will print files from the internet.  Any suggestions or ideas will be greatly appreciated.  Thank you.

    Hello, SoonerAnesthetist. 
    Thank you for visiting Apple Support Communities.
    Here is an article that I would recommend going through when experiencing this issue.
    OS X Mavericks: Solve printing problems
    http://support.apple.com/kb/PH14142
    Cheers,
    Jason H.

  • How do I convert a pdf file to word document?

    How do I convert a pdf file to word document?

    If you are using Adobe Acrobat Pro all you have to do is open up your document and at the top left click on File and then click on Save as Other and then click on the first option Microsoft Word.

  • I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the

    I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the least very disappointed with such horrible service

    Which service did you subscribe to?  Adobe PDF Pack?
    Once I know the service that you subscribed to, I can move this post to the right forum so that you can get in touch with the folks who can assist you.

  • How do you convert a jpeg file into word document so i can edit it?

    How do you convert a jpeg file into word document so i can edit it?

    http://office.microsoft.com/en-us/mac-word-help/training-edit-pictures-in-office -for-mac-2011-RZ103709558.aspx

  • How can i convert my pdf file to word document?

    how can I convert pdf file to word document?

    Hi mariam46,
    You can use ExportPDF (or Acrobat) to convert a PDF file to Word format. Please see http://cloud.acrobat.com/exportpdf for more information.
    Best,
    Sara

  • How to convert a file to word document

    How do I convert a PDF file to a word document?

    Hi kathys31392917,
    You can use the ExportPDF online service (or Acrobat) to convert your PDF files to Word documents. See this document for a quick tutorial on the service: Getting Started with ExportPDF | Adobe Community.
    Please let us know if you have additional questions.
    Best,
    Sara

  • Creating Post Script File from Word Document

    Hi How to create a Ps File from Word document.. Is there any api to do this ?
    ~Arjun

    (1) It is
    PostScript, not
    Post Script or
    Ps!
    (2) To create PostScript from a Microsoft Word document, you simply open such a document in Microsoft Word and print to a PostScript printer driver instance, but chose the
    Print to file option. Note that since PostScript from drivers is device-dependent, you do need to choose a PostScript printer driver instance very carefully based on a PPD that has few device dependencies.
    - Dov

  • Attaching a flat file to the Document Number

    Hi,
       I want to attach a flat file to the Document Number generated .
    Please follow the steps :
    1) Goto transaction FB03.
    2) Enter into it by giving a document number.
    3) At the Document overview screen you will find the 'Services for Object' button(Left side upper part of the screen)
    4) When you click it you will find Create-> Create attachment will be there where you can browse and upload a flat file that tags tagged to the Document number.
         Is there any FM to do this activity.
    Thanks in Advance

    Hi Raja,
           I have used the function module
    'BDS_BUSINESSDOCUMENT_CREATEF' with the following parameters .
         Export:      
              LOGICAL_SYSTEM =  'LS_TSX100'
              CLASSNAME      = 'BUS6035'
              CLASSTYPE      = 'BO'
              CLIENT         = '100'
              OBJECT_KEY     = 'SE1201000000012006'
         Tables:
              Files-directory = 'C:\'
              files-filename  = 'POSTING.TXT'.
    After that I have committed it .
    The file doesn't get attached . I went into the FB02 and entered the accounting number(100000001) and checked but it has not got attached .
    Please help me .

  • Need help with converting PDF files to word document.

    When attempting to convert PDF files to word document, after clicking on "convert" a message "error occurred while signing in" displays. Don't know why??? I'm logged into my account and haven't been able to convert documents.

    Assuming that you try to use the ExportPDF service, I am moving your topic to the ExportPDF forum.
    Just for completeness, can you post your operating system, browser, and Adobe Reader version?

  • Unable to convert PDF file into word document

    I just signed up with Adobe in order to convert a PDF file into a word document and it continues to fail.  Any suggestions.

    If you have adobe X, simply go to "File" -> "Save-As" and Microsoft Word is an option. Also, there is a download (paid) called Able2Extract that will allow you to convert pdfs to word, excel, etc. but the formatting is often lost. If you get the premium package, you can even convert scanned documents. I've used Adobe X to do the conversion, and it retains headers, footers and all formatting.
    And i personally share you with a article about how to converting PDF files to Word(.doc), you just need to follow the easy guide.
    Hope it can help you a lot.

Maybe you are looking for

  • Accessing classes in web-inf/classes within JSP

    hi, i know this is probably a very basic question..or nobody would ever do something like this..but I'mn curious: i have a class Car.class in the WEB-INF/classes directory and I want to access it from withing JSP : <% Car c = new Car(); %> the proble

  • How to change the paper format in SOST tcode from X_65_80 to X_65_266?

    I got data from OTF in SAPSCRIPT and send by email. How to change the paper format in SOST tcode from X_65_80 to X_65_255? I need to change it automatically from abap. Any suggestion?

  • Can't downlaod safari 5 missing file?

    Can't downlaod safari 5 missing file? I loged on to my computer and when to click on safari and it wouldn't open. I wen't the the apple website and it said there was an update. I thought that was why it wasn't working. So I downloaded it and half way

  • Oracle SQL Developer issue when using VPN (Cisco)

    All, We've got a somewhat obscure issue with SQL Developer connectivity to our databases from a remote employee's laptop. The database is hosted inside our firewall and when the employee tries to connect to the database he receives the following erro

  • Core dump before entering main in Solaris 5.7 using SunWS 5.3 compiler

    Hi .. I have a test program which links with one of our libraries. Both have been built using SunWS 5.3 compiler on Solaris 5.7 machine. CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-19 2003/12/18 This test application cores even before it enters