Retrieving documents from cache server using Bapi_Document_Checkoutviewx

Hello,
how can I retrieve the documents from cache server instead from content server, which are stored in SAP R/3 system.
I use the bapi "BAPI_DOCUMENT_CHECKOUTVIEWX" in a Rfc-Client Programm to retrieve the documents. This BAPI retrieves the documents allways from content server and don't use the existent cache server.
Thanks for any help!
Birol

Hi Birol,
Can you please tell me is the content you have used in that "BAPI_DOCUMENT_CHECKOUTVIEWX programme"????
Regards
Harshavardhan.G

Similar Messages

  • DMS document from Cache server!

    We are able to retrieve DMS document(PDF) from Content server but not from Cache Server using URL generated from
    CALL FUNCTION 'SCMS_URL_GENERATE'.I even tried Pushing the Doc to cache using DMS_KPRO_FILL_CACHE, Doc exists in Cache when i check operation=statGet2 but my URL does not give me the document
    *-Cache server
    SELECT SINGLE * INTO S_SCMSCACHE
    FROM SCMSCACHE
    WHERE HOST = 'TSTCS2'.
    CALL FUNCTION 'SCMS_URL_GENERATE'
    EXPORTING
    COMMAND = 'get'
    CONTREP = CREP_ID
    DOCID = P_DMS_DOC2LOIO_LO_OBJID
    COMPID = 'data'
    ACCESSMODE = 'r'
    SIGNATURE = 'X'
    SECURITY = 'F'
    *USE_LOCATION = 'A'
    *LOCATION = 'TSTCS2'
    *CACHE_TO_USE = S_SCMSCACHE
    IMPORTING
    ABSOLUTE_URI = URI_STRING
    HTTP_URI = HTTP_URI
    HTTPS_URI = HTTPS_URI
    CACHE = S_SCMSCACHE_O
    ENDIF.
    ELSE."Content Server
    CALL FUNCTION 'SCMS_URL_GENERATE'
    EXPORTING
    COMMAND = 'docGet'
    CONTREP = CREP_ID "'Z_DLS_DOC_DU1'
    DOCID = P_DMS_DOC2LOIO_LO_OBJID
    ACCESSMODE = 'r'
    SECURITY = 'F'
    ENDIF.
    Edited by: Madhu Gudur on Oct 24, 2009 3:59 AM

    I'm not expert in this area, but I don't understand why you try to read directly the cache as by definition, a cache is managed by the application itself. Why don't you read the document as usually, and let the system read the cache by itself?

  • Retrieving data from OBIEE server using ODBC

    Hello.
    I am having difficulty retrieving data from OBIEE 11g using the ODBC connection. My intention is to read OBIEE Server data via a SQL statement issued from an Oracle database using gateways.
    I have read and followed the material here:
    http://download.oracle.com/docs/cd/E14571_01/bi.1111/e16364/odbc_data_source.htm#CACBFCJA
    I have also tried this from Excel 2007, but have not succeeded:
    http://gerardnico.com/wiki/dat/obiee/import_data_from_obiee_to_excel
    I have setup a gateway in Oracle and a database link. Iknow it is connecting because when I change the password to something invalid, I get a message about not being able to connect due to username/password.
    I have taken a query from Answers (the advanced tab) and tried running it from Sql Developer. The nsqserver.log file ends up with the following Notification:
    [nQSError: 13013] Init block, 'DUAL Num (=3)', has more variables than the query select list.
    As an experiment, I am using the SampleApp, and have generated the following query in Answers:
    SELECT s_0, s_1, s_2, s_3 FROM (
    SELECT
    0 s_0,
    "A - Sample Sales"."Products"."P3 LOB" s_1,
    DESCRIPTOR_IDOF("A - Sample Sales"."Products"."P3 LOB") s_2,
    "A - Sample Sales"."Base Facts"."1- Revenue" s_3
    FROM "A - Sample Sales"
    ) djm ORDER BY 1, 2 ASC NULLS LAST
    Is there a way to issue this query from a database client like SQL Developer? I have setup a database link called obiee via gateways to the ODBC connection, and add @obiee after the table name in the above query, but get the nqs error above.
    Thanks for any help. I can provide addl info if such would be useful.
    Ari

    That would explain my difficulty. I went to the link:
    http://download.oracle.com/docs/cd/E14571_01/relnotes.1111/e10132/biee.htm#CHDIFHEE
    that describes the deprecated client. I am confused by the statement there:
    "one of the many widely available third-party ODBC/JDBC tools to satisfy previous NQClient functionality"
    My understanding of ODBC is not very strong, so please bear with me. The statement above is talking about a client tool, but there also needs to be an ODBC driver available for BI Server. I may be a bit confused between driver and client, and what piece nq handles. I don't understand the comment about third-party ODBC when it comes to the driver piece, as that must be coded for BI Server. When I go to create a new DSN, the only driver that makes sense for me to select is:
    Oracle BI Server 11g_OH<id>
    That all works fine to setup a DSN. But I am unable to connect from Excel, etc., using this DSN.
    Put more simply, should I be able to connect to BI Server via ODBC - not using the deprecated BI ODBC client, but using other clients? Is there ODBC connectivity at all in OBIEE 11g?
    Thanks,
    Ari

  • 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

  • Attach document from application server using BAPI

    Hi,
    I am trying to attach files to Document Info Record using BAPI
    BAPI_DOCUMENT_CHECKIN_REPLACE2. When i execute the z program that calls this BAPI on
    presentation server in foreground by giving path of documents which are locating on local pc it works
    fine and check in the file in document infor record
    But when i run program in background and file path is of application server.It gives error that
    Program no longer started via RFC. No return possible.
    I want to know the cause of this error.
    Please help.

    i think u need to pass Storage category  = FILESYSTEM.
    check the documentation of data element -
    DE CV_STORAGE_CAT
    but i'm not 100% sure abt it.
    regards
    Prabhu

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

  • How to mimic Deski document from BOXI server to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    To Guru's, Would you know if there's a way to mimic Deski document from BOXI server to local machine, pass parameter, execute and save in a mutiple report format then store in a local drive or network drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only.  Please let me know your ideas. I would really appreciate your help. Thanks. 

    Give Chronosync a go - have been using for over a year and it works great; if you like Syncback you'll like this app.

  • How do I retrieve documents from my iCloud that i made in pages

    How do I retrieve documents from my iCloud that i made in pages

    Welcome to the Apple community.
    Your question is a little unclear, however if you mean how can you retrieve documents you have created on your iOS device on your Mac, then you need to download them at iCloud.com using the web browser (Safari or similar) on your mac.

  • Is it possible to lock the keyboard of a client from a server using java

    please explain wheterit is possible to lock the keyboard of a client from a server using java

    You want to process code on one machine, and thereby lock the keyboard on another machine? No, that's not possible. It is extremely far from possible.
    Of course, if the client is running software with security holes in it you might hack into it and crash the thing. This will lock up the keyboard pretty good. I hope that's not what you want ...
    Or are you talking about a setup where you already have code running on the client, and some sort of communication between client and server? In that case what you need to know is whether it is possible to lock the keyboard at all. Once you have figured that out, it is trivial to add the communication code to have the server software tell the client software to lock the keyboard.
    So what do you mean with "lock the keyboard"? It's pretty easy to remove/disable all keyboard related listeners in your own application. It's a lot harder (and AFAIK impossible with pure java) to disable alt-tabbing out of the application. And impossible, except from exploiting security holes, to lock the ctrl-alt-delete-combination on windows machine.

  • Client automatically cache the data got from cache server?

    Hi expert,
    I have 2 questions about the client local cache. Would you please help to give me some suggestion?
    1. Will client automatically locally cache the data got from cache server the first time and automatically update the data in local cache when getting the same data from cache server again? I go through the API reference but cannot find any API to query the data currently cached in the local cache.
    2. If client will automatically cache the data got from cache server. Is there any way for a client to get the data event that happens to its local cache, such as entry created in local cache, entry deleted from local cache and entry updated in local cache? In my opinion, when getting an entry from cache server the first time, the MapListener's entry create event should be triggered. When getting the same entry again, the entry update event should be triggered.
    However, I have tried a client with replicated cache, a client with partitioned cache, an extend client with remote cache and a client with local cache(front cache part of near cache), the client (the NamedCache object has been set the MapListener) cannot get any event notification after getting data from cache server. By the way, my listener is OK since when putting data the entry create event and entry update event will be triggered.
    Your suggestion is very appreciated. :)

    Hi
    If I were you I would read this http://download.oracle.com/docs/cd/E14526_01/coh.350/e14510/toc.htm
    and particularly the section about Near Caching here http://download.oracle.com/docs/cd/E14526_01/coh.350/e14510/nearcache.htm#CDEFEAJG
    which is what you are asking about in your question.
    Near Caching is how Coherence stores data in the locally - which is the answetr to your first question. How Near Caching works is explained in the documentation.
    Events, which you ask about in your second question are explained here http://download.oracle.com/docs/cd/E14526_01/coh.350/e14510/delivereventsjava.htm#CBBIIEFA
    It might be that ContinuousQueryCache is closer to what you want. This is explained here http://download.oracle.com/docs/cd/E14526_01/coh.350/e14510/queryabledatafabric.htm#sthref38 A ContinuousQueryCache is like having a sub-set of the underlying cache on the local client which you can then listen to etc...
    JK

  • How do I stop imac from retrieving email from my server?

    I no longer want my mac to retrieve email from my server (sbcglobal).  How do I stop it from doing that?

    Open the Mail app>go to the word MAIL in the upper left corner of your desktop and click on it>Preferences>Accounts tab>Delete the "Incoming Mail Server" entry on the right.
    Hope this helps

  • Get the connected users count from sql server using powershell

    Hi,
    I am working on SharePoint 2013,I am having SQL server 2012.
    I want to get the Connected Users count from  sql server using power shell.
    Can any one please let me know how to implement.
    Thanks in advance.
    Regards,
    Phani Kumar R

    Sorry Tom, I dont like to hear "There is no way" :-(
    There is always a way in computer to get what you need (at least it is good as Rule of thumb). I am not sure we will find it here (in a voluntary supporting forum).
    Now we (or better the architect of their system) should think of the way :-)
    Of course doing so in the forum, while we do know the system and only got a glimpse on what is needed, is not the best idea. I will point some issues which can be related to a solution. Those are not a solotions as it is but something we can use for a solution
    once something look in the right way.
    * A web connects counter is one of the easier thing to do. The basic idea is just to use the connect event and the disconnect event an adding 1 or removing 1 from the counter. This is best to do in the application using static variable as any way the second
    the application is down the counter can be go to hell as we know there is no one connect (there for a counter do not use database usually). Using a web dot-net (or asp 3) application this is done most of the time using the global.asa/global.asax file, which
    include the application and session events. for example using the method Session_Start
    protected void Session_Start(object sender, EventArgs e) {
    // Code that runs when a new session is started
    * IIS have a build-in loging system where we can log each and every request/response or only logins users. There is lot we can do with this log files including data mining. Using small bulk insert script we can use the SQL agent to insert those logs to the
    database and get the information we need.
    * any web developer i want to believe know about the Fiddler application which we use to monitor traffic. A proxy is not the only way to to monitor traffic (it is not good for our case as this is in the client side), there are several option in the server
    side.
    * SQL trigger on logon can be use to get information on who is loging on and can be logging only specific source (like our sharepoint IP or any sharepoint application). This information (what is the application which connect to the server can be retrive
    in several solution without using a trigger as well)
    *** (I'll be brief ... I'm getting bored... probably the reader feel the same)
    * using extended events and/or profiler we can monitor any connection and save the data or just remember it in shared (static) variable (this
    blog show how to do it by the way). Again we can monitor specific application or use any filter in order to get only the sharepoint users
    .... and i can continue for several days more :-) ...
    "If there is a willing, then there's a way"
    "If you can't do it, Then someone else probably can"
    "Never say never"
    I hope this help somehow :-)
    [Personal Site] [Blog] [Facebook]

  • Retrieving data from Microsoft Access using JDBC

    I noticed that when i tried retrieving data from Microsoft access using JDBC, I realised that it was throwing SQLException when the column names were two word with spaces between them, e.g. Date Birth. But after i removed the space from the column names, my SQL queries were retrieving data. Was it because of the space in between the column names of the table?

    Yeah, as far as I know having two word column names isn't allowed in SQL. There might be some way to escape it, but generally it's sensible to avoid it.

  • I'm trying to print a multiple page document from my ipad using an Airprint printer. Only the first page is printing, Please help?

    I'm trying to print a multiple page document from my ipad using an AirPrint printer. Only the first page is printing. Please help. The printer works correctly with my desktop and laptop.

    What version of iOS are you using?  Some people were having this problem before, and it was fixed when they updated to iOS 5.

  • Access, execute mof from pull server using release management

    I have created a DSC pull server and deployed a mof to this server.
    I could access the mof from pull server using below script and it executed successfully from powershell ISE.
        1. 
    Configuration
    C_Pull_Webserver
        2. 
        3. 
    LocalConfigurationManager
        4. 
        5. 
    AllowModuleOverwrite=$true;
        6. 
    ConfigurationID
    = "db00cf80-cb0e-4537-8344-90e3906e0b34";       
        7. 
    RefreshMode
    = "Pull";
        8. 
    DownloadManagerName
    = "WebDownloadManager";  
        9. 
    RefreshFrequencyMins
    = 15;
        10.
    ConfigurationModeFrequencyMins
    = 30;
        11.
    ConfigurationMode
    = "ApplyAndAutoCorrect";
        12.
    DownloadManagerCustomData
    = @{
        13.
    ServerUrl
    = "http://myserver:8080/PSDSCPullServer/PSDSCPullServer.svc";
        14.
    AllowUnsecureConnection
    = "TRUE" }          
        15.
        16.
        17.
    #Create MOF to push
        18.
    C_Pull_Webserver
        19.
    #push the MOF: this will engage pull mode
        20.
    $FilePath
    = (Get-Location
    -PSProvider FileSystem).Path
    + "\C_Pull_Webserver"
        21.
    Set-DscLocalConfigurationManager
    -ComputerName "CHN-AERO-VM13"
    -Path $FilePath
    -Verbose
    I removed the below lines from the above script
    19.
    #push the MOF: this will engage pull mode
    20.
    $FilePath
    = (Get-Location
    -PSProvider FileSystem).Path
    + "\C_Pull_Webserver"
    21.
    Set-DscLocalConfigurationManager
    -ComputerName "CHN-AERO-VM13"
    -Path $FilePath
    -Verbose
    andand tried  to access it from release management and i get the below error
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> Microsoft.TeamFoundation.Release.Common.Helpers.OperationFailedException:
    Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
    Failed to apply configuration in the DSC script to the computer. Consult the Logs below for details of the error.
    System.Management.Automation.RemoteException: Unable to find the mof file. Make sure you are generating the MOF in the DSC script in the current directory.
       at System.Management.Automation.PowerShell.CoreInvokeRemoteHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
       at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)

    Don't know. How did you generate the MOF?
    When I run this it works just fine:
    Configuration C_Pull_Webserver{
    LocalConfigurationManager{
    AllowModuleOverwrite=$true;
    ConfigurationID = "db00cf80-cb0e-4537-8344-90e3906e0b34";
    RefreshMode = "Pull";
    DownloadManagerName = "WebDownloadManager";
    RefreshFrequencyMins = 15;
    ConfigurationModeFrequencyMins = 30;
    ConfigurationMode = "ApplyAndAutoCorrect";
    DownloadManagerCustomData = @{
    ServerUrl = "http://myserver:8080/PSDSCPullServer/PSDSCPullServer.svc";
    AllowUnsecureConnection = "TRUE"
    C_Pull_Webserver
    ¯\_(ツ)_/¯

Maybe you are looking for

  • How to find first day of the year

    Big picture: trying to determine how many pay periods are left in the year. There are 52 weeks in a year, and our company pay out each week. The first pay week of the year always starts on a Friday. So If Janurary 1 is a friday, then the 1st week of

  • Why use System Reflection Assembly

    I am just starting to learn forms in Powershell and noticed that in almost every example the follow code is put at the top of the example: [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") [void] [System.Reflection.Assembly]:

  • ESS / MSS Configuration - Pre-requisites

    Hi, We are planning to implement portal functions like ESS, MSS, e-recruitment and other features present in EHP 7 (ECC 6.0) during up gradation. In this regard, I would like to know what are the system prerequisites that needs to be taken care of fo

  • Converting document files of more than 100 Mb?

    Is it true that you cannot convert document files with more than 100 Mb to PDFs because of that limit on Adobe CreatePDF? Is there a way of solving this problem e.g. document files with 285 Mb?

  • Pdf loads as a gray window in XP

    I'm using Safari 5.0.3 on a work computer running Windows XP service pack 3 and Adobe Reader X 10.0.0. When I access a pdf nothing appears in the browser but a gray window. I've tried uninstalling and reinstalling Adobe Reader but the problem persist