How to edit Word Document stored in BDS through ABAP WebDynpro

Hi All,
Currently, my company has an ECC 6 program very similar to SAPRDEMO_FORM_INTERFACE.  This program takes a word form and populates it with various bits of data for the end user.  The user can then edit this document as they see fit and save it to the BDS system against a Material. 
The current requirement is to replicate this functionality through a WebDynpro program.  SAP does have a demo WebDynpro program IOS_TEST_WORDPROCESSING under package SIOS.  Within Method WDDOMODIFYVIEW of view TEST_VIEW_WORDPROC, the program takes the URL of a MIME repository object (which is a word document) and displays that document.  I tried to replicate this functionality by using the URL and content of the document using the CL_BDS_DOCUMENT_SET; however I am unsuccessful in getting this document to display.  No matter what I do, I cannot seem to get the BDS document to display. 
Does anyone know how to display and edit BDS documents through WebDynpro?  Any help that you can provide would be greatly appreciated.  Thanks for your help.
John

>
John Breen wrote:
> Hi All,
>
> Currently, my company has an ECC 6 program very similar to SAPRDEMO_FORM_INTERFACE.  This program takes a word form and populates it with various bits of data for the end user.  The user can then edit this document as they see fit and save it to the BDS system against a Material. 
>
> The current requirement is to replicate this functionality through a WebDynpro program.  SAP does have a demo WebDynpro program IOS_TEST_WORDPROCESSING under package SIOS.  Within Method WDDOMODIFYVIEW of view TEST_VIEW_WORDPROC, the program takes the URL of a MIME repository object (which is a word document) and displays that document.  I tried to replicate this functionality by using the URL and content of the document using the CL_BDS_DOCUMENT_SET; however I am unsuccessful in getting this document to display.  No matter what I do, I cannot seem to get the BDS document to display. 
>
> Does anyone know how to display and edit BDS documents through WebDynpro?  Any help that you can provide would be greatly appreciated.  Thanks for your help.
>
>
> John
John,
use CL_HTTP_CLIENT instead to get the document from external URL.

Similar Messages

  • How to open Word doc stored in BDS?

    I faced the problem using BDS. I have table with stored object_keys of Word documents stored in BDS. I can retrieve url for this docs using METHOD CL_BDS_DOCUMENT_SET=>GET_WITH_URL. But how can i open this document using url or something else?
    For example, 'WS_EXECUTE' don't understand BDS-URL as a doc adress.
    Thanks to all who will try to help me.

    Using BDS_OBJECT_DISPLAY i get runtime exception CX_SY_DYN_CALL_ILLEGAL_TYPE. I use BDS in this way. May be  I don't create BDS doc in a proper way?
    *&      Form  SAVE_FILE_RETRIVE_ID
    *       Locate File in BDS Repository Retrive ID
    FORM SAVE_FILE_RETRIVE_ID CHANGING OBJ_KEY TYPE SBDST_OBJECT_KEY.
      DATA: LV_COMPON TYPE BAPICOMPON,
              LV_SIGNAT TYPE BAPISIGNAT.
      LV_COMPON-DOC_COUNT = '1'.
    *  lv_compon-comp_count = '1'.
    *  lv_compon-comp_id = 'Employee Image'.
      lv_compon-mimetype ='application/x-oleobject'.
    *  lv_compon-comp_size = '1024'.
      APPEND LV_COMPON TO GV_COMPON.
      LV_SIGNAT-DOC_COUNT = '1'.
    *  LV_SIGNAT-DOC_ID = 'IMAGE'.
    *  LV_SIGNAT-DOC_VER_NO = '1'.
    *  LV_SIGNAT-DOC_VAR_ID = '1'.
    *  LV_SIGNAT-DOC_VAR_TG = 'ORIGINAL'.
    *  LV_SIGNAT-COMP_COUNT = '1'.
    *  LV_SIGNAT-PROP_NAME = 'IMAGE'.
    *  LV_SIGNAT-PROP_VALUE ='IMAGE'.
      APPEND LV_SIGNAT TO GV_SIGNAT.
      CALL METHOD CL_BDS_DOCUMENT_SET=>CREATE_WITH_TABLE
        EXPORTING
    *     LOGICAL_SYSTEM  =
          CLASSNAME       = 'DOC'
          CLASSTYPE       = 'BO'
    *     CLIENT          =
          COMPONENTS      = GV_COMPON
          CONTENT         = GV_T_FILE
       CHANGING
          OBJECT_KEY      = OBJ_KEY
          SIGNATURE       = GV_SIGNAT
       EXCEPTIONS
         INTERNAL_ERROR  = 1
         ERROR_KPRO      = 2
         PARAMETER_ERROR = 3
         NOT_AUTHORIZED  = 4
         NOT_ALLOWED     = 5
         NOTHING_FOUND   = 6
         OTHERS          = 7
      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.                    " SAVE_FILE_RETRIVE_ID
    *&      Form  OPEN_TASK_DOC
    FORM OPEN_TASK_DOC USING OBJ_KEY TYPE SBDST_OBJECT_KEY.
      DATA: LV_T_FURLS TYPE BAPIURI OCCURS 1,
                LV_URL TYPE BAPIURI,
                FILE_URL TYPE URL.
      CALL METHOD CL_BDS_DOCUMENT_SET=>GET_WITH_URL
        EXPORTING
    *      LOGICAL_SYSTEM  =
          CLASSNAME       = 'DOC'
          CLASSTYPE       = 'BO'
    *      CLIENT          =
          OBJECT_KEY      = OBJ_KEY
    *      URL_LIFETIME    =
        CHANGING
          URIS            = LV_T_FURLS
    *      SIGNATURE       =
    *      COMPONENTS      =
        EXCEPTIONS
          NOTHING_FOUND   = 1
          ERROR_KPRO      = 2
          INTERNAL_ERROR  = 3
          PARAMETER_ERROR = 4
          NOT_AUTHORIZED  = 5
          NOT_ALLOWED     = 6
          OTHERS          = 7
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE LV_T_FURLS INDEX 1 INTO LV_URL.
    * LV_URL - url to the doc we need to display
      FILE_URL = LV_URL.
      CALL FUNCTION 'BDS_OBJECT_DISPLAY'
        EXPORTING
          URL                  = LV_URL
          MIMETYPE             = 'application/x-oleobject'
    *     DOC_TYPE             =
    *     DOCUCLASS            =
    *     FILESIZE             =
    *   TABLES
    *     CONTENT              =
    *     ASCII_CONTENT        =
    *   EXCEPTIONS
    *     DP_ERROR             = 1
    *     FILE_ERROR           = 2
    *     INTERNAL_ERROR       = 3
    *     EAI_ERROR            = 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.
    ENDFORM.                    " OPEN_TASK_DOC

  • How to edit word documents once converted

    Can someone please advise how to edit a document I have converted into word from PDF.
    Many thanks

    Not sure what you mean. Are you asking how to use WORD? It also depends if you used the layout or the flow conversion process. With the layout, you get a bunch of text boxes. Almost nothing is in the standard flow of WORD. If you use the flow version, you sometimes get some strange sequencing of items. You might try both. If you have a graphic, then you either have to edit the graphic in a graphics package or do OCR in Acrobat before you do the conversion.

  • How to Edit Word Document in Oracle ADF Application - Apache POI

    Hi All
    I was wondering if there is a way to edit and save word documents in Oracle ADF without loosing the Formatting.
    I was able to edit and save the word document however the Formatting was lost.
    Please let me know if there are any pointers or open source Java APIs that we can use to achieve this.

    Refer the Text Formatting section
    Apache POI - HWPF - Java API to Handle Microsoft Word Files
    HWPF Reads in a Word document with minimum formatting (no lists, tables, footnotes, endnotes, headers, footers)
    Apache POI - HWPF - Java API to Handle Microsoft Word Files
    The _cbt field in class HWPFDocumentCore contains formatting information.
    HWPFDocumentCore (POI API Documentation)
    For more advanced text extraction needs, including Rich Text extraction (such as formatting and styling), along with XML and HTML output, Apache POI works closely with Apache Tika to deliver POI-powered Tika Parsers for all the project supported file formats.
    Apache POI - Text Extraction
    Use Apache Tikka for formatting.
    Apache Tika - Supported Document Formats

  • Create/edit word document from in Forms 6

    I want to create and or edit word documents stored in the operating system whose name (and path) is stored in the database. I have a form with a field of the doc name, how can I call word with the file name?
    I've never used OLE before so be specific.
    Thanks

    I've never used OLE before so be specific.So you know what to use. Look at Forms Help. There is no better place for this. You will get examples there.
    But Remember If you are using Forms on WEB this will give problems as OLE is not supported on WEB.
    Vij

  • How do I convert a pdf to an editable word document

    how do I convert a pdf to an editable word document - it is still in a picture format?

    Export PDF
    I have now learnt that it is a scanned pdf that I am trying to convert to a
    editable word document.
    Can one do this?

  • How do I convert a powerpoint presentation saved as pdf to an editable word document minus all the frames around the slides?

    How do I convert a powerpoint presentation saved as pdf to an editable word document minus all the frames around the slides?

    Hi Sara!
    Yes this sounds interesting. Can I update to that from the PDF Export I have just renewed? How much would that cost?
    Thanks for your quick answer.
    Best Regards
    Per-Olof Egli                                         Logga Egli C.I.S
    Managing Director
    Egli C.I.S. Consulting
    Lapphundsgränd 43
    SE-128 62 SKÖNDAL
    Sweden/Швеция
    Phone:         +46 708 23 03 53
    <http://www.eglicisconsulting.se/> www.eglicisconsulting.se
    <mailto:[email protected]> [email protected]
    Skype: eglipo
    Från: Sara.Forsberg 
    Skickat: den 10 september 2014 22:11
    Till: P-o Egli
    Ämne:  How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.
    How do I convert a pdf-presentation into Powerpoint, which it is said that I can do? I can convert into Word, but that is of no help as I need to change the text in the document.
    created by Sara.Forsberg <https://forums.adobe.com/people/Sara.Forsberg>  n Adobe ExportPDF - View the full discussion <https://forums.adobe.com/message/6718870#6718870>

  • How to save and work with a Word document stored in the Oracle 8i Database?

    Hi,
    If you have any experience with saving and working with a Word document (stored in 8i) from Forms 6.0, then please let me know how.
    Thanks ...
    Peter Nielsen

    hi
    i had worked storing word documents in oracle8i.tell me what exactly u want to know.
    null

  • How do i convert pdf file in editable word document

    How do i convert pdf file in editable word document ?

    To convert a PDF file to Word or Excel, you can subscribe to one of Adobe's services (Adobe ExportPDF or Adobe PDF Pack) or you can purchase Adobe Acrobat.

  • How can I best edit word documents that have been emailed to my iPad?

    I  regularly receive word documents from work, via my yahoo email account.  I have two questions really. 
    1) Can I edit word documents received via email?
    2) If this is possible, what is the best way to do this?
    Thanks in advance

    Sorry, yes. When I asked "how do I transfer it to Pages for editing?" I perhaps should have made it clear that I have purchased it. I can also create documents in it and send them as a Word document to others via email.
    Could you clarify "When you get the email, click on the Word Document to view it." The email appears in the Inbox list but does not show an attachment in the same way it does on my Mac. If I tap the email, it opens and reveals the contents including the Word document contents. At what point am I looking for an arrow - in the email list or in the opened and readable Word document?

  • Modifying MS WORD documents stored in BLOBS. (Oracle 9i Release 9.2.0.4.0)

    I have a need to replace a string of characters in an MS Word document that is stored in a BLOB field in an Oracle 9i database.
    Background: We have a large number of MS Word documents (~50,000) and many of them contain links to other Word documents stored on various servers throughout our network. We are moving a number of these servers, thus invalidating these links. I need to be able to update these links without having to open up every one of these documents and doing it manually.
    Is it possible, using PL/SQL, to update these links in these MS Word documents that are stored in Oracle? I have currently written a quick PL/SQL routine that will find the links and provide their location within the document, but I am not sure how I can update them. The problem, as I see it, is that if the characters that I am replacing differ in length than those that are currently in the existing document, then I would have to shift the remaining bytes of the document either left or right to preserve the integrity of the document.
    Is this possible, or should I pursue another option?

    It does not have to manual, but I think you will need to use word to modify and save the documents.
    The most automated process I can think of would be to write a client program to fetch a blob, run word, and have a word macro or add in to make the edits save, and then the client program updates with the new blob.
    With that number of documents, I would probably try to fetch a bunch of blobs and have word process them all before updating them for performance reasons.
    Unfortunately I would have no clue how to do the word automation, but I wouldn't touch those blobs using pl/sql

  • How to read word document in pl/sql

    How to read word document which is stored as BLOB column in table.
    I want to read it word by word.Please explain me how to raed using DBMS_lob
    package and substr,instr.

    You cannot. A Microsoft Word document is in a proprietary binary format. You cannot treat it as a text file and read "word-by-word" from it.
    As for examples - refer to the [url http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/toc.htm]Oracle® Database PL/SQL Packages and Types Reference manual. It describes DBMS_LOB and its usage in detail.

  • How to open word document in labview

    Hi,
    I want to open word document in labview,well i have done that.
    I want to display only the page part,don't want any editions,formatting to be done.
    please suggest me solution if any.

    How are you displaying your Word document, have you achieved that already?
    As far as I know, there is only one way to display Word documents and that's through the browser ActiveX interface:
    Using the Microsoft Web Browser control to embed a Word Document in LabVIEW
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • I downloaded the adobe XI software and it shows in my Adobe download assistant as downloaded but I can not open it and it is not a part of my applications. Very frustrating download process as I just want to convert a PDF file to an editable word document

    I downloaded the adobe XI software and it shows in my Adobe download assistant as downloaded but I can not open it and it is not a part of my applications. Very frustrating download process as I just want to convert a PDF file to an editable word document...

    Odonnells52 you will still need to install Adobe Acrobat Professional prior to being able to make edits to PDF or utilize Acrobat.   By default the installation files have been saved to your download folder.
    If you continue to face difficulties with the Adobe Download Assistant then please see Troubleshoot Adobe Download Assistant.
    You can also download the installation files directly from Download Acrobat products | Standard, Pro | XI, X if you are unable to locate the downloaded installation files.

  • How to edit my document after signing?

    how to edit my document after signing?

    Hi fortm71591551,
    Follow the below procedure for editing your document after signing it:
    1. Open the File in Acrobat
    2. Right Click on the signature field and choose 'Clear Signature'
    3. Go to tools pane on the right side of the window then choose 'Edit' Under Forms Drop Down Menu.
    4. Right Click on the signature field  and choose delete.
    5. Click 'Close Form editing' and then you can make necessary changes and resign your pdf (If you want to).
    Hope that helps.
    Please revert back for any other query or if you need any further assistance.
    Regards,
    Rahul

Maybe you are looking for