Download originate file from DMS content server

Hi,
I want to copy a originate file which is attached with a document and save it in one particular location in my pc.

Hi!
For this requirement you can use the report DMS_KPRO_READ in transaction SE38.
With this report the existing original files of a document info records were retreived and you can download them by using th small green download button.
Further you can use the 'copy to' context menu function in transaction CV02N or CV03N. Here please mark an original and in the context menu you will find the 'Copy to' entry which enables you to dowload the file locally to your PC too.
Best regards,
Christoph

Similar Messages

  • Downloading Invoice From DMS content Server.

    Hi All,
    I am New to DMS . We have a business requirement to download sales invoice from DMS server and send the same to printer or save the same to external local drive of user in pdf format.How can we link invoice no with the relevant tables in sap DMS.  Please let me know how can this be achieved.I have searched SDN but could'nt find any relavent link.Please help.

    Hi Frédéric,
    Thanks for the document .Its it very helpfull.I have used the below ARCHIVEOBJECT_GET_BYTES, to retrive the pdf contents but lt_data is returning blank value.
    while debugging i found Sy-SUBRC = 1.
    Which means error_archiv.Also the lw_length and lw_offset has blank values while passing in this function module.Do we need to find the offset and length for the invoice is there any other function module ?
    kindly correct me if i am wrong .
    * Get the Content of the entry in Binary Mode (more simple for PDF)
    CALL FUNCTION 'ARCHIVOBJECT_GET_BYTES'
       EXPORTING
         archiv_id                = ls_connection-archiv_id
         archiv_doc_id            = ls_connection-arc_doc_id
         document_type            = lw_doctype
         length                   = lw_length
         offset                   = lw_offset
       IMPORTING
         binlength                = lw_length
       TABLES
         binarchivobject          = lt_data
       EXCEPTIONS
         error_archiv             = 1
         error_communicationtable = 2
         error_kernel             = 3
         OTHERS                   = 4.
    thanks,
    Prathamesh

  • To featch the documents (.PDF,.DOC etc) from DMS (Content server)

    I want to featch the document like pdf,doc etc through ORACLE databse.The documents are in DMS content server having MAXDB as database

    > I want to featch the document like pdf,doc etc through ORACLE databse.The documents are in DMS content server having MAXDB as database
    Ok, where's the question in this post?
    Anyhow, SAP content server is available on MaxDB only.
    The documents in it are stored in LOB-columns with a content server-internal format.
    To get the stored files back as documents they must be fetched via the content server.
    Once the files are correctly received from the content server you may store them to another database again.
    But there is no direct way to move them from MaxDB content server to Oracle.
    regards,
    Lars

  • FILE -- XI -- DMS CONTENT SERVER

    Hi all,
    Me having a scenario where have to move a file from file server to DMS Content Server.Plese help me out how data can be made to moved into Content server.
    Is there any possibility oyhrt than that...suggest plz
    Srini

    Hello,
    You can use File to File using FTP at the Receiver side
    And also you are handling the File  data,you may use the File content conversion.In Receiveing File communication channel ,select the FTP connection and provide all the Technical details regarding the DMS Content Server .
    follow the links
    Simple file to file
    Have a look at this wiki..
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&
    for FTP
    /people/shabarish.vijayakumar/blog/2006/08/01/along-came-a-file-adapter-mr-ftp-and-rest-of-the-gang
    for FCC
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    <b>********Reward points if found useful</b>

  • How to download a file from a custom server location?

    Hello experts,
    I have the following scenario:
    A BAPI creates an .exe file and stores it in a custom folder in the server where the portal (and my WD application) is running. This happens once a day.
    What I need to do is create a link or button (doesn't matter) so that users can click on it and download this file.
    I already checked the file upload - download tutorial (http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f;jsessionid=%28J2EE3417500%29ID0774236150DB11016171821629714331End?overridelayout=true) however this one considers the file to be downloaded is stored in the src folder of the project, thus it doesn't really help me.
    How can I achieve this? Any suggestions and help will be greatly appreciated.
    Thanks!

    hi Alain,
    Use File API to read data from the file. It will return byte array from the file. Set Byte array to the file resouce context attribute.
    bind this attribute to the filedownload UI element.
    Since you need to read file from the same server where webdynpro application is running, You can give the folder path on the server where the file is located.
    try {
                   File inputFile =
                   new File("C:\\Test\\Test.txt");
                   FileInputStream in = new FileInputStream(inputFile);
                   byte b[] = new byte[ inputFile.length()];
                   in.read(b);
                   in.close();
              } catch (FileNotFoundException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              } catch (IOException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();

  • Upload of pdf file from windows server  in to DMS content server

    dear all,
              kindly help me out in uploading the pdf file in DMS content server from windows server. let me know the steps how to complete this task. its a little bit urgent.
          thanks in Anticipation
              vikram & kiran

    Welcome to SDN
    you can use FM BDS_BUSINESSDOCUMENT_CREATEF to do this
    check this thread
    Re: convert file details
    or this code sample
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3
    Regards
    Raja

  • How to Download a file from web server using servlets

    how do we download a file from Java Web Server connecting to oracle database
    it should start as soon a i click a button in my html browser
    please reply as it is needed to complete my project to submited to the collage

    With SQLJ you can do it.
    When you look at:
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/basic/basic.htm
    or
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.htm
    There are samples for reading LONGRAW / BLOB from Database. If you want use it in servlet you have to pass the result to the responce object, set the correct mime-type and set the response.setContentLength( xx). This is for some PlugIns nessessary (pdf).
    regards Dietmar

  • Print pdf/wdf files from DMS background

    Hi,
    need some guidelines for this topic. i have a requirement to print the pdf or dwf files from DMS server.
    i have write a program to download the files from DMS to local PC, and call method to print the files. However, this is only applicable to foreground.
    is there any way i can do for background?
    please advise.
    thanks in advance.

    Thanks for your reply.
    The file menu doesn't show the print option either. We used to work this way, after installing the 9.0 and Reader X version, this option has disappeared from both the File menu and the right mouse button. For other filetypes, for example Excel the Print option is still available and works properly. Logged in as administrator on the serverconsole, there is no problem. So it seams to be something specific to pdf-formats in a server 2003 environment. The userrights are all set on full control (same as administrator).
    Thanks again

  • How to download a file from server machine to client machine using jsp

    Hi,
    In my application, I have an excel file stored on my server machine. How can I download that excel file on to my client machine using jsp. Is there any other way I can open that file from my machine and save it in my machine using jsp/java?
    Its an emergency for me to do this.
    Can anyone provide me the full code to download a file from server machine as I don't have
    time to browse through various sites.
    thanks in advance,
    Tiijnar

    Please post your code using code tags (click on CODE above the text area, when posting)
    response.setContentType("application/octet-stream");Why octet-stream? Set the correct mime-type.
    String disHeader = "Attachment; Filename=\"filename\"";The filename should just be the file's name. Not the complete path to the file! This will tell anyone where the file is located on the server. It's also inconvenient because by default,the browser will suggest it as the name for the download.
    Your way of writing to the output stream is just plain wrong. See this snippet (picked from [http://balusc.blogspot.com/2007/07/fileservlet.html])
            BufferedInputStream input = null;
            BufferedOutputStream output = null;
            try {
                // Open streams.
                input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
                output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
                // Write file contents to response.
                byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
                int length;
                while ((length = input.read(buffer)) > 0) {
                    output.write(buffer, 0, length);
                // Finalize task.
                output.flush();
            } finally {
                // Gently close streams.
                close(output);
                close(input);
            }

  • How to download a file from server?

    Hi everyone,
    I need to download a file from my server to client machine. I got a sample code from ur forum and I modified it slightly.
    //Snippet of code:
    public void doGet(HttpServletRequest req, HttpServletResponse res)throws
         ServletException, IOException{
    int bytesRead=0;
         int count=0;
         byte[] b1=new byte[1];
         //OutputStream out=res.getOutputStream();
         res.setContentType("application/html");
         //Create an input stream from file URL.
         String fileURL="http://localhost:8080/webapps/upload/upload.html";
         BufferedInputStream bis=null;
         BufferedOutputStream bos=null;
         boolean download=false;
         res.setHeader("Content-disposition", "attachment; filename=upload.html " );
         try{
         URL url=new URL(fileURL);
         URLConnection connection=url.openConnection();
         InputStream in=connection.getInputStream();
         bis=new BufferedInputStream(in);
         FileOutputStream fileout=new FileOutputStream("upload.html");
         bos=new BufferedOutputStream(fileout);
         while(-1 != (bytesRead = bis.read())){
         try{
         bos.write(bytesRead);
         bos.flush();
         }//end of try forwhile loop
         catch(SocketException e){
         setError(e);
         break;
    The code is getting compiled, when I run the appln using the URL,
    http://localhost:8080/upload/servlet/DownloadFile
    it opens a pop up dialog box, asking whether to "open", "save" or "cancel" buttons. When I try to open a file, I'm getting a blank page.
    I'm not getting the contents of the file.
    So pls can anyone tel me wht's wrong in the code or do i need to add few more lines in my code?
    Also pls let me know, how can I download any files of type .doc, html, .txt, .zip, or any type, without mentioning the file type?
    Thanks in advance

    Do not use a FileOutputStream (that will save it locally to the server). Call HttpServletResponse.getOutputStream(), which will send it back to the browser. Also remember to call close() on the stream at the end.
    - Saish

  • Help! Downloading a file from remote Server

    I am currently doing a program for downloading a specified file from the remote server i.e from any website. If the downloading process stops in between due to some problem in the internet connection, then my program needs to start the downloading the file again to the local directory from where it was left.
    My idea is that, getting the size of the remote file initially when the downloading process starts and if the connection is interrupted, i will check the size of the downloaded file in the local directory with the remote file size. If the remote file size is greater than the localfile size, i need to start downloading the file where it was left i.e start downloading the next bit from the remote file.
    Is there any way to get the contents of the remote file from the specified point say 50th byte from a total file size of 100 kb using java?
    which concept to use FtpClient or sockets?
    iam a little bit confused!!!!
    Please help me.
    Thanks in advance.

    For HTTP you can use this function to open the stream with offset:
    InputStream openStream(URL url, long offset) {
        try {
            URLConnection uc = url.openConnection();
            uc.setRequestProperty("Authorization", "Basic " + (new BASE64Encoder()).encode("username:password".getBytes()));
            if (offset != 0 && url.openConnection().getHeaderField(0).toUpperCase().startsWith("HTTP/1.1"))
                uc.setRequestProperty("Range", "bytes=" + offset + "-");
            return new BufferedInputStream(uc.getInputStream());              
        } catch (MalformedURLException mfURLe) {
            System.err.println("Malformed URL in Client Updater. Unable to receive update list: " + mfURLe.getMessage());
        } catch (IOException ioe) {
            System.err.println("Unable to open input stream: " + ioe.getMessage());
        return null;
    }

  • HR Benefit-Claim Attachments from portal & linkage to DMS content server

    Hello DMS Experts,
    Our client is using standard HR functionality for telephone bill claim and attaching scanned bill copy through enterprise portal during creation of claim.
    Due to higher frequency of file upload there is issue that PCL4 cluster size increased upto 600 GB within short time & total available size in 800 GB.
    In the above scenario, client is expecting solution from DMS side to resolve this issue. Clients main concern is to reduce attachment load from ECC server. Could you help me how to arrest this problem through DMS functionality?
    1. I tried to find the solution through Archive linking as there is no standard DMS object link for HR.
    I got following Object type with link TOAHR. ( PREL, PAPL, PBS_NOTIF, CERTIFPAYD, EMPLOYTXDE, GLOBASSIGN, GLOBASSIGN ), but I failed to get object type for Employee No. & Claim No. to link the document through OAAD transaction.
    Do you know the Archive linking object type to link the document to employee no. & claim no. ?
    2. Since default Storage type setting for  HR repository "HR_KW_CONT" is SAP System Data base,  If I create standard HR repository "HR_KW_CONT" (assuming PCL4 cluster attachments stored in this repository) on DMS content server through OACT transaction, can i divert the attachment from SAP data base  to content server?
    3. If you have any other solution to resolve this issue, please guide me.
    I look forward to your response.
    Thank you very much in advance.
    Thanks&Regards,
    Sudhir Rahase

    Hi
    Here can you find more information about how to add more objects to link to
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/b2/c043a66fab11d1949500a0c92f024a/content.htm
    BR/Håkan
    Edited by: Hakan Anderberg on Aug 2, 2011 3:12 PM

  • Very large files checkin to DMS/content server

    Dear experts,
    We have DMS with content server up and running.
    However, there is a problem with very large files (up to 2GB!) - these files cannot be checked in due to extremely long upload times and maybe GUI limitations.
    Does anyone have suggestions how we could get very large files into the content server ? I only want to check them in (either via DMS or directly to the content server) and then get the URL back.
    best regards,
    Johannes

    Hi Johannes,
    unfortunatly there is a limit for files regarding the Content Server which is about 2GB. Please note that such large files will cause very long upload times. If possible I would recommend you to split the files to smaller parts and try to check it in.
    From my point of view it is not recommended to put files directly on the Content Server, because this could lead to inconsistencies on the Content Server.
    Best regards,
    Christoph

  • Downloading a file from App Server to User's Desktop

    Hi All,
    I know that there are many threads on file upload and download :-)
    I have tried to browse through most of them and could not find my solution.
    The requirement is to place a file in the unix app server directory and allow the user to download it using a link, to the user's desktop. In case you think that this has already been answered in an old thread, kindly give me the pointer. Any sample code for doing this, would be great.
    I know how to upload a file from desktop to table/app server. I know how to download a file from a BLOB column in database.
    Thanks,
    Amit

    You would not be able to use file upload or download beans, as they interact with the database and not the filesystem.
    You would need to write a simple file reader routing in plain java.
    Tapash

  • How to download a file from application server to presentation server

    Hi experts,
    I want to download a file from application server to presentaion server, file contaims three fields customer name, customer email id and status..
    help me out i m new into sap.

    Dear Aditya,
    Please check below thread
    http://scn.sap.com/thread/1010164
    it will help you.
    BR
    Atul

Maybe you are looking for

  • The Xperia Z1 is the best mobile device I have owned so far.....but for one annoying flaw.....

    OK, I have owned the Z1 for around 6 months now, and I have LOVED the product...I more or less have no complaints, and its become pretty much my favorite electronic device, except for my gaming PC : D I use it day in day out, listen to the radio, wat

  • Intercompany Transaction Flow Set-up when O/U's are not different

    I am seeking to know if it is possible, using I/M Intercompany Transaction Flow, to use the same O/U for start and end O/U? I can get the record into the system with same O/U's, but am denied nodes and the ability to use Intercompany Relations. My co

  • Message ID Archive Mode

    Hi. I have a requeriment to get the MessageID to add the file name in archive mode. (sender channel) Only I see an option Add Time Stamp but I need the messageID is it posible? Thanks

  • Download error in e mail

    With some e mail addresses it shows a circle as though it is trying. Then I get a message Download errorMessage body could not be downloaded These messages come through fine via Outlook on my laptop and also on my iPad.

  • Can I create a 15fps sequence in FC 6.06?

    I've shot a stop motion video at 15fps but I can't find a way of creating a 15fps sequence to edit it on. All I can find are 24-30 fps. presets. I was thinking of using a 30fps seq. and importing the images with a duration of 2 frames but this will d