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

Similar Messages

  • 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

  • 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

  • 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

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

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

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

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

  • 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

  • Attachments from CRM in DMS content server

    Hello,
    I have configured a DMS content server to save the attachments from CRM. but can not get the store in the content, as I can do? Attachments I keep it via web from the interlocutor.
    I touched the table SDOKPHCL and the value  BDS_POC1 and I have put the value of content, but still keep it to or at the base's own CRM.
    I need to configure?
    Thank you.

    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 chart means that you are storing away in a content server.
    I've gotten crm annexes 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 AOCRS 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 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.

  • DMS Content server / Master guide

    Hi Friends,
    I try to search info on details for DMS Content server. I found only content server. Is there any differnce for DMS Content server.
    I want to understand the sizing / planning  / DB usage for DMS purpose.
    Can I get any where DMS Master Guide for finding all above details.
    We are using the SAP data base only for storing the documents. I will be selecting KPro for doc. types.
    Does we need to create Content table. How to do that ?
    I know very little in basis activities. If u can give the details I will discuss with ABAP & Basis persons to sort out.
    Regards,
    Sai Krishna

    Hi,
    Thanx for the info.
    We are using the SAP data base only for storing the documents. I will be selecting KPro for doc. types. In this case I don't require any content server.
    I have gone thru the PDF of SAP Content Server for Windows Installation Guide and noted down the following info:
    1. caluclation methodology and compression for each type of document (say doc / PDF etc). and noted
    2. Increase in data over perticular period
    3. on an average how many users accessing documents at a perticular time.
    I have done the following settings Maintain Storage System in OAC0.
    Content Rep. : DMS_C1
    Document area- DMS Document management system
    Storage type - 03 SAP system data base
    Rep. Sub type - Normal
    Version no : 0045
    Contents table: DMS_CONT1_CD1
    Physical Basic Path - E:\usr\sap\IDS\SYS\global\
    Shall I know what is the use of Physical path. What should be given correctly. More over I am trying to create ne wone it is greyed out (display mode)
    ThenI assigned Storage system to Storage Category in OACT in the following way :
    Document Area : DMS
    Content Rep. : DMS_C1
    DMS_CONT1_CD1 Table already created. When I see the table
    PH_CLASS ; SDOKPHCL (SDOK: Physical information object classe)
    Is it all required from bais side or server side.  All places I found  info regd. HTTP Content Server only. For that reason I want to confirm.
    Or else pls. let me know where can I get the required info.
    Regards,
    Sai Krishna

  • SRM and SAP DMS Content server integration.

    Hi Sap Gurus,
    We are having a requirement to maintain the External documents (relating to Shopping Cart and POs) of SRM in the DMS content server,
    is this possible? if so what is the methord that should be used to connect SRM and DMS Content server.
    please eloborate.
    also we would love to make use of DMS funtionality for maintaining documents in SRM, which i tought is not at all possible as we could not run any of the DMS Transaction in SRM like CV01N /2 /3/ 4, is there any way to integrate DMS and SRM.
    Points Awaiting for usefull answers.
    Thanks and Kind Regards
    Priya S

    Hi Priya,
    If i understand your question correctly you want to transfer documents which are attached at the shopping cart level in SRM to flow in to ECC at PR or PO level? If that the case following steps require to have documents flow into ECC.
    SRM Side:
    Implement BADI BBP_CREATE_BE_RQ_NEW (If you are on classic scenario i.e. Shopping cart to PR creation) or BBP_CREATE_BE_PO_NEW (For extended classic) with following code:
    cs_ctrl_att-BE_DOC_TYPE = 'SRM'.
    cs_ctrl_att-BE_storage_cat = 'DMS_C1_ST'.
    cs_ctrl_att-TRANSFER_ACTIVE = 'X'.
    ECC Side:
    -Create new document type for SRM with T.code DC10. Following parameters need to be set for that
    a.     Check Use KPro
    b.     Check Version Assignment
    c.     Check Change Docs
    d.     Assign Internal number range as u201C02u201D and external number range as u201C01u201D
    e.     Select Number Exit u201CMCDOKZNRu201D
    f.     Version number increment u201C1u201D
    g.     File Size u201C10000000u201D
    -     Assign following Object links to the new created document type u201CSRMu201D.
    a.     Type as u201CSRMu201D
    b.     Object as u201CEBANu201D and u201CEKPOu201D respectively
    c.     Object description as u201CPurchase req. itemu201D and u201CPurchase order itemu201D respectively
    d.     Screen number u201C247u201D for EBAN and u201C248u201D for EKPO.
    - Request basis to verify DC30 transaction code that all the necessary document type are allowed to x'fer (i.e. .doc, .xls , .jpg etc)
    With this setting we were able to successfully transfer document from SRM side to ECC side.
    Thanks
    Ritesh

  • 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 Access data from SAP Content Server through SAP Portal

    Hi Experts,
    I want to aceess the data from SAP Content server through portal. Currently I am working on LSO business package. The SAP content server should work like Webdav as we uses KM as webdav.
    I am trying to use this URL into the CMS address but it is not working
    http://XXX-XXX-XXXX:1090/ConTentServer/ContentServer.dll?adminContRep&operation=docIdList&contRep=ZADGAS_LSO
    Is there any other procedure for acceesing the DATA  from SAP content server. ?
    Thanks,
    Ahmad

    If your Content Server is being used by DMS, then you can use the DMS Connector for KM.  This connector allows all documents stored in DMS to be accessed in Portal as if they are stored in KM.  For more info see this:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/42/d289b446076bb2e10000000a1553f6/frameset.htm
    Andrew

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

  • Attach doc from external content server- using Generic Object Service (GOS)

    Dear All,
    i have intergrated an external content server to SAP using SAP archive link. All the scanned document are there in Content server and corresponding entries are done in SAP.I can search and view document using tcode : OAAD
    Please tell me steps for "how to attach a document from external content server using Generic Object Service "
    Scenario is :  For example when we change any Master records or create a new PO, or do some financial transaction then i need to attach the supporting document which is there in my content server connected  to SAP.how do we manual attach a Document in SAP using GOS.
    Do we need to do some special configuration to use GOS .please give the steps from initial.
    Thanks
    sandeep

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • Thunderbird stopped downloading emails from the web server and now when I try to add a new account I get a message to say it cannot find the email server.

    Thunderbird was working and then for no reason it stopped downloading emails from the web server. I can access my emails in the web server okay. I have tried to remove my account and then add it again as a new account but I get a message saying that Thunderbird cannot find the email server. I have also tried to uninstall and reinstall Thunderbird but with the same result. I have also tried to remove the default mail server but have been unable to do so. How can I fix this?

    I figured out a workaround.... Since I can get e-mails to populate via iSync and my other computer is running Leopard (it's a powerpc chip and can't run Snow Leopard), I added the account on the other computer and got the new account to populate into my SL machine with iSync. I don't like that I can't actually add the account directly, but at least this got me working.

Maybe you are looking for

  • Missing keys

    I have a 2.66Gz, core duo, 24in iMac.  4 gig mem, OS X 10.7.4.  It has always had this problem, even through the upgrades: Some keys don't work at all.  The Caps Lock, End, Home keys don't work.  Tried another keyboard and had the same problem.  Did

  • Uploading photos from Aperture to Flickr

    I created an album using the "Share Flickr" option in Aperture, which is now showing that it's syncing with Flickr. However, I can't locate the album in my Flickr account. This is the first time I've tried using this sharing option. Probably missing

  • Forgotten Sys and System user passwords

    In the case of forgetting the Sys and the System user passwords, is there anyway of logging on with privilages to be able to change these passwords, if not, are there any other solutions? Thanks, Nick

  • Quicktime Error When Reinstalling iTunes

    Hello, I recently had some problems with iTunes on my desktop which required me to reinstall the software. After reinstalling the software and trying to run it, it gave me an error message saying I had to install a later version of Quicktime. I downl

  • Problem with transformations involving excel source or destination

    I am using SQL server 2008 R2.None of the transformations involving excel source or destination is working fine.What can be done?