Display document from Content Server

Hello Expert,
I need to display document in CE portal, that are stored on ECC content server.
Does anyone know how to do this?
Thank you in advance.
Francois
Edited by: François BECKER on Oct 13, 2011 9:39 AM

Hi,
Try using this sample code
class lcl_handle_events definition.
  public section.
    methods:
             on_double_click for event double_click of cl_salv_events_table
            importing row column.
endclass.                    "lcl_handle_events DEFINITION
class lcl_handle_events implementation.
  method on_double_click.
  if column = 'INSTID'.
    clear gv_usrnme.
*Reading the ALV table to get the purchase order number
    read table gt_usrnme into gv_usrnme index row.
    if sy-subrc = 0.
*Passing the value of the PO number to ME23N Transaction
    set parameter id 'BES' field gv_usrnme-instid.
*Calling ME23N
    call transaction 'ME23N'.
    endif.
    endif.
  endmethod.
data gv_event  type ref to lcl_handle_events.      "events object
  gv_events = gs_table->get_event( ).
  create object gv_event.
*... §6.4 register to the event Link_CLICK
  set handler gv_event->on_double_click for gv_events.
Hope this helps you. Here i was calling a different transaction code based on each line selection..
Regards
Ansari

Similar Messages

  • Timeout when retrieving document from Content Server

    Dear experts,
    after the migration of an R/3 Enterprise system with a file-based Content Server (CS without database) we experience significant delays when a document shall be retrieved from the Content Server and displayed.
    The repository, from which documents are retrieved, has the following properties:
    Document Area = ArchiveLink
    Storage Type = HTTP content server
    Obviously the delay is caused by time-outs when R/3 tries to access the content sever.
    The RFC trace recorded during the document retrieval contains the following entries:
    Trace file opened at 20100825 104048 CEST SAP-REL 640,0,304 RFC-VER 3
    Trace file opened at 20100825 104115 CEST SAP-REL 640,0,304 RFC-VER 3
    End of trace *****
    ======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    ABAP Programm: SAPLSCMS_CLTFC (Transaction: )
    Called function module: RFC_PING
    User: TSI0403 (Client: 007)
    Destination: SAPCMS (handle: 4, , {4C74C1A6-BD3B-3B59-E100-00001A5F0A18})
    SERVER> RFC Server Session (handle: 1, 41571399, {4C74D031-BD2C-3B58-E100-00001A5F0A18})
    SERVER> Caller host: cimpd38_MPD_38
    SERVER> Caller transaction code: MIR4 (Caller Program: CL_GOS_TOOLBOX_VIEW===========CP)
    SERVER> Called function module: GOS_EXECUTE_SERVICE
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3268
    CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1660
    ======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    ABAP Programm: SAPLSCMS_FE_RFC (Transaction: )
    Called function module: RFC_PING
    User: TSI0403 (Client: 007)
    Destination: SAPHTTP (handle: 6, , {4C74C1B4-BD3B-3B59-E100-00001A5F0A18})
    SERVER> RFC Server Session (handle: 1, 41571399, {4C74D031-BD2C-3B58-E100-00001A5F0A18})
    SERVER> Caller host: cimpd38_MPD_38
    SERVER> Caller transaction code: MIR4 (Caller Program: CL_GOS_TOOLBOX_VIEW===========CP)
    SERVER> Called function module: GOS_EXECUTE_SERVICE
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3268
    CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456
    Timeout beim Verbindungsaufbau (Partner vorhanden ?)
    Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1660
    I wonder why R/3 first attempts to contact the Content Server via the SAPCMS RFC destination rather than using HTTP (SAPHTTP)? - The connection tests for both RFC connections are successful.
    Is there a way to instruct R/3 to go via the SAPHTTP RFC destination as the first choice and NOT via SAPCMS when documents shall be retrieved and displayed?
    Thank you,
    Rainer Walter
    Edited by: Rainer Walter on Sep 3, 2010 3:07 PM

    Hi Ravindra,
    thank you for looking into this problem. The Content Server is not based on SAP DB/MaxDB. The repositories are represented as plain directory structures in a file system.
    My issue is that R/3 is not using the SAPHTTP RFC connection as first choice although the repository is flagged as "HTTP Content Server" but uses another RFC destination instead. When this attempt is timed out, R/3 eventually picks the appropriate RFC destination. So it takes a considerable amount of time until a requested document is finally retrieved from the repository in the Content Server.
    I am confused because the system where I experience this behaviour has been built from a system copy of a production system, and the Content Server for this new system has been built from scratch. In the original production system, no timeout is found when users are retrieving documents, and obviously the original R/3 system is using SAPHTTP right away. The original production system and the new system built from a system copy are accessing different Content Servers.
    I am looking for a way to instruct the new R/3 system to immediately use the SAPHTTP connection when talking to the Content Server, and I would be grateful for a hint where I can configure this to get rid of these timeouts.
    Best regards,
    Rainer

  • Display Document from BI Server in Crystal Report

    Hi all,
    I accessed BI Query from BI server in Crystal Report. We can upload any comments or documents to the query. I want to display the document and comments in Crystal Report from the BI server.
    Is it possibel? If possible how can i do this?
    Thanks & Regards,
    Hemalatha J

    As I see there was no response on these issue although it is marked as answered. I'll give a hint for the ones that might want to try this.
    One could extract the metadata and documents from the tables names to be found in the tables SDOKLOTAB and SDOKPHTAB (as an example, for InfoObject documentation we have the tables BDSLOIO8, BDSLOIOT8, BDSLOPR8, BDSPHIO8 and BDSPHF8) or one could export the metadata from the BI repository (though, this is a manual approach).
    Edited by: marius.grunca on Apr 27, 2009 5:58 PM

  • How to get documents from content server on web pages

    Hello,
    I want to get the documents from the ECM(UCM server) of same document type and also want their metadata fields to displayed on adf application.
    How can i fetch these documents?

    Hi,
    You mean Data transfer between two components..
    To pass the value from one component to other component, you can use used component scenario.
    For example let use assume we have two comp ..
    Comp A,
    Comp B.
    now we need to pass the value from Comp A to Comp B.
    Then declare the Comp A as used component in Comp B.
    Now then you can create a node in the comp A component controller and check the interface check box there then the
    node and the attribute will be present in the interface controller also .
    and this interface controller context you can access in the component and map it to view there and display it.
    Webdynpro Application Integration..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/WebdynproApplicationsIntegration
    cheers,
    Kris.

  • Error when viewing documents from content server

    hi all,
    I have a question.
    we have installed an SAP Content Server on Windows 2003 server, and have connected it to our SAP ECC 5.00 ERP.  The purpose is so that documents that are attached to a transaction (through Generic Objects Services - Create Attachment), get stored onto the content server rather than the SAP database.  We have done all the necessary configuration in oac0, oact, and SKPR08.  We are able to attach a document to the transaction, and it gets stored onto the content server.  Our issue is when viewing the attachment. 
    This is the error we are getting as soon as we try to view the attachment:
    "Windows cannot find c:\documents and settings\<username>\SAPWorkDir\<filename>.  Make sure you typed the name correctly, and then try again.  To search for a file, click the Start button, and then click Search."
    After pressing OK to the message, the system then gives this error:
    "File could not be exported
    Message no. SO315
    Diagnosis
    You have selected either the Export function or a PC document to be exported from the system. The file could not be exported to the
    PC. Possible reasons:
    1. The file is already open and is being used by an application.
    2. The directory to which the file is to be exported is write-protected.
    Procedure
    In the first case, close the application.
    In the second case, remove the write-protection attribute from the directory or enter another directory."
    Why is the system trying to open the file from the user's C:\ drive?
    Does anyone have a solution to this error?
    Cheers,

    Hi Aleem,
    Refer to below KB & note, this should help you.
    1849203 - Error message Database error for <GET DATA FROM KPRO> (SO013) and/or File could not be exported (SO315) when opening a document in Attachment list
    764972 - Errors when creating workflow attachment
    Regards,
    Ravi

  • Pulling Documents from Content Server

    I'm trying to write a .NET webservice that will retrieve documents from the SAP Content Server.
    I understand that I need to build a URL to the content server to retrieve each document, and that part of this URL is a security key 'secKey'.
    I've such documents as:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/9561c8f3b111d1955b0000e82deb58/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/e8c192eaf811d195580000e82deb58/content.htm
    And everything seems fine, except for how to create the 'secKey'. I can hash the URL parameters as required, but I don't know how to sign it - how do I obtain the sender's private key in order to do this?
    Any help with this would be greatly appreciated!

    Sorry, I realise that this is a Java forum, and I specified that I'm writing in .NET.
    The reason I'm posting here is that if I can't do it in .NET , I'm happy to use Java instead.

  • Reding Document from Content Server

    HI,
    Currently I am Reading Data (Binary) of a Document which is in content Server, using FM : SCMS_DOC_READ.
    But, with this FM, we can Read the data of a single document. But, I have bundle of documents to read.
    I cannot put this FM in the LOOP as Performance will be reduced.
    Can you please tell me, is there any way To Read data of All Documents at One Time.
    Thanks,
    Sandeep

    Hi Sandeep
           I also have the  requirement of Reading contents of file saved in content server ,  and i am using same function module SCMS_DOC_READ. but the problem is if file is larger the FM is not reading all the contents as the output line is of 1022 characters only.  Can you suggest any similar FM which can read large amount of data also?
    Thanks
    Neelima.

  • Displaying img from content server thr' content presenter display templates

    Hi,
    I have created a static list element definition which contains three elements i.e. plaintext, image and WYSIWYG.
    I have accessed the plaintext and WYSIWYG elements on Content presenter template using
    <af:iterator var="items" value="#{node.propertyMap['ARTICLE_RGD:chapters'].nestedProperties}">
    <af:outputText id="ot1" value='#{items[0].value}'/>
    <af:outputText id="ot3" value="#{items[2].value}"/>
    </af:iterator>
    But may i know how to access the image element on the static list. I tried this with <af:image> tag
    <af:image styleClass="test" source="#{items[1].url}" shortDesc="Test" id="idtest" inlineStyle="float:left;"/>
    As the source tag of af:image tag requires an uri, and as we are passing the url, the image is not getting rendered.
    As there is no uri property on the node attribute, Kindly help to fetch the image element from CS.
    Not only in static list, may i know how to render the image element in adf from CS
    Thanks
    S. Muthukumaran

    Hi,
    I have created a static list element definition which contains three elements i.e. plaintext, image and WYSIWYG.
    I have accessed the plaintext and WYSIWYG elements on Content presenter template using
    <af:iterator var="items" value="#{node.propertyMap['ARTICLE_RGD:chapters'].nestedProperties}">
    <af:outputText id="ot1" value='#{items[0].value}'/>
    <af:outputText id="ot3" value="#{items[2].value}"/>
    </af:iterator>
    But may i know how to access the image element on the static list. I tried this with <af:image> tag
    <af:image styleClass="test" source="#{items[1].url}" shortDesc="Test" id="idtest" inlineStyle="float:left;"/>
    As the source tag of af:image tag requires an uri, and as we are passing the url, the image is not getting rendered.
    As there is no uri property on the node attribute, Kindly help to fetch the image element from CS.
    Not only in static list, may i know how to render the image element in adf from CS
    Thanks
    S. Muthukumaran

  • Display different types of file formats from contents server on web UI

    Hi,
    I have to read different types of documents from content server and display it in web page using webdynpro abap.
    Different types of documents are : Tif, Jpeg, BMP, PNG etc. need to be convert into gif format and display
    Txt files as it is.
    PDF files as it is.
    Microsoft office documents as it is.
    ALF files i.e. printlists to be shown on web page.
    Please anyone has any information regarding this let me know ASAP.
    Thanks & Regards,
    Manali

    hi ,
    pls refer the below thread :
    Dynamic Use of Mime in component
    n check wid thomas reply in the thread :
    Create the cached response object that we will insert the  content
    Well you can manipulate the MIME content at runtime by using the API: CL_MIME_REPOSITORY_API. However if your content is temporary, it is more efficient to just place the content directly into the ICM cache. You don't have the overhead of having to both write and then delete it from the database. Here is an example of how you can do this:
    I hope it wud be helpful
    rgds,
    amit

  • Reading the Excel from Content Server...

    Hello Experts
    I have a requirement to read the contents of the excel from DMS content server to Internal Table.
    I tried using the function module "SCMS_DOC_READ", but it is reading only the part of the contents and remaining contents are missing in the Internal Table.
    Is there any other way to read the content of excel file stored in content server.
    Many Thanks in advance!!!
    Regards,
    Benu

    Hi Christoph,
    Many thanks for your reply...
    Now I am using the same report for downloading the document from content server but my requirement is to read the contents directly from content server without downloading it to presentation server..
    The function module mentioned in the above post is not reading the complete contents of the excel sheet.
    Regards,
    Benu

  • Error Displaying Portlet Preview created from Content Server templates

    I created portlet from content server announcement portlet template.Whet put on the page this portlet shows the following error message:
    Error Displaying Portlet Preview.Error Getting Content from Portlet.
    Same error with portlet created from the news template.

    If the link exists in TOA01, why is the dosumnet not visible ? When i use the Function Module ARCHIVOBJECT_DISPLAY, i get the error -
    Error when opening document with HTML control:DP_ERROR_GENERAL
    Can someone please let me know what are we doing wrong ??

  • Fetch XML from Content server to Portlet and display as HTML

    Hi,
    I want to fetch the XML from the content server and display that XML in the Weblogic Portlet as HTML.
    The main reason is that data will be contributed by the users in UCM and then I had to get that data from content server and display in portlet
    Please Help........
    Thanks,
    Vinod

    Vinod:
    Probably what you're looking for is to bring the content over using the UCM SPI adapter for WLP's VCR:
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/intro.html]
    And then to display the content using a custom template using Content Presenter:
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/cm/displaytemplatesCM.html]
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/development.html]
    When you say you want to fetch xml, is that because it's a contributor data file? You can either read the property values directly from the VCR, or use the info you get from the node (such as dDocName) to then use a UCM/WCM web service to retrieve formatted content and put it in an iframe. There are a lot of ways to go in formatting the data.
    You can even add edit capabilities to your Presenter template by calling the 'edit data file' web service of WCM.

  • Store document into Content Server

    Dear All;
    l have the following requirement for Content Server;
    - Generate the PR/PO form via print program.                         
    -Approver's signature will be display accordingly by the approval level.               EG:  1st level approver 'A' have been approved. Signature of approver 'A' will be display on the generated PR/PO form.                                        - Convert the generated form into PDF format.                         -To attach the supporting document via Generic Object Services (GOS).               -To store the PDF form & attached documents into Archived Link content server with URL address returned.     
    -An notification mail will send to respective approver based on release strategy configuration.     
    Basically it is Workflow integrate with Content Server.  There are few thing for me to do here:
    1. Store the PO/PR document into Content Server
    2. Run the workflow and view the attachement and add new attachement to Content Server from the Workflow process.
    3. Return the URL address to the user for the document that saved into Content Server
    l'm trying to do the first requirement now.
    The user will create the PR in tcode ME52N and PO in tcode ME22N, they can create the attachement and view the attachement, and the attachement are stored in the ECC6 database.
    l have installed the Content Server 6.40 with Filesystem (not the MaxDB) cause user do not want to buy the MaxDB license.
    The Content server 6.4 installation is completed, l can configure the CSDMIN in ECC6,
    In OAC0, l have created the Content Repository=ZA,
    Document Area = ARCHIVELINK
    Storage type = 04 HTTP Content server
    Version=0046
    Http Server = 10.120.0.10
    Port Number = 1090
    HTTP Script= ContentServer/ContentServer.dll
    Transfer drctry =
    10.100.0.10\cm\exdir   /# \cm\exdir is a directory in Content Server. #/
    the physical directory created in the Content Server as
    10.120.0.10\cm\za
    In OAC2, l have created a new Document type=ZCS, the document class=PDF
    In OAC3, l have created the following:
    Object Type= BUS2012, Document Type= ZCS, Link=X, Cont.Rep.ID=ZA, Link=TOA01, Rentention=99
    Object Type= BUS2105, Document Type= ZCS, Link=X, Cont.Rep.ID=ZA, Link=TOA01, Rentention=99
    (Honestly, l'm not quite sure the BUS2012 will work, it created by functional team, which l'm sure it actually represent the business object for PO and PR)
    With these, l think the linkage between business object and logical archive is established, but when l saved the attachement in ME22N and ME52N, the document still save into ECC6 Database, not the Content Server, because in the /cm/za directory in the Content server still empty.
    Anyone please advise any documentation/steps do store the document in Content Server from PO/PR and with returned URL to the users.
    Please help..
    Many thanks
    Jordan

    Dear all;
    Thanks for the information, l manage to store document actually.
    l used the OAAD to test to stored, once it is working, then l can use the option 'Store business document" ME23N and ME52N transaction code.
    One question here l would like to check:
    The WorkFlow team said that the Generic Object Service (GOS) - "Create Attachement" option in ME23N can actually store the document to Content Server instead of store into R3 Database.  He claimed some Basis have done it before, can anyone clarify if it is true?
    In OAC0, l have ZB Content Repository, set the "Storage Type = 04 HTTP Content Server" in order to save the document to Content Server.  The Document Area=Archive Link.
    With these setting l can only use the "Store Business Document" option to store the document to Content Server, not the "Create Attachement".
    l try to change the Document Area with different option like DMS, BDS etc but l can't get the Content Rep ID for ZB in OAC3 to link the Object Type?
    Anyone can help?
    Many thanks.
    Jordan Tan

  • Error checking in document to content server

    Hi,
    While storing the document to content server we are getting "Error while checking in and storing " error. We use ECC 6.0 Request any inputs where to trace this error.
    Thx.
    Anirudh,

    Hello Anirudh,
    i assume that you get this error only after you click on the save button.Before clicking on the save button i assume you had checked in the original.
    Suggest you to put start the debugger using "/h" and then click on the the Save button. Once the debugger opens, put a break point on the "Message" using the debugger. And start debugging using F8 key. When the control stops at any message statement , just have a look at the content of the internal table filled before the Message stmt. It would help you to figure out the exact cause of the error message.
    Seeing the error message , i think that in your case it might be that signature are not sent from your system to the content server.
    You can see the details about the signature associated to he content repository from the "csadmin" transaction. if you have any problem with regarding to signatures, just check if you have any active signature. I think there is not active signature, just select one signature and activate the signature.
    If the problem still exists and it maps to the content server, contact your content server admin.
    Hope this helps you out, Best of luck.
    Regards,
    Om

  • Copy any kind of file from content server to network directory

    Helli All
    The question:
    I nee to copy any kind of file from content server to any network directory.
    Explanation
    1. transaction CV02N
    2. There is attached file for a document in tab "Document data/Original"
    3. This file stored in content server
    4. I wrote program code that creates path of the stored file that finally looks like
    http://cont:8888/ContentServer.dll?get&Version=.....*...&compid=app1.doc
    where app1.doc is file's name and I have to copy this file into network directory.
    The problem is that this URL open the file instead of just pointing to him
    so that no function or method can't see this file and as the result I got message that
    the file doesn\t exist.
    Please, advice.
    Regards,
    Daniel.

    many many thanks for ur help. i really did not check the URLClassLoader properly.
    but i would like to hear a little more from u. i have another question. here in this code (provided earlier), i searched for attribute values in the manifest file, then again i load the required class file from the very url. is it not good to retrieve the whole jar file first, and then check attribute values inside manifest file and load the required class files from that jar file that is already downloaded without going to that url again? how can i do this?

Maybe you are looking for

  • My iPod won't take the songs from my iTunes.

    I used to use my main desktop for getting my music on iTunes. The family and I have been using an account that none of us can remember the password for. And the e-mail that was used must be expired because we no longer use AOL. My iPod was used on th

  • Tecra M10 - Stuck CTRL key issue -- perhaps to do with BIOS?

    Hello and thanks for reading. I recently switched my Tecra M10 to Windows 7 (from XP) and it soon developed the dreaded "stuck CTRL key" issue. This causes the keyboard to behave as if the CTRL key is permanently depressed. Sometimes hitting a combin

  • New releases doesn't display all text

    I've noticed a problem wtih the music store and I can't find any similar problem searching through the archives here. Any help in fixing the problem would be appreciated. In iTunes here when I go to the Music Store the "New Releases" box seems to be

  • Somebody help me please!!!

    My BlackBerry Curve 8250 drained early hours yerterday morning and ive had it on charge ever since and it still hasnt turned on, i have " batteries that have drained and dont no how to get them working again, please can somebody explain how to get my

  • Can I stream music from Apple TV to airport express?

    Using Apple TV can I stream music for say apple radio to my apple airport express which is in another room and connected to a set of speakers?