Wrong document URL for content server

Hi,
In my code I'm getting the url of an image by using the function:
CALL FUNCTION 'CVAPI_DOC_VIEW'
   EXPORTING
     PF_DOKAR               = it_objectlinks-documenttype
     PF_DOKNR               = it_objectlinks-documentnumber
     PF_DOKVR               = it_objectlinks-documentversion
     PF_DOKTL               = it_objectlinks-documentpart
    PF_HOSTNAME            = 'DEFAULT'
    PF_APPL_START          = ' '
    PF_GET_URL             = 'X'
IMPORTING
    PFX_URL                = lv_url
EXCEPTIONS
    ERROR                  = 1
    NOT_FOUND              = 2
    NO_AUTH                = 3
    NO_ORIGINAL            = 4
    OTHERS                 = 5.
On Development side I'm getting the correct url.
http://sapdcs.brussel.be.x.com:1090/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=ZD&docId=53655548314D14C0E10080000A0A0748&compId=productx.jpg
On Quality side I'm getting the wrong url.
http://sapdcs.brussel.be.x.com:1090/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=ZQ&docId=4F7F37E4333C02F2E10080000A0A07D6&compId=productx.jpg
The contRep and compId are correct. I'm not able to check the docId.
Is this a possible problem or do I call the wrong content server or is this server wrong configured, no idea!
Any help?
Regards

DEVELOPMENT (WORKING)
QUALITY (NOT WORKING)

