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

Similar Messages

  • How to open word doc. from forms 10g

    hi all
    i am trying to open word doc. from forms 10g using ole2.
    but it is not working.
    basiccaly this command is not working
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    can anybody help
    thanx

    I found this searching this forum and it works..however, my issue is to open up Microsoft Word passing in data from a query.
    I am working on Forms 10g
    DECLARE AppID PLS_INTEGER;
    BEGIN
    AppID := DDE.App_Begin('C:\Program Files\Microsoft Office\OFFICE11\winword.exe C:\test.doc',
    DDE.APP_MODE_NORMAL);
    END;

  • Re: How to open Word Doc in e-mail attachment

    I use iworks '09. I received an e-mail with a MS Word attachment that I was unable to open-stated "this document was created with an unsupported version of Word.  Must I buy MS Office for Mac.  Or will NeoOffice or Open Office open the file?

    I ditched MS Office over two years ago for NeoOffice and it has been able to open every word doc's or pps that have come my way.
    Dennis

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

  • How can I open Word docs with Pages?

    I just installed the iWorks software because it said it would open Word docs. Now I can't seem to open any Word .doc files I had archived onto CDs, after abandoning my PC.
    I've made Pages my default application for opening text, and that didn't help. I just keep getting the error message "The document "X.doc" couldn't be opened." Any ideas?
    IMAC   Mac OS X (10.4.8)  

    Welcome to Apple Discussions Paul
    Pages - the word processing/page layout application in iWork (no "s") - usually doesn't have any problems with opening Word files, but I do believe it can't open any Word files older than version 6. It is also highly unlikely that it would be able to open any from the new 2007 version. If your documents are from a version in between those, they should open.
    How are you trying to open them? There are at least three common methods, but, since you say the documents are on a CD, I suggest copying them from the CD to your hard drive first. To open one at a time you can use File > Open (where > means following menu commands with your cursor). To open more than one at a time, select the ones you want by Command- (⌘) clicking the files & then dragging them onto the Pages icon in the Dock or a Finder window or Control- or right-click & choose Pages from Open with in the contextual menu that appears.

  • How to render a word doc stored on a file server?

    How render a word doc, the word doc is stored on a file server, the key is in the parent table and the url is in child table? I using MVC.

    Questions about rendering in MVC will be handled better in the MVC forum
    http://forums.asp.net/1146.aspx
    Paul Linton

  • How to setup word docs, converted to PDF on local drive with links to a second file at a page

    how to setup word docs, converted to PDF on local drive with links to a second file at a page
    Need to setup a set of word documents, converted to PDF that has links from one file to a second file at a given page.
    I would like to setup a set of pdf documents, on the hard disk of a PC or Mac, that can be open with acrobat pro running on the same computer and have the link jump to, and open in a new window, in acrobat pro, to a given page of a second document in the set.
    Is there a way to setup a link in word and the conversion to pdf that will result in a link that is equivalent to the acrobat link type  you get when you add a link of the type Go to a page in another document?
    Tools-Advanced Editing-Link tool, make a box
    Check: Go to page view, Next (Create go to view dialog opens)
    Open second document and go to page
    Click “Create go to view dialog” to set up link
    Result is a link, when view by link properties, with an action of
    Go to a page in another document
    File: C:\My Documents\second file.pdf
    Page: 43
    Zoom level: Custom
    I got close but did not solve the problem:
    I have a version that uses links to a website, using #page=43 at the end of the hyperlink.
    That works but will only open to the page if is through the web browser, opening the acrobat reader plugin.
    I need to open from a folder on the local harddisk (with relative links), in acrobat pro to the given page of the pdf, on a PC or a Mac.
    I could bookmark each page “pagenumberxxx” and jump to the bookmark/page if that would get around some problem
    Current Systems in use to create documents with links and view them:
    Windows XP SP3
    Word 2003 SP3
    Acrobat 9 pro version 9.4.4
    Or just to view them:
    Mac OS 10 Lion version 10.7.4
    Acrobat 9 pro version 9.5.1
    (note I have limited understanding of Mac’s)
    John

    No.  There seems to be no automated way to do it.  You can of course go into the PDF and manually add links after you have converted to PDF, but that is what we want to avoid having to do.  We want it to be automatic from the Word doc.

  • Open Word docs with the new Pages?

    Pages does not open. I had the new one installed but apparently had the old one still up. How can I open Word docs with the new Pages?

    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Once opened and saved in Pages 5.1 files can not be opened in Pages 5.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed over 95 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • Getting a Word-Doc stored in DB as Blob

    Hi !
    I'm an intermedia-beginner and I would like to know, how can I get the content of Word-Doc (stored as blob) by searching (if kriteria is found)?
    Example:
    I have a table: documents(id number pk,note varchar2(20), doc blob )
    indextype is ctxsys.context (pref -inso_filter)
    by searching :
    select id from documents where contains (doc,'search_kriteria') > 0;
    i need to get a document-blob, that includes the search kriteria.
    Thanks

    Hello, Stefan;
    Is this a Windows or Web application?
    Visual Basic 6.0 shipped with Crystal Reports 4.6 Visual Studio .NET 2005 ships with Crystal Reports 10.2 and VS .NET 2008 with version 10.5.
    The Crystal Reports application was rewritten in versions 5.0 and  9.0 and a great many changes were made - among them different options for including OLE Objects. See the [Note 1218374|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] for useful new functionality. I tested a report with a linked Word document and it viewed well through Visual Studio .NET 2008.
    Is it possible support for the  the Word format as a BLOB field in MS SQL Server has changed over time. What method is used to create the document as a BLOB field?
    Are you using the bundled version included with Visual Studio .NET? In the article recommending the property 'Retain Original Image Color Depth', there is a note:
    Note: This option only functions with the full version of Crystal Reports 9 or 10. This option does not function with the .NET Report Designer.
    Originally the issue was fixed but only in a full versions of Crystal Reports Developer, not in the versions bundled with Visual Studio .NET.
    I tested with a linked Word document and see some degradation when there is an image in the Word Document but not in the text itself.
    Elaine

  • How to open a doc file using jsp Anchor tag

    when i am trying to open a doc file using a jsp it is opening with out proper alignment.
              how to open a doc file with proper alignment using Anchor Tag in JSp Page
              

    Hello!
    Does some one of you had open a MS word file (.doc) in Java search for a token like [aToken] replace it with another text and then feed it to a stream of save it?
    I want to build a servlet to open a well formatted and rich on media (images) ms word document search for tokens and replace them with information form a web form.
    Any Ideas?
    Thank you in advanced.

  • How to convert word doc into pdf - which product of adobe i need to use- what upgrades - am a newbie

    How to convert word doc into pdf - which product of adobe i need to use- what upgrades - am a newbie -  simple answers please - Thanks in advance.

    @Pipeline2007 - which version of Microsoft Office have you got? Older versions of Acrobat aren't compatible with the latest versions of Office, see this link for info:
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html

  • Can you open word doc. In pages? (Opening a doc. From the web) in the iPad or iPod tuch?

    Can you open word doc. In pages? (Opening a doc. From the web) in the iPad or iPod tuch?

    NH,
    This may seem a fine point, but iWork apps don't actually Open Office apps. They Import them. The reason I make this distinction for you is that when you view the result of the import, you may see some variations from what was in the Office document because of an imperfect translation, and when you make edits, you are editing an iWork document, not the original Office document.
    Jerry

  • Can't open Word docs with Pages 08

    Since upgrading to SL I found that I can no longer open Word documents sent to me via email attachments. Can this be remedied? I thought Macs were able to "translate" Word files.
    Help!

    I did discover I can open Word docs with Text Edit, but it's a multi-step process now. I really don't want to upgrade to iWork 09 and I'm not sure that would solve the problem. I also have to use Quick Time now to open movies in iPhoto. Another multi-step process. I'm not very happy with SL.

  • Opening word docs in pages

    Hi
    I have just upgraded from an 8 year old imac to a brand new one, and have decided to use pages, instead of Office for mac which I used previously on the old mac, but I am have great difficulty in opening word docs in pages.
    I have selected a .doc, gone to get info,then open with, pages( default ), then change all, then try to open a word doc, which results in, unable to open.
    I must be doing something wrong, hence I would be grateful for any assistance.
    Many Thanks

    You need to uninstall the iWork trial. Read second post  on this link http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=105&highlight=reinst all&mforum=iworktipsntrick

  • How to Store word doc in oracle  using java

    hi
    toall
    can any one tell me how to store word doc in oracle9i using java
    bye

    Please refer to
    http://www.databasejournal.com/features/oracle/article.php/3305771

Maybe you are looking for