SAP office - download document

Hi Gurus.
Could you help me, how to download text of sap office message to an internal table? I wrote a program, i get
relevant entries in SOFM table, but how to download it?
Thank you for your help

nobody knows, where are SO messages stored? in the table SOFM, there are atributes like DOCNO - document number. I think is it... but how to get content of these messages?

Similar Messages

  • Downloading Sap Office Document in Webdypro

    Hello All,
    I have to provide a link to a document that is present in SAP Office Folder.
    I am able to read the document using SO_OBJECT_GET_CONTENT. But the contents are in the form of a table of character type.
    The File download UI Component of Webdynpro requires the content to be in  Raw string format.
    Is there anyway I can convert or any function method that gives me the data in Raw format.
    Thanks,
    Anand

    Thanks Thomas,
    I was able to find a function some time back.
    SO_SOLITAB_TO_SOLIXTAB.
    This can also be used for converting the content to hex.

  • SAP Office Document - open in customcontainer

    HI,
    i try to open to SAP Office Document in "inplace" mode in my own dympro.
    Therefore I have an reference of a CL_DOCUMENT_BCS class. There is an interface with a if_document_display_bcs ~ display_outplace method and a if_document_display_bcs ~ display_inplace method. The first one works very well. But the second one does not seem to do that.
    I want to view this document in a custom container of my screen l Is this possible?
    kind regards
    Micha

    response.setHeader ("Content-Disposition","inline;filename=" + vo.getFileName()); This is the line that causes it to open in a browser.
    The problem here is that you are using a link to a document...or it appears that way. I dont have any experience with a link to a direct document.
    What I've always done is in the Java class I read the document into an object, then write that object to the ServletOutputStream.
    So something like this:
    1) Set Headers
    2) Get word document into some sort of Java object
    3) Write that object to the ServletOutputStream
    My documents are mostly built on the fly, so hence I need an object anyhow. If you store your files in the database, you will need one too.
    I personally would attack it the same way if my files were on the OS as I'd never want a direct link to a physical file. Rather I'd want a link to a page which opens a file.
    Edited by: ForumKid2 on Oct 13, 2010 12:40 PM

  • Office 2007 documents integration - SAP Note 1062725

    Hi,
    the SAP note regarding the comtability of Office 2007 - documents is gone. Why is that? Has it become irrelevant? Well, we still have this problem and I don't know what to do...

    Hi Danny,
    The note is currently in status 'Released for Customer' so it should be available at:
    [1062725|http://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=DISPL_TXT&_NNUM=1062725]
    Regards, Lorcan.

  • Archiving SAP Office documents

    Hi.
    I am looking for ways to archive mail sent from SAP. So far I have not found any archiving objects for e-mail. Are there anyone that have found a solution for archiving e-mail in archiving systems, such as CommonStore?
    Regards,
    Thomas

    Hello Thomas,
    try the report RSSOAPUT or the transaction SOY8.
    The following notes are for Reorganization of the SAP Office, perhaps this will also help?:
    <a href="https://service.sap.com/sap/support/notes/988057">Note 988057 - Reorganization - Information</a>
    <a href="https://service.sap.com/sap/support/notes/966854">Note 966854 - Reorganization - New report</a>
    <a href="https://service.sap.com/sap/support/notes/922671">Note 922671 - Deleting folder entries</a>
    Regards, Michael
    Message was edited by:
            Michael Teubner

  • Upload / Download document to KM Content Server from WebDynpro Application

    I have a requirement where I need to upload / download document into / from KM Content Server from my WebDynpro Application.
    Is it technically possible and if Yes, can I get any Sample code for this.

    Hi Tahzeeb,
    first of all i would point you to the JavaDocs for KMC API.
    https://media.sdn.sap.com/javadocs/NW04/SPS15/km/index.html
    And here is a small example of reading and storing KM resources.
    For reading:
         * Returns a resource as an InputStream from the KM repository
         * at the given path. The IUser is needed for authorization.
         * @param user      IUser for checking authorisation.
         * @param resPath   Path to the KM resource.
         * @return          Requested resource as a stream.
        private InputStream getKmResource(final IUser user, final String resPath)
            throws ResourceAccessException {
            try {
                final IResourceFactory factory = ResourceFactory.getInstance();
                final RID rid = RID.getRID(resPath);
                final IResource kmResource =
                    factory.getResource(
                        rid,
                        new ResourceContext(getDeprecatedIUser(user)));
                if (kmResource == null) {
                    throw new ResourceNotFoundException(
                        "KM resource not found: " + resPath,
                        resPath);
                return kmResource.getContent().getInputStream();
            catch (WcmException e) {
                throw new ResourceAccessException("Error accessing KM resource: " + resPath, e, resPath);
    And for writing:
         * Stores a resource in the KM repository at the given path with the given name and mimetype.
         * Content is taken from the given inputstream.
         * @param user          IUser for checking authorisation.
         * @param resName   Name of the resource
         * @param resPath     Path to the resource
         * @param mimeType MimeType of the resource
         * @param inputStream  Resource content
         * @throws ResourceAccessException
        private void putKmResource(
            final IUser user,
            final String resName,
            final String resPath,
            final String mimeType,
            final InputStream inputStream)
            throws ResourceAccessException {
            try {
                final ResourceContext rContext = new ResourceContext(getDeprecatedIUser(user));
                final RID rid = RID.getRID(resPath);
                final ICollection kmCollection =
                    (ICollection) ResourceFactory.getInstance().getResource(rid, rContext);
                if (kmCollection == null) {
                    throw new ResourceNotFoundException(
                        "KM resource not found: " + resPath,
                        resPath);
                else {
                    IContent kmContent = new Content(inputStream, mimeType, -1);
                    IResource kmResource = kmCollection.createResource(resName, null, kmContent);
            catch (ResourceException e) {
                throw new ResourceAccessException("Error accessing KM resource: " + resPath, e, resPath);
            finally {
                try {
                    inputStream.close();
                catch (IOException e1) {
                    throw new ResourceAccessException("Error closing InputStream when accessing " + resPath, e1, resPath);
    Hope that helps for a start.
    Best regards,
      ok

  • Upload Files into SAP Office Folder in Background

    Hi All ,
    Has anyone tried uploading file(s) of any type say *.XLS , *.PDF to SAP office folder (Outbox) in the background . I am using the function module  'SO_DOCUMENT_REPOSITORY' with methods "SAVE" , "ATTCREATEFROMPC" and "SEND" . It works fine in foreground without any errors . But when tried to schedule in background , the job stops at the method call "ATTCREATEFROMPC" and gives a message  "Database error for <INSERT INTO KPRO> " . It looks like the uderlyiong function module checks for an active GUI and fails during background .
    Any thoughts or other solutions would be appreciated ....
    Thanks

    Hi,
    I think ATTCREATEFROMPC method is for loading the file from frontend PC. It is bound to fail if you run it in background since there is no SAPGUI running it and it can't know the location.
    You will need to use some other method to be able to read the files from the APP server, and have your documents on the APP server if you want to run your code in the background.
    cheers,
    Ajay

  • I want to edit a downloaded document. Can anyone recommend a program to do this. Thank you

    Hi I am new to macs. Like I said above I want to edit a downloaded document. Can anyone recommend a good programme to do this. Thanks

    there are 1000's of document formats in the world
    so it really comes down to what type you wish to edit
    if I were you then I would checkout libre office and maybe iworks

  • Sap Office PDF to ArchiveLink

    In one of our workflow we create a PDF in SAP office with the request information that we send to the employee. If the request is approved, HR people archive this in the employee archive. This is done manually and takes lots of time.
    We want to do this automatically. We have already have a archivelink link to our archive.
    Is it possible and if how to copy the SAP office document to our archive by archivelink. We also need to specify the correct archive.
    Some documentation would be helpfull.

    Hi,
    Check the function group ARCHIVOBJECT (not sure if this was spelled correctly, but check for example function ARCHIVOBJECT_GET_TABLE and its function group). This function group includes many useful functions which you can use to programatically archive documents with archivelink. There is also lots of examples in SDN - just search with some of the functionas that you can find and look promising.
    Regards,
    Karri
    PS. Check for example this thread: Re: Generic Object Services (GOS) + ArchiveLink against IXOS.
    Edited by: Karri Kemppi on Mar 23, 2010 6:21 PM

  • Uploading file and creating SAP office documnet in background

    Hi,
    Is ther any FM which will upload the PDF file from PC in SAP office to create document in SAP
    i.e. create SOFM object , so that it can be used for attachmnets purpose?
    P.S. I am trying to use SO_OBJECT_UPLOAD , which does not work in background - error is Front-end services are not available.
    Regards,
    Akshay

    To upload in background you need to use OPEN DATASET later modify the record as you want to..also not the Window Path but you need to pass UNIX path.

  • RMAUTH - Trouble uploading Office 2007 Documents

    Good morning everybody!
    I am having some trouble uploading documents into the Roadmap I've just created.
    The documents that are from Office 1997-2003 I have no problems: I upload them as accelerators and save them. But the Office 2007 documents give me this message when i try to upload them: "The current KW settings do not allow file format PPTX to be checked in".
    My Solution Manager is at the latest Service Package and I have the latest version of the SAP GUI. What should I do to solve this question?
    Thanks!

    Mateus,
    That note didn't solve my problem. But I've managed to find a solution.
    I just had to mantain de documentation files I would need in the table IWDOCFRMT
    Thanks!

  • TS2492 how do I send downloaded documents in word form?

    How do I see downloaded documents in word format?

    Open Word. Open the Document with the File > open menu.
    If you don't have Word, try Bean or ask the person to send you the document as a PDF.
    Other applications can open Word documents too.  Maybe Pages.  Libre Office.

  • Disabling Secondary Popup When Accessing Office 2003 Documents Through KM

    Hi,
    we have the old problem with "Disabling Secondary Popup When Accessing Office 2003 Documents Through KM" which was topic of a weblog by John Mittendof already.
    For us it was solved when using Windows-integrated authentication without changing the registry as described.
    This works with Office2003 SP1. With SP2 the popup appears again.
    Does anyone have the same problem???
    The disadvantage with the registry solution is, that the files will be stored in the temporary internetfiles which leads to a message when opening a second time (in the sense of: document already open by "myself" - open writeprotected?).
    Best Regards
    Helge Stührmann

    Please Try this: (You should change all these settings or you'll get other errors)
    Go to Content Management ® Global Services ® URL Generator Service.
    Make the following changes:
    &#9679;      a) Replace the prefix
    /irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs in the parameters Image Path, Viewer, XML Forms CSS URL, and Content Access Path with /irj/go/km/docs
    The entry in the Image Path parameter must look as follows: /irj/go/km/docs/etc/public/mimes/images
    &#9679;      b) Replace the prefix
    /irj/servlet/prt/portal/prtroot/com.sap.km.cm.uidetails in the parameters Resource Properties Page and New Resource Properties Page with /irj/go/km/details
    &#9679;      c) Replace the prefix
    /irj/servlet/prt/portal/prtroot/com.sap.km.cm.navigation in the parameters Explorer Servlet and Navigation Servlet with /irj/go/km/navigation
    &#9679;      d) Replace
    /irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent in the parameters Highlighted Content with /irj/go/km/highlightedcontent
    &#9679;      e) Replace
    /irj/servlet/prt/portal/prtroot/com.sap.km.cm.basicsearch in the parameter Basic Search Servlet with /irj/go/km/basicsearch
    Regards, Fede

  • Does Oracle 11g index Office 2007 documents?

    I recently upgraded to 11g, because 10g didn't seem to index Office 2007 documents (e.g. Word, Excel, and PowerPoint) or PDFs v1.5 or higher. I need to be able to search on text in those documents. Everything works fine for PDFs and files generated using earlier versions of Microsoft products, but not for Office 2007 documents. The Oracle documentation for 11g says that it supports Office 2007, but I haven't had any luck. Any thoughts?
    Edited by: sac1222 on Nov 1, 2009 11:49 AM
    Edited by: sac1222 on Nov 1, 2009 1:59 PM

    All download versions of Oracle software are the full versions. The 11.1.0.7 patchset will work with your downloaded 11.1.0.6, but you will need an Oracle Support account before you can download the patchset.
    I believe you can download 11.1.0.7 directly for certain platforms - like Windows Server 2008 64 bit. If you don't have access to Oracle Support this might be an option for testing - you can get a 60 day evaluation copy of Windows Server 2008 [from Microsoft|http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=13c7300e-935c-415a-a79c-538e933d5424].

  • Insert SAP ICONS into from SAP into Word document (OLE)

    Hi ,
    I want to Insert SAP ICONS into from SAP into Word document (OLE) .
    Please let me know how can I do it? I would really appreciate it.
    Regards,
    Sanjeev

    Hello,
    Try this out:
    (1) Copy program DD_ADD_PICTURE into your own version called ZDD_ADD_PICTURE. Make sure
    you select all the checkboxes (including GUI Status and screens).
    (2) Paste the modified code at the end of this reply into your ZZ_ADD_PICTURE program.
    (3) Run ZZ_ADD_PICTURE for a range of Icons (e.g. enter Icon name ICON_IN* on the selection screen)
    (4) When you get the result list, type in ok-code EXPO directly in the ok-code
    field (you could also add a button for this function in the GUI status).
    (5) Download all the displayed icons as .gif files into a Windows folder
    that you have created to hold the icon .gif files (e.g. C:SAPICONS)
    (6) Now you can work with the icon files as you would any .gif file. (e.g. In a Word doc, use menu path
    Insert -> Picture -> From file.)
    Here is the code:
    REPORT dd_add_picture.
    TYPE-POOLS: sdydo.
    DATA: do TYPE REF TO cl_dd_document.
    DATA: is_displayed.
    TABLES: icont.
    DATA: BEGIN OF icontab OCCURS 0.
            INCLUDE STRUCTURE icon.
    DATA: END OF icontab.
    select-options: s_icon for icontab-name obligatory.
    SELECT * FROM icon INTO TABLE icontab WHERE locked NE 'X'
                        AND name in s_icon.
    * Event Handler Definition, handling changes of GUI fonts, colors,...
    CLASS cl_my_event_handler DEFINITION.
      PUBLIC SECTION.
        METHODS:
          use_new_resources FOR EVENT resources_changed OF cl_gui_resources.
    ENDCLASS.
    DATA: my_handler TYPE REF TO cl_my_event_handler.
    CREATE OBJECT my_handler.
    * Call Screen
    CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
      IF is_displayed IS INITIAL.
        SET PF-STATUS 'BRP'.
        SET HANDLER my_handler->use_new_resources.
    * create document
        CREATE OBJECT do.
    * fill document
        PERFORM dd_add_icon USING do.
    * merge document
        CALL METHOD do->merge_document.
    * display document .
        CALL METHOD do->display_document
                           EXPORTING  container          = 'HTML'
                           EXCEPTIONS html_display_error = 1.
                                           " do some exception handling ...
        is_displayed = 'X'.
      ENDIF.
    ENDMODULE.                             " STATUS_0100  OUTPUT
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.                       "Beenden
          LEAVE PROGRAM.
        WHEN 'PRN'.
          CALL METHOD do->print_document
                  EXPORTING reuse_control = 'X'.
        WHEN 'PRN_NEW'.
          DATA text TYPE sdydo_text_element.
          CALL METHOD do->initialize_document.
          text = 'Dies Dokument wurde speziell fürs Drucken erstellt!' &
                            ' Druckdatum: '(500).
          CALL METHOD do->add_text EXPORTING
                               text         = text
                               sap_fontsize = cl_dd_area=>large.
          WRITE sy-datum TO text DD/MM/YYYY.
          CALL METHOD do->add_text EXPORTING text = text .
          CALL METHOD do->new_line EXPORTING repeat = 2.
          PERFORM dd_add_icon USING do.
          CALL METHOD do->merge_document.
          CALL METHOD do->print_document.
        WHEN 'EXPO'.
          CALL METHOD do->export_document EXPORTING to_filesystem = 'X'.
      ENDCASE.
      CLEAR sy-ucomm.
    ENDMODULE.                             " USER_COMMAND_0100  INPUT
    *&      Form  DD_ADD_ICON
    *       text
    FORM dd_add_icon USING p_do TYPE REF TO cl_dd_document.
      DATA ta TYPE REF TO cl_dd_table_element.
      DATA col1 TYPE REF TO cl_dd_area.
      DATA col2 TYPE REF TO cl_dd_area.
      DATA col3 TYPE REF TO cl_dd_area.
      DATA text TYPE sdydo_text_element.
    * set Heading
      text = ' Bilder in Dynamischen Dokumenten'(001).
      CALL METHOD p_do->add_text EXPORTING text = text
                                      sap_style = 'heading'.
      CALL METHOD p_do->new_line.
      CALL METHOD p_do->new_line.
      CALL METHOD p_do->add_table EXPORTING with_heading    = 'X'
                                          no_of_columns     = 3
                                          width             = '100%'
                                          IMPORTING table   = ta.
    * set columns
      text = 'Ikone'(011).
      CALL METHOD ta->add_column EXPORTING heading  = text
                                 IMPORTING column   = col1.
    * fill table
      LOOP AT icontab.
        SELECT SINGLE * FROM icont WHERE langu = sy-langu
                                   AND   id    = icontab-id.
        CALL METHOD col1->add_icon EXPORTING sap_icon = icontab-name
                                             sap_color = 'LIST_GROUP'.
      ENDLOOP.
    ENDFORM.                               " DD_ADD_ICON
    * CLASS cl_my_event_handler IMPLEMENTATION.
    CLASS cl_my_event_handler IMPLEMENTATION.
      METHOD use_new_resources.
        IF is_displayed EQ 'X'.
    * initialize document
          CALL METHOD do->initialize_document.
    * fill document
          PERFORM dd_add_icon USING do.
    * merge document
          CALL METHOD do->merge_document.
    * display document
          CALL METHOD do->display_document
                              EXPORTING reuse_control        = 'X'
                                        reuse_registration   = 'X'.
        ENDIF.
      ENDMETHOD.
    ENDCLASS.
    Regards,
    Vasanth

Maybe you are looking for

  • Mysterious files being created in pages. Unable to unlock or delete them.

    Mysterious files being created in pages. Unable to unlock or delete.

  • Exporting to Movie

    Using FCE I've cut a movie using only square images from my Hasselblad, text, and music, and now I am trying to export my rendered product into a Quicktime movie. I have no idea what settings to use. What I've tried ends up either croping or squeezin

  • Re: URL to run Zimbra Web Client for Oracle Beehive?

    Hi I tried login to zimbra getting the following error. An unknown application error has occurred. Please correct any errors and retry. If the problem persists, please contact your System Administrator. (INVALID_PDU) I was able to login for the first

  • My DVCAM capture deck isn't capturing.

    I have tried everything with my capture deck (Sony DSR-11) and nothing is working. I have tried turning off my computer and then turning my deck on, and then opening final cut, it won't read the deck though. I recently reloaded my FCP6, and I haven't

  • Select System's Local Directory Path on Button Click

    Hi All, I Have a case where a use needs to give a directory path in TextInput. I want to replace this with a Browse Button, which when clicked need to open a Browe popup to select a Systems Directory and the selected Directory Name is written into th