Reg. Document mangement system

Hi all,
I have created a new document using the CV01N transaction.Now I need to print the contents of the document in a ABAP report.
Can any one tell me whether there is any Function module or BAPI to get the contents of the attached document in CV01N.
Thanks.

Hi Dude,
Check out BAPI - "<b>BAPI_DOCUMENT_GETDETAIL2</b>"
Regards,
Manish Joshi

Similar Messages

  • Not able to upload file in DMS(Document Mang. system) using Web dynpro ABAP

    Hi All,
    I am facing a problem while uploading the file into the DMS ( Document Management System ) from Webdnrpo .
    I am using the BAPI - BAPI_DOCUMENT_CREATE2 to create the document .
    CASE - 1
    when i am providing the storage category mention below and no data carrier1
    ls_documentfiles-storagecategory = 'ZHMEL_CS'.  it is not able to upload the document in the DMS system and when i check
    in the debugg mode it giving error as  ""Error while checking in and storing: C:\TEST.TXT "" .
    CASE - 2
    When i am not using the storage category and providing the the data carrier as default
    ls_documentdata-DATACARRIER1 = 'DEFAULT'. It is able to create the document in the DMS but i am not able to read that document .
    I checked with DMS Consultant that DMS is configured for  ZOL ( documenttype) with a storage category  as 'ZHMEL_CS'.
    The code which i have used is below :
    ls_documentdata-documenttype = 'ZOL'.
    ls_documentdata-documentversion = '00'.
    ls_documentdata-documentpart = '000'.
    ls_documentdata-description = 'Test Document'.
    ls_documentdata-laboratory = '001'.
    ls_documentdata-WSAPPLICATION1 = 'TXT'.
    ls_documentdata-DOCFILE1 = 'C:\TEST.TXT'.
    ls_documentdata-SAVEDOCFILE1 = 'C:\TEST.TXT'.
    *ls_documentdata-FILESIZE1 = 000000000000.
    *ls_documentdata-FILESIZE2 = 000000000000.
    ls_documentdata-WSAPPLICATION1 = 'TXT'.
    ls_documentfiles-DOCUMENTTYPE = 'ZOL'.
    ls_documentfiles-DOCUMENTPART = '000'.
    ls_documentfiles-DOCUMENTVERSION = '00'.
    ls_documentfiles-storagecategory = 'ZHMEL_CS'.
    ls_documentfiles-WSAPPLICATION = 'TXT'.
    ls_documentfiles-DOCPATH = 'C:\'.""lv_filename.
    ls_documentfiles-DOCFILE = 'TEST.TXT'."lv_filename.
    ls_documentfiles-description = 'Test Document'.
    ls_documentfiles-language = 'EN'.
    ls_documentfiles-CHECKEDIN = 'X'.
    APPEND ls_documentfiles to lt_documentfiles .
    *&----Fill Descriptions
    w_descr-language = 'EN'.
    w_descr-language_iso = 'EN'.
    w_descr-description = 'Test'.
    append w_descr to lt_descr.
    clear w_descr.
    **w_hostname = 'HMEL-DV1R3_DR3_00'.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
    EXPORTING
    documentdata = ls_documentdata
    *hostname = 'content-srv'
    *pf_http_dest = 'SAPHTTPA'
    *pf_ftp_dest  = 'SAPFTPA'
    IMPORTING
    DOCUMENTNUMBER = lv_DOCUMENTNUMBER
    return = gv_return
    TABLES
    documentdescriptions       = lt_descr
    documentfiles              = lt_documentfiles.
    Please let me know your valuable inputs on the same ..
    Edited by: Omm Awasthi on Dec 30, 2010 12:22 AM
    Edited by: Omm Awasthi on Dec 30, 2010 12:25 AM

    Hi omm , from functional side your require a document type and content repository
    I have used below code in a function module to create document , we have create object link as PO to the doc.
    FUNCTION ZFM_SR_CREATE_FROM_EXTERNAL .
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(IV_DOCUMENTNUMBER) TYPE  DOKNR OPTIONAL
    *"     VALUE(IV_DOCUMENTTYPE) TYPE  DOKAR OPTIONAL
    *"     VALUE(IV_DOCUMENTVERSION) TYPE  DOKVR OPTIONAL
    *"     VALUE(IV_DOCUMENTPART) TYPE  DOKTL_D OPTIONAL
    *"     VALUE(IV_STORAGE_CAT) TYPE  CV_STORAGE_CAT OPTIONAL
    *"     VALUE(IV_DOKST) TYPE  DOKST OPTIONAL
    *"     VALUE(IT_DM_FILES) TYPE  ZDM_TT_FILES OPTIONAL
    *"     VALUE(IV_EBELN) TYPE  EBELN
    *"  EXPORTING
    *"     VALUE(EV_DOCUMENTNUMBER) TYPE  DOKNR
    *"     VALUE(ES_RETURN) TYPE  BAPIRET2
    V00.00  DD.MM.YYYY                                                   *
    *********************New Method of Uploading File*********************************
      CONSTANTS path_name    TYPE dms_path
               VALUE '/tmp/'.
      CONSTANTS log TYPE dms_path VALUE '/tmp/logFO.txt'.
      DATA: ls_draw TYPE bapi_doc_draw2,
            lt_documentfiles TYPE TABLE OF bapi_doc_files2,
            ls_documentfiles TYPE bapi_doc_files2,
            ls_dm_files TYPE zdm_files,
            lv_filename TYPE string,
            lv_ext TYPE string,
            lv_file_type TYPE draw-dappl,
            lv_file_name TYPE dms_path,
            lv_msg(80) TYPE c,
            lt_objectlinks TYPE TABLE OF bapi_doc_drad,
            ls_objectlinks TYPE bapi_doc_drad,
            lv_ebelp   TYPE ebelp
    Prepare Data
      MOVE iv_documentnumber TO ls_draw-documentnumber.
      MOVE iv_documenttype TO ls_draw-documenttype.
      MOVE iv_documentversion TO ls_draw-documentversion.
      MOVE iv_documentpart TO ls_draw-documentpart.
      ls_draw-statusextern = iv_dokst.
      ls_draw-statusintern = iv_dokst.
      ls_draw-username = sy-uname.
      LOOP AT it_dm_files INTO ls_dm_files.
        SPLIT ls_dm_files-filepath AT '.' INTO lv_filename lv_ext.
        CALL FUNCTION 'CV120_DOC_GET_APPL'
          EXPORTING
            pf_file   = ls_dm_files-filepath
          IMPORTING
            pfx_dappl = lv_file_type.
        TRANSLATE lv_file_type TO UPPER CASE.
        OPEN DATASET log FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
        TRANSFER lv_ext TO log.
        ls_documentfiles-wsapplication = lv_file_type.
        TRANSLATE ls_documentfiles-wsapplication TO UPPER CASE.
        CONCATENATE path_name
                           lv_filename
                            lv_ext
                            INTO lv_file_name.
        CONDENSE lv_file_name  NO-GAPS.
        TRANSFER lv_file_name TO log.
        OPEN DATASET lv_file_name FOR OUTPUT IN BINARY MODE MESSAGE lv_msg.
    *Transfer Attachment Content to Application Server
        TRANSFER ls_dm_files-content TO lv_file_name.
        CLOSE DATASET lv_file_name.
        TRANSFER 'move data to lt_files' TO log.
        ls_documentfiles-storagecategory = iv_storage_cat.
        ls_documentfiles-docfile = lv_file_name.
        ls_documentfiles-DOCUMENTVERSION = IV_DOCUMENTVERSION.
        APPEND ls_documentfiles TO lt_documentfiles.
        CLEAR lv_file_name.
        CLOSE DATASET log.
      ENDLOOP.
      IF iv_ebeln IS NOT INITIAL.
        ls_objectlinks-objecttype = 'EKPO'.
        SELECT SINGLE ebelp INTO lv_ebelp FROM ekpo WHERE
                                          ebeln = iv_ebeln
                                          AND loekz eq space.
        CONCATENATE iv_ebeln lv_ebelp INTO ls_objectlinks-objectkey.
        APPEND ls_objectlinks TO lt_objectlinks.
      ENDIF.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
       EXPORTING
         documentdata   = ls_draw
         pf_ftp_dest    = 'SAPFTPA'
         pf_http_dest   = 'SAPHTTPA'
       IMPORTING
         documentnumber = ev_documentnumber
         return         = es_return
       TABLES
         objectlinks          = lt_objectlinks
         documentfiles  = lt_documentfiles.
    DATA:   ls_doc_data  type bapi_doc_draw2,
       ls_doc_datax type bapi_doc_drawx2,
       ls_return type bapiret2.
    Set value for document data
      ls_doc_data-statusextern  = 'IW'.
      ls_doc_data-statusintern  = 'IW'.
    Set value for document data check
    ls_doc_datax-statusextern = 'X'.
    ls_doc_datax-statusintern = 'X'.
    CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
      EXPORTING
        DOCUMENTTYPE               = 'ROS'
        DOCUMENTNUMBER             = IV_DOCUMENTNUMBER
        DOCUMENTPART               = IV_DOCUMENTPART
        DOCUMENTVERSION            = IV_DOCUMENTVERSION
        DOCUMENTDATA               = ls_doc_data
        DOCUMENTDATAX              = ls_doc_datax
      HOSTNAME                   =
      DOCBOMCHANGENUMBER         =
      DOCBOMVALIDFROM            =
      DOCBOMREVISIONLEVEL        =
      SENDCOMPLETEBOM            = ' '
          pf_ftp_dest    = 'SAPFTPA'
          pf_http_dest   = 'SAPHTTPA'
      CAD_MODE                   = ' '
      ACCEPT_EMPTY_BOM           = ' '
    IMPORTING
       RETURN                     =  ls_return
    TABLES
      CHARACTERISTICVALUES       =
      CLASSALLOCATIONS           =
      DOCUMENTDESCRIPTIONS       =
      OBJECTLINKS                =
      DOCUMENTSTRUCTURE          =
       DOCUMENTFILES              = lt_documentfiles.
      LONGTEXTS                  =
      COMPONENTS                 =
      move es_return to ES_RETURN.
      IF es_return-type CA 'EA' ."NE 'E' AND es_return-type NE 'A'.
        "do nothing
      ELSE.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
      ENDIF.
      LOOP AT lt_documentfiles INTO ls_documentfiles.
        DELETE DATASET ls_documentfiles-docfile.
      ENDLOOP.
    ENDFUNCTION.

  • Document Mangement system(Document type settings )

    Helllo friends,
    Hello I want to create a document type with all possible settings in one system
    and i want to trasfer these document type with seeting to other system...
    How can I transfer document type with other possible seetings from one system to other system?
    Please Help me
    Thanks in Advacne
    Preethi

    Hi
    SAP DMS - Document Management System
    SAP DMS are for storing documents such as CAD drawings, Materials pictures etc.
    With the document management system, users will be able to view the documents with ease within their SAP systems.
    Installing the SAP DMS requires a little bit of planning on how you want to do it.
    You have to give a little thoughts to stuff such as :-
    1.  The total numbers of documents that will be store monthly.
    2.  The average file size of each documents.
    3.  The capacity of your present R/3 system.
    4.  Your present network bandwidth.
    5.   Document Archiving Strategy.
    6.   Backup and Recovery Plan.
    Additional purchasing of hardware are required, especially if you have large amount of documents to stored.
    With this in mind, you can then decide on how you want to do it.
    You can do this in a few ways :-
    1.  Import the documents into the R/3 system.
    2.  Use an external document server.
    3.  Have a dedicated PCs where all the documents are stored.
    Most companies that intend to used DMS will opt for Option 2 as they does not want to overstretch the R/3 database.
    Options 1 requires you to setup the conversion interface. 
    The conversion interface allows R/3 to automatically covert your files and import it into the R/3 database.
    Here is a simple example of storing documents into your PCs, just to have a feel how the SAP DMS works:-
    For those using Citrix, you have to set this at the Citrix Server where the SAPGUI is located.
    Configure SM30 - V_TDWE_C1
    Put this command in your autoexec.bat
    SET HOSTNAME=PC1234
    Restart your pc.
    You can create/manage your documents in transaction code CV01N / CV02N
    Assigning Documents to a Material Master Record
    Access a material master record in Create or Change mode, and select Basic Data. 
    To create links to documents, choose Additional data -> Document data.
    The Link to Documents dialog box appears.
    Assign one or more documents to the material. 
    If you do not know what the document number is, you can search for it using the search help or by choosing Find document.
    When assigning a document to a material, you have the following options:
    1. Viewing the document by choosing it in the Link to Documents dialog box.
    2. Viewing any originals of the document by positioning the cursor on the document and 
       choosing Display originals in the Link to Documents dialog box.
    To return to the Basic Data screen, choose Continue.
    Save your data. 
    Reward points if useful
    Regards
    Anji

  • Reg:document management system

    hi experts,
    i am trying to display images for materials.To achive this i Uploaded my images in CV01(DMS) and assinged to material in MM01 >Basic function>Additional Data-->document data.And i tried to retrive the document using the functional module called BAPI_DOCUMENT_GETDETAIL2.where i have my image path in the field DOCPATH
    i dont know how to proceed further how to make it display ....should i want to convert to URL ? i am stuck up here can any one can help me
    regards,
    karthik

    Its pretty Bad that no one tried to answer ....i think i have posted in wrong area .....
    thats o.k i got the answer from my friends and i like to share with wit you...
    1.Look for the table <b>DRAD,DRAW</b> where you get the path of the image and the document number
    2.fetched the path and displayed the image ...
    thats it..
    any how thx all....

  • Workflow Object ID for Document Mangement System

    Hi Friends,
    We want to Implement Workflow in DMS (Docuemnt Management system). Is there std. workflow for this process or shall we need to create. If there is std. pls. let me know the Workflow task object ID and process.
    Regards,
    Sai Krishna

    Hi Sai,
    Please reach out to your ABAP Workflow consultant to get it configured.
    You can use the Enhancement 'SUSR0001' to code and triger an event/workflow. Then you need to develop the workflow accordingly for send the WI to the logged-in users' inbox.If you wish to work on the same personally, the below FAQ link may come handy:
    http://wiki.sdn.sap.com/wiki/display/HOME/SAPBusinessWorkflow+FAQ
    Regards,
    Pradeepkumar Haragoldavar
    Edited by: Pradeepkumar  Haragoldavar on May 10, 2010 12:37 PM

  • Setting up a Document Mangement System Programme

    I am setting up a DMS on my laptop (using Windows) and the DMS set up screen is asking for the database host and the port how do I find this. please note that I am a novice
    Thanks Alan Briggs

    If you are using Oracle XE as database on your laptop then
    database host is your Windows computer name and
    port number is the Oracle Net listener port number which is 1521 by default.
    I would expect an application to request the ORACLE_SID or the database Oracle Net service name : for Oracle XE it is just XE.

  • Setting up a Document management system in SharePoint 2013

    Hello All,
    I have come across a scenario where Customer needs a Document management system for their organization.
    They want to keep the documents of different departments like sales, HR,Finace in corresponding folders and want to include a workflow for approval of the Documents. Also, Documents related to particular department can be modified or added by users in that
    department.
    I thought of creating a seperate site collection for this purpose & document libraries of each department, setting up the permission on document library level. Is this a correct approach?
    I am new to Enterprise content management system of sharepoint. Can anybody give me a guidance on this how to get started.
    Regards
    Vishnu
    dfd

    Creating separate site collection for each department will help you scale and grow better and easier to group SharePoint sites together.
    Refer to the following articles which will give you an idea about the plan you should do before building a Document management system 
    http://technet.microsoft.com/en-us/library/cc263267.aspx
    http://blogs.msdn.com/b/sgoodyear/archive/2009/07/25/determining-between-sharepoint-site-collections-and-sub-sites.aspx
    http://atinkerersnotebook.com/2013/10/02/creating-your-own-document-management-system-with-sharepoint/
    http://community.dynamics.com/ax/b/tinkerersnotebook/archive/2013/10/02/creating-your-own-document-management-system-with-sharepoint.aspx
    --Cheers

  • How to install EASY DMS (Document Management System) setup in windows 7

    Dear Experts,
    Recently we have started a project to establish document management system in SAP. So, i have downloaded easydms7.1sp04 from the servicemarketplace service.sap.com/swdc and setup is successfully installed in windows Xp and unable to install successfully in windows 7.
    The SAP is upgraded in our company to release ERP6 EHP6.
    In windows Xp the DMS is accessing to all the systems in the landscape( DEV, QAS, PRD).
    But, In windows 7 it is only accessing the production system and if creating manually the systems prompting the error about RFC and hosts in windows 7.

    Hi Sir,
    As mentioned earlier it is prompting me the error
    Logon Failed (RFC_ERROR_LOGON_FAILURE)
    Name or Password is incorrect (repeat logon)
    But it is accessing only the production system in windows 7 but not all the 3 systems which are in landscape. I dont know how can it proceed to logon to the production system only with out other systems .
    Thanks in advance
    Regards,
    Easwar

  • Document Management System in Oracle EBS

    HI All,
    does the EBS offer a document management system where I can store, check in/check out, display... documents with meta data and also original files (like a pdf or word file)?
    If something like this exists, what are the corresponding objects and is there also an API for it (pl/sql or even better, web service)?
    Many thanks,
    Konrad

    It is possible to store documents/attachments in Oracle EBS database.
    attachment tables
    http://forums.oracle.com/forums/search.jspa?threadID=&q=attachment+tables&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    This does not look a real "Document Management System" with meta data, version control, status handling and all that stuff, right?
    If you are looking for a complete Document Management System, you may consider this product.
    Oracle UCM: Document Management
    http://www.oracle.com/us/products/middleware/content-management/document-mgmt/index.html
    I need to integrate third party software to the EBS in so, other products do not help me. But thx anyway!
    Best,
    Konrad
    >
    Thanks,
    Hussein

  • Document Management System

    i want to write a Document Management System to read the content of the MS Word file and convert it to the PDF file using java.
    Does any java api can do this??
    Thank You

    There are a number of solutions, none of which, unfortunately, are trivial:
    In decreasing scale of difficulty:
    a) Hand-code the entire solution. PDF and MS DOC are both well documented formats.
    I wouldnt recommend you try this.
    b) Use ready-made open source libraries:
    Other than the ones mentioned earlier, there is an Apache Libraray (POI ?) which can be used for reading and writing streamed OLE objects (which is what a word doc is)
    c) Use the Java-Activex bridge and use mature COM/Activex components
    WinWord itself is an Activex component. There are loads of mature Activex components that can spew out PDF.
    d) If platform is not an issue, use C# or VB.NET
    I'll probably get flamed for this.
    I am not a .NET advocate usually, but in this particular case you should be able to complete your task with least effort by using mature Activex libraries and one of the .NET languages.

  • Document  Management System(DMS)

    Dear Expert,
    We need to store the Employee revision letters( in PDF format) in DMS. Letters are currently in HTML format which we will convert them in to PDF format & store the same thru Document Magement System (DMS).
    I would like to know,
    1. How can we use DMS to store the letters in PDF format?
    2. Where can I find DMS configuration part in SPRO?
    3. I understand that DMS is a unique concept availabe in SAP HR. So how can I link DMS to HCM?
    4. Is SAP Archive link related to DMS ?
    5. Any documents/links related to this kinldy send it across.
    Thanks in Advnace,
    Regards,
    Damodar Pai.

    hi
    try with this
    SAP DMS - Document Management System
    SAP DMS are for storing documents such as CAD drawings, Materials pictures etc.
    With the document management system, users will be able to view the documents with ease within their SAP systems.
    Installing the SAP DMS requires a little bit of planning on how you want to do it.
    You have to give a little thoughts to stuff such as :-
    1.  The total numbers of documents that will be store monthly.
    2.  The average file size of each documents.
    3.  The capacity of your present R/3 system.
    4.  Your present network bandwidth.
    5.   Document Archiving Strategy.
    6.   Backup and Recovery Plan.
    Additional purchasing of hardware are required, especially if you have large amount of documents to stored.
    With this in mind, you can then decide on how you want to do it.
    You can do this in a few ways :-
    1.  Import the documents into the R/3 system.
    2.  Use an external document server.
    3.  Have a dedicated PCs where all the documents are stored.
    Most companies that intend to used DMS will opt for Option 2 as they does not want to overstretch the R/3 database.
    Options 1 requires you to setup the conversion interface. 
    The conversion interface allows R/3 to automatically covert your files and import it into the R/3 database.
    Here is a simple example of storing documents into your PCs, just to have a feel how the SAP DMS works:-
    For those using Citrix, you have to set this at the Citrix Server where the SAPGUI is located.
    Configure SM30 - V_TDWE_C1
    Put this command in your autoexec.bat
    SET HOSTNAME=PC1234
    Restart your pc.
    You can create/manage your documents in transaction code CV01N / CV02N
    Assigning Documents to a Material Master Record
    Access a material master record in Create or Change mode, and select Basic Data. 
    To create links to documents, choose Additional data -> Document data.
    The Link to Documents dialog box appears.
    Assign one or more documents to the material. 
    If you do not know what the document number is, you can search for it using the search help or by choosing Find document.
    When assigning a document to a material, you have the following options:
    1. Viewing the document by choosing it in the Link to Documents dialog box.
    2. Viewing any originals of the document by positioning the cursor on the document and 
       choosing Display originals in the Link to Documents dialog box.
    To return to the Basic Data screen, choose Continue.
    Save your data. 
    all the best
    madhu

  • Document Management system(DMS) and PDM webclinet????

    Hello.....
    I am working on Document management system(CV01 and cv02)......
    The requirements are.....
    1) I have crated a Document Info record(CV01) and attached originals(Drawing,diagrams) to the document in SAP system.
    If user reqest to open a original in SAP then it should connect to PDM WEB client and it should fetch the original from PDM server for viewing and editing the original.
    How can I implemet this scenario...Should i wrire code in ABAP or Any advaced technology(BSP or PORTAL) should i sue....
    Please let me know??
    Thanks and regards
    Preethi....

    Hello.....
    I am working on Document management system(CV01 and cv02)......
    The requirements are.....
    1) I have crated a Document Info record(CV01) and attached originals(Drawing,diagrams) to the document in SAP system.
    If user reqest to open a original in SAP then it should connect to PDM WEB client and it should fetch the original from PDM server for viewing and editing the original.
    How can I implemet this scenario...Should i wrire code in ABAP or Any advaced technology(BSP or PORTAL) should i sue....
    Please let me know??
    Thanks and regards
    Preethi....

  • Document management system(DMS) and Webclinet??

    Hello.....
      I am working on Document management system(CV01 and cv02)......
      The requirements are.....
    1)  Originals attached to the Document should be viewed and edited by the user  in the webclient..???please let me know the solutions??
    2) What is the webclient and In which area (abap or bsp or portal) should i code     for   viewing  and editing the original  documents??what will be the solution for this
    ??I am working on 4.7 version
    3) Please let me know some code about this???
    Thanks and Regards
    Preethi....

    Hello.....
      I am working on Document management system(CV01 and cv02)......
      The requirements are.....
    1)  Originals attached to the Document should be viewed and edited by the user  in the webclient..???please let me know the solutions??
    2) What is the webclient and In which area (abap or bsp or portal) should i code     for   viewing  and editing the original  documents??what will be the solution for this
    ??I am working on 4.7 version
    3) Please let me know some code about this???
    Thanks and Regards
    Preethi....

  • How to upload the data to SAP-DMS(Document Management System)

    Dear sir,
    How to upload the data to SAP-DMS (Document Management System) please give me the code for this .ex for (excel format or tab  deliminated) to sap system through BAPI i have to pass.
    regards
    R M Patil

    Hi,
    May be following link may help you.
    /thread/315373 [original link is broken]
    /message/205534#205534 [original link is broken]
    Thanks,
    Sree.

  • Document Management System for Struts Project

    I am doing a J2EE project in struts, in which i need to implement document management system containing the following features :
    1. File Upload/Download
    2. File Sharing
    3. Giving Permissions to Files, etc
    Instead of building a DMS from the scratch I am looking for a open source DMS solution which I can customize as per my needs and implement in my project. Since my project is based on struts, I am looking for a struts based solution.
    Please tell me if there are any good open souce DMS like these.

    hi jitesh,
    now i am doing the same project which you have done with struts framework. please let me know the solutions for the project.
    please reply to my mail id = [email protected]
    thanks.
    nandha.

Maybe you are looking for