Similar Messages

  • URL to content server from BI WAD not working

    Hello,
    I'm facing a problem using BI WAD in the portal ( Portal 7.0). When trying to jump from a BI WAD to display a scanned document hold in the content server( using signed URL generated by the function 'SCMS_URL_GENERATE'), a new window opens but the URL is cut.
    For example:
    Trying to reach :
    http://SUP-CS-60.admin.ulb.priv:1090/ContentServer/ContentServer.dll?get&pVe
    rsion=0046&contRep=DE&docId=E09738751CB99BF19B8B00155D483527&compId=data&acc
    essMode=r&authId=CN%3DB30&expiration=20110622150040&secKey=MIH4BgkqhkiG9w0BB
    wKggeowgecCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGBxzCBxAIBATAZMA4xDDAKBgNVB
    AMTA0IzMAIHIAkJCBgYMDAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcB
    gkqhkiG9w0BCQUxDxcNMTEwNjIyMTMwMDQwWjAjBgkqhkiG9w0BCQQxFgQU8P%2BvgmFvUZe%2Fk
    qyCi%2FGDeYl53BUwCQYHKoZIzjgEAwQvMC0CFC2S6mG8sd%2F5km%2BIL%2FpDL1IXt7KpAhUA0
    i5y3%2Fz5n%2F7E8FnSbpvbY5qxc6g%3D
    Shows a new window with :
    http://SUP-CS-60.admin.ulb.priv:1090/ContentServer/ContentServer.dll?
    But of course no document is shown. It seems like the parameters are gone from the URL.
    (The URL is not to be suspected as it is working from BEX Analyser. So it seems like the URL is well generated but cut when the portal is making the jump to the Content Server).
    Any idea of what could be done to resolve this?
    Thanks and best regards,
    Thomas

    Hello,
    I'm still stuck with this problem.
    A related question maybe easier:
    Is it possible from a WAD to open a document from the Content Server?
    Thanks,
    Thomas

  • Error on update of document stored in content server

    Error on update of document stored in content server
    On a regular basis (but not reproducible) we find that after updating a document, it is deleted from content server (or at least it cannot be retrieved).  These problems have only been experienced since we switched to using content server as our storage repository, as opposed to R/3.
    We create and maintain documents through a bespoke transaction, which calls standard SAP functions BDS_BUSINESSDOCUMENT_CREA_TAB and cl_bds_document_set=>update_with_table.
    Whilst the errored documents are listed in the BDS via transaction OAOR (business document navigator), an error is received when you try to display it (in our case an MS-Word error indicating file/pathname invalid). 
    We are satisfied that file/pathname are valid and find that this occurs occasionally when a document has been updated.  It appears that the document has been deleted. 
    This bespoke transaction has been running successfully for almost two years, and these problems have only been experienced after switching to content server as a storage repository (as opposed to R3 previously).  Has anyone else experienced these problems? 
    We are running :
    R/3 Enterprise 620,
    SAP HTTP Content Server Version 6.30 Patch 13
    SAPDB version 7.3.0.54

    Hi Sonny,
    To check the connectivity between your content server and Workstation and SAP Server.
    Pls goto the command prompt of your workstation
    give the command like this example.
    C:\>Ping 117.123.45.201
    you will get the reply from the server. here 117.123.45.201 is your content server IP.
    If you are getting the reply then it means that your contentserver and workstation are connected propely.
    Like that pls check the connectivity between your systems.
    Pls check the hosts file of your systems also.
    If the hosts file entry is not maintained, you can check-out file from content server but you cannot check-in the original.
    Pls let me know what kind of error Message you are getting?
    From where you are trying to check-in the Original? From the DIR screen or from CAD Desktop screen?
    Regards,
    MRK
    (reward points if useful)

  • Recover deleted document from Oracle content server

    Hi All,
    I've deleted some of documents from oracle content server mistakenly. I am using oracle ucm11g.
    I found that we have a feature called "Trash bin". Trash-bin used for recover the deleted document/folder but unluckily settings for "Trash Bin" is disabled in my UCM folder configuration.
    Is there any other way to recover?
    Please kindly help me on this. It's an urgent production issue, please.
    Thanks for your great support in advance.

    Is there any other way to recover?
    Try to take a look at Repository Manager admin application: http://docs.oracle.com/cd/E21764_01/doc.1111/e10978/c03_repository.htm#DAFCGDIE
    If you still can see your items there, you could recover the status.
    If not, I'm afraid your documents are gone from UCM. In that case, you might recover them from a back-up. There is also a chance that documents are still present in the Vault directory, so rather than 'recover', you might 're-submit' them.

  • ECM11g: How to enforce HTTPS access for Content server console

    Hi,
    We have a requirement of accessing Content Server console (https://<hostname>:<port>/cs) with https protocol only. If a user sends a http request (http://<hostname>:<port>/cs) it should get converted to https.
    The managed server is running with non SSL port. The request is comming from Apache where we have used the parameter "WLProxySSL" to enforce the https, however its not getting enforced for Content Server URL.
    Any help in this regard is highly appreciated.
    Thanks.

    Sorry, I forgot to say that
    i don't want to use the popup
    window that appears when JWS
    encounter an URL that requires
    basic authentication.
    In fact, I don't want to have to enter
    login/password for updates each time
    I start my application with JWS.

  • The best place for content server

    Hello,
    We need to install content Server . SAP ECC is in Paris .
    The users who will use the content server will be in New-York.
    Is the best place for content server in Paris or in New-York?
    The question could be : Will a document (for ex. a pdf of 100 Mb) to be checked_in the CS be first transferred from frontend to ECC and then from ECC to CS or directly from frontend to content server ?
    Thanks

    Hi Oda,
    If your users are in New-York, then better to have content server there to optimize network traffic and speed. There is something called as distributed content server concept where you can have different storage areas for different geographical locations.
    And as far as i know, whenever files are checked-in, they are directly stored in content server and it will not route through the ECC. Only DIR stored in the ECC will be linked to the file in the content server.
    Hope this helps.
    Regards,
    Ravi

  • How PLM Document save on content server

    Hi All,
    Please tell me the concept about given below scenario:
    Normally PLM documents are either saved in the Content Server or in the database.
    What if we have neither configured a database nor a content server. Where are they being stored then.
    what exactly Document serever , how the PLM document save on Content Server or in data base server.
    Thanks
    Narendra Vikram Vishwakarma

    Hi Vishwa,
             It depends on the storage area that you have maintained in the sap system for the documents. The customisation in the sap system is visible at IMG-->Cross Application Components -->Document Management --> General Data --> Settings for storage system. The storage area that you configure here will be linked to the DIR creation process.
    The SAP DMS is a file directory in the SAP server and a content server is a seperate Sap certified server usually maintained for handling files. However these topics are much more broader and you can have an overview by checking the following link www.verbellacmg.com/ulm211_v2.ppt
    Sojan

  • Redirecting documents to seperate Content Server

    Hi all,
    We have set up a seperate content server to store attachments to business activity documents. Currently our systen is set up to save the documents to the content server in the CRM box's web AS. How can I redirect the documents to the new server. How can I verify the documents are being saved to it. I have completed all the installation steps in the "Content Server for Win 6.30 Installation guide". I am using CRM 3.0

    Hello,
    Table SOFFCONT1 attachments are stored that are recorded in the database logic of sap. That is if the id of the document not find it in this table means that you are storing away in a content server.
    I've gotten crm attachments the content stored on a server.
    The first thing I have done is create a content server-class CRM. OAC0 in, then I created the category AOCT taking the content. CSADMIN and I found that the content is running.
    In transaction SKPR08 BDS_POC1 class I have assigned to the Z-server content that I created. and in all kinds of CRM type I have assigned the new Z category I created.
    After the transaction SBDSV2 I created a new record with BUS1006 in this case because it was a contact in CRM and I have given the document class Z BDS_ATTACH the category of content.
    The object (BUS) is obtained by a trace of the transaction and SWELS - SWEL (with some modification from the transaction in which I attach the document).
    In SBDSV1 I've got to bus1006 BDS_LOC1 class.
    And with that I have solved the problem.
    Edited by: chuso100 on Apr 28, 2010 1:28 PM
    Edited by: chuso100 on Apr 28, 2010 1:29 PM

  • Upload documents to DMS content server from other tcodes like MIRO

    Hi Experts,
    How can I upload my document to DMS content server through transactions like MIRO.

    Hi Sunil,
    You can't uplaod from different t-code, you need to upload it thru CV01n only. One exception is there which is BDC t-code SHDB for batch uploading. But from other t-code you can't uplaod a document into SAP DMS content server.
    One another option is create a z-tcode for the same. i.e. for MIRO create ZMIRO.
    In statndard environment you can attache but it will not saved in content server. Only thru CV01n it can be done.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • Carrier Type In DMS for content server

    Dear All,
    Can anyone help me in telling which carrier type i have to define in dc20 for Content server, if any required.
    i have configured content server in Oac0,oact, csadmin, but while saving file on server (check in) it is giving me this error
    Error while checking in and storing:  Message no. 26253 .
    Regards
    Kashif

    This error usually comes beacuse of improper settings maintained in CSADMIN for repository:
    Do few changes in CSADMIN Settings for repository:
    ContentStorage Host : (Enter name instead of IP)
    ContentStorageName : WCC
    Storage : ContentStorage.dll
    Security : 1
    ContRepDescription : (Enter descreption as given in OAC0)
    driver : LiveCache or MaxDB (Whatever you are using)
    Incase of DB, maintain also
    SAPDMSUser :
    SAPDBPassword :
    Please check after making these changes and revert.
    /Tilak

  • Incorrect url getting generated for content server download

    Hi,
    In the MIC(Management for Internal Controls) system, the standard functionality of downloading attachments after they have been uploaded into content server (FOPC_DB) is not working. When this download link is clicked, it opens another webpage and its URL is pointing to wrong  port number.
    Detailed analysis:
    On further analysis, we arrived at the following observations:
    The URL for Start page of MIC is as follows:
    http://hostname.com:8050/sap/bc/bsp/sap/fopc_start/start.htm?s
    Whereas the incorrect url getting generated during down load is
    http://hostname.com:8097/...........
    The sap webdispatcher is running on the system using port 8050. Whereas the ICM engine is running on port 8097. The download url picks up the port number of default ICM which the sap webdispacher does not allow to display.
    We require help in changing the port number so that correct url gets generated. This url should carry the port number of  sap webdispatcher.
    Thanks for the help.

    DEVELOPMENT (WORKING)
    QUALITY (NOT WORKING)

  • Import same documents for content server

    Good afternoon ,
    I need import same documents for the content server , I have one cd wich 400 imagens in pdf all on contrat , i want import all for the content server. how i get this ?
    att
    Angelo

    Hi
    The documentation for the batchloader and all the intricacies related to it can be found in the documentation for the components of the CS which is under /weblayout/help/documentation.
    A sample batchloader file looks as given below:
    Action = insert
    dDocName=11gAdminGuide
    dDocTitle=11gAdminGuide
    dDocAuthor=sysadmin
    dSecurityGroup=Public
    dDocAccount=New
    dDocType=ADACCT
    dInDate=6/12/08 3:45 PM
    dAnnouncement=Test1
    primaryFile=C:/Documents and Settings/srmenon/Desktop/batchtets/11gAdminGuide.pdf
    <<EOD>>
    dDocName=11gPerfTuning
    dDocTitle=11gPerfTuning
    dDocAuthor=sysadmin
    dSecurityGroup=Public
    dDocAccount=New
    dDocType=ADACCT
    dInDate=6/12/08 3:45 PM
    primaryFile=C:/Documents and Settings/srmenon/Desktop/batchtets/11gPerfTuning.pdf
    <<EOD>>
    dDocName=adminguideldap
    dDocTitle=adminguideldap
    dDocAuthor=sysadmin
    dSecurityGroup=Public
    dDocAccount=New
    dDocType=ADACCT
    dInDate=6/12/08 3:45 PM
    primaryFile=C:/Documents and Settings/srmenon/Desktop/batchtets/adminguideldap.pdf
    <<EOD>>
    This is for checkin that the file has been created and hence the insert is used in the Action variable. It could be replace,delete as per the needs.
    Thanks
    Srinath

  • MaxDB Connection Issue for Content Server

    Hi All,
    We have installed Content Server 6.40 on Windows 203 server.
    We are able to visit the Url http://host:port/ContentServer/ContentServer.dll?serverInfo
    But while creatng a repository i am facing issues..its throwing error that
    "HTTP error: 500 (Internal Server Error)  "CreateTab ContentStorage, connect error SQLConnect failed, [Microsoft][ODBC Driver Manager] Data s"
    Checked these two notes 698915, 301352 and ru the comman to register MaxDB drivers and got that message that the drivers registered successfulyy.
    But still i am not able to create repository uing CSADMIN.
    Also ,when tryng to connect to MaxDB using superdba or contro user ,its throwing error "-2 ERR_USRFAIL authorization failed "
    Even the control user i amnot able to login.I am giving the password which i gave during installation.
    Database is SDB
    Pls suggest.
    Regards
    Ajay

    Hello Ajay,
    1. I recommend you to create the SAP ticket, if you failed to connect to MaxDB
    using superdba or control user with known to you passwords.
    2. Could you post the password, which you used during the installation.
    In the past the issue was with using passwords more as 9 symbols with Unicode MAXDB.
    If you was using, for example, "test123456" password => try to connect to the database
    with u201Ctest12345u201D password < first 9 symbols of the password you used during the installation >.
    Thank you and best regards, Natalia Khlopina

  • Using GOS to store business document on the content server

    Hello All,
    BACKGROUND
    We use content server to store business documents via ArchiveLink.  The process to store a business document is via Generic Object Services menu path "Create -> Store business document". 
    ISSUE
    When document is stored in such a way, the actual name of the document is not displayed in the "Attachment list" of the GOS menu nor is it stored on the content server.  What we see instead in the "Attachment list" is a description of the Archive object (TOASP-objecttext) for all documents that we store. 
    NEED HELP
    We need to have a document's name (i.e. name of the uploaded file) displayed in the "Attachment list" of GOS.  We also need to be able to retrieve this file name programmatically via a function call or a class method. 
    Any help is greatly appreciated.
    Gene.

    1. In GOS attachment list i can able to see the attachment name (without extension) may be you need to check your layout using change layout (its may hidden)
    2. For getting attachment name programatically try this way
      i_object-typeid = 'BUS2012'.
      i_object-catid  = 'BO'.               
      i_object-instid = yatthdr-docno.       " Document Number
      refresh : i_brel, i_link.
    * Get Attachment List
      append 'ATTA' to i_brel.
      if not i_brel is initial.
        select *
          from srgbtbrel
          appending corresponding fields of table i_link
          for all entries in i_brel
          where
            instid_a eq i_object-instid and
            typeid_a eq i_object-typeid and
            catid_a  eq i_object-catid and
            reltype  eq i_brel-reltype.
      endif.
      wa_filter-send_info = ' '.
      wa_filter-no_content = 'X'.
      loop at i_link into ls_link.
        clear : wa_doc_data.
        wa_fol_cont-doc_id = ls_link-instid_b.
        call function 'SO_DOCUMENT_READ_API1'
          exporting
            document_id                = wa_fol_cont-doc_id
            filter                     = wa_filter
          importing
            object_header              = wa_obj_hdr    
            document_data              = wa_doc_data
          exceptions
            document_id_not_exist      = 1
            operation_no_authorization = 2
            others                     = 3.
    You can find the File Name in the WA_OBJ_HDR

  • 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

Maybe you are looking for

  • Black screen of death (PC crashes) when I connect my iPod

    I apologize if this has already been covered, I've tried searching the forums but without success.. I have a PC running Windows XP SP2. Recently whenever I connect my iPod Mini to the PC (USB2.0)the 'found new hardware' icon appears in the system tra

  • Redirect 302 doesn't work

    I need to do a redirect 302, I made this script but it is doesn't work. I modified a script, I include inside it a redirect 302. Could you tell me what is wrong? .. ... .. Over this script there is othr code. .. .. . IF Request.QueryString("id") = "o

  • Scripting the path in Quick Selection Tool

    Hi, I'm trying to build a JS script which: 1. opens an image 2. selects the quick selection tool 3. does the selection following a pre-defined path 4. puts the unselected area to white 5. saves the image The problem is in step 3. All the other steps

  • Purchase Order Smartform - Purchase Organization address

    Hello all, I am working with a Purchase Order smartform. I need to pullout Purchase Organization address details (like Name, Street, City, Country, Phone) into the form. Can anyone please help me. Thanks

  • Wireless radio not working

    hp photosmart all in one 309a, operating system windows vista & windows 7.  we just connected a brand new wireless router to our devices and we are having problems connecting the printer to the network.  the hp solution center said the wireless radio