Version Document Info Record and File Management

Hi all!
want to edit DMS document info records (as in cv04n - add, del files) without deleting original DIR -> Version management of DIRs.
I use the following BAPI scenario:
- BAPI_DOCUMENT_GETACTVERSION (get the highest version of a DIR)
- BAPI_DOCUMENT_GETDETAIL2 (to get the object links of the DIR)
- BAPI_DOCUMENT_CREATENEWVRS2 (create a new version of the DIR, copyoriginals = X, object links are copied as well)
- again BAPI_DOCUMENT_GETACTVERSION (get this new version number)
- again BAPI_DOCUMENT_GETDETAIL2 to get the files of the new version DIR)
- to delete single files, i change the file record of the files table ( set deletevalue = X).
- then BAPI_DOCUMENT_CHANGE2  as suggested in a nother thread of mine by 2 community members.
the latest step runs for version = 00, but when having a version gt 00, the bapi_document_change2 returns : "original is already checked in and stored".
also i checked the ph_objid and lo_objid (the ids are the same for Version n and n+1), which might be the reason for the error mentioned above.
i can't find any solution.
thanks for replies in advance,
Christoph

Hi all!
got the solution: - finally !!!
Problem:
you want to edit Document info records - using a new version of this DIR. in the new version it is possible to add and delete files.
Solution:
- CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'
and get the actual hightest version of the DIR
- ls_objtype-OBJECTTYPE = '*'.
append ls_objtype to myobjectlinks. to be able to copy all the objectlinks of the DIR.
- lv_dokvr_new = lv_dokvr_ref + 1. - increment the DIR version number
- CALL FUNCTION 'BAPI_DOCUMENT_CREATENEWVRS2 to create a new version of the DIR.
- * get again the actual version
CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'
- * get files of the new version
CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
- * set the delete flag for those you want to delete in the table documentfiles.
- CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
IMPORTANT ***
!!! transfer O N L Y the files you want to delete O R transfer all files but C L E A R the STORAGE_CATEGORY field !!!
any questions? feel free to ask...

Similar Messages

  • Linking document info record and purchase order

    Hi all,
    I hope that someone can help me because I'm having a problem with creating links between document info records and purchase orders.
    By default in SAP I can create links between document info record and purchase order ITEMS! When I create that link, I can see it in document info record under Object links tab, but when I double click on the number of purchase order nothing happens (I expected that this purchase order will open).
    Why is that so?
    Why can't I access purchase order from document info record even though the link exists?
    The other question is about creating object links to purchase orders, not purchase order items! Is it possible to link document info record with purchase order?
    I would appreciate quick answer because we're in the middle of a project and we're stuck with that problem.
    Thanks!

    Hi Karlo,
             As you mentioned, object links could be linked to Purchase order items. In customisation you maintain these entries under the node SPRO > Cross Application Components> Document Management--> Control Data --> Define Document Types --> Define Object Links.
    There are many links in the standard system (possible entries).
    The system automatically determines the screen number (dialog box) where the key data for the object is maintained for document maintenance.
    You can check the screens when the screen entry is missing or contains errors by doing the following:
    Start the Object Navigator and display the objects for the development class  CV.
    Expand the function group 130. The structure nodescreens lista all screens that can be used for object links.
    You can make an object link to SAP objects that are not shown in the possible entries list. To do this, proceed as follows:
    In the standard system, there are already two special screens for the module pools SAPLCV130 and SAPLCV140 for the linked SAP object.
    You must create two new screens with the same number for the module pools SAPLCV130 and SAPLCV140 .
    The processing logic must follow that of screen 1204 in program SAPLVC130.
    Create function module OBJECT_CHECK_XXXX (XXXX = object name)
    If the object can be classified, this function module already exists .
    Otherwise copy the function module for linking equipment DOCUMENT_CHECK_EQUI and change it as required for the new object.
    Hope the above instruction helps in solving your problem,
    Sojan
    Note : Award points if you find the information useful

  • Document Info Record and Archivelink

    Dear all,
    Can any expert help to distinguish Document Info Record (e.g. CV04N) and Archivelink (e.g. OAER)?
    When should we use these two document management systems?
    We're now using ArchiveLink but we it is hard for us to search for specific document since there're no business custom attributes or characteristics to describe the document. Can we add custom attributes to ArchiveLink document?
    Document Info Record support characteristics seem can solve the problem. But how do we upload the document by using BAPI rather than attach it manually by CV01N.

    Hi Karlo,
             As you mentioned, object links could be linked to Purchase order items. In customisation you maintain these entries under the node SPRO > Cross Application Components> Document Management--> Control Data --> Define Document Types --> Define Object Links.
    There are many links in the standard system (possible entries).
    The system automatically determines the screen number (dialog box) where the key data for the object is maintained for document maintenance.
    You can check the screens when the screen entry is missing or contains errors by doing the following:
    Start the Object Navigator and display the objects for the development class  CV.
    Expand the function group 130. The structure nodescreens lista all screens that can be used for object links.
    You can make an object link to SAP objects that are not shown in the possible entries list. To do this, proceed as follows:
    In the standard system, there are already two special screens for the module pools SAPLCV130 and SAPLCV140 for the linked SAP object.
    You must create two new screens with the same number for the module pools SAPLCV130 and SAPLCV140 .
    The processing logic must follow that of screen 1204 in program SAPLVC130.
    Create function module OBJECT_CHECK_XXXX (XXXX = object name)
    If the object can be classified, this function module already exists .
    Otherwise copy the function module for linking equipment DOCUMENT_CHECK_EQUI and change it as required for the new object.
    Hope the above instruction helps in solving your problem,
    Sojan
    Note : Award points if you find the information useful

  • ECR/ECO and Document Info Record creation

    Hi,
    I’m trying to find out if it’s possible to automatically create an document info record and attach the document info record to the ECR/ECO (in background  through “Accompanying docs) when I create a new ECR/ECO through transaction CC31 or when I save the ECR/ECO.
    Do anyone now if this is possible, if yes can you please also answer the User Exit and BADI to use.
    Thanks

    Hi,
    Try following it may be useful for your requirement.
    1. EXIT_SAPMC29C_006   --    Include program ‘ZXCCAU06’
    2.EXIT_SAPMC29C_005   --     Include program ‘ZXCCAU05’
    Enjoy SAP……
    Don’t forget to give points if its useful ans.
    Namskar,
    Ketan Dave

  • File is missing in Document Info Record

    Hi,
    we are facing a serious Problem. A File that should be on one of our Document Info Records (DIR) is missing. The Change History shows a checkout and Checkin as last action for this file. There was no deletion activity.
    The File can be still found in our FileBased ContentServer but as it is compressed (due to Content-Server compression) it can not be read.
    Now i have two questions about that:
    1. What might be happened that this file is no more attached on DIR without doing any deletion operation?
    2. What can we do to reattach the compressed File that is in ContentServer?
    Thanks a lot!

    Hi,
    as the file should be checked in to a content server repository please test the report DMS_KPRO_READ. Here you can enter the document info record data and the result will show you all assigned original files. Further there is a small green download button which should enable you to download the file to your PC.
    Best regards,
    Christoph

  • Web Service to Create a Document Info Record with attachments (e.g. PDF)

    Hello guys,
    we are looking forward to create a Web Service that should be able to create a Document Info Record on SAP ERP Application Server. As we don't have installed the SAP Standard Web Services on our SAP ERP ECC 6.0 system we will manually create a Web Service with the help of the standard BAPI_DOCUMENT_CREATE2.
    The current problem is that the Web Service based on the Standard BAPI can not upload Files (PDF or Word files) from the Users Client PC to the Application Server.
    Is there a possibility to Create a Web Service that can handle files and create DIRs on application server?
    Thanks a lot!!
    Regards,
    Christian

    Hello Natallia,
    Well, in this case you don't really need the CV01N transaction. This represents the user interface (UI), and you only need an interface (that is, an API), which in SAP is represented by a BAPI
    I'm not familiar with CRM, but I assume that at some point when saving a Service Contract, you have a BAdI, where you can check the status and insert some custom code.
    So, all you have to do is call BAPI_DOCUMENT_CREATE or BAPI_DOCUMENT_CREATE2 (if available on your installed version), with the required attributes (this can be master data, classification, custom data...). After this function is called successfully, you should receive the document key (DOKAR, DOKNR, DOKVR, and DOKTL). Which you can also save in the Attachments tab.
    Hope this helps,
    Tudor

  • Variable number of document info record parameters

    Hi guys,
    I have a question about adding additional information to document info record.
    The situation is following:
    Our customer wants us to link original purchase order (PDF file) with it's document info record in SAP. The document itself is stored in another document management system and we have succeeded in linking this object with it's document info record in SAP.
    He also wants to have some description data stored in document info record (date, description, name, etc). One odd requirement is copying information about cost centers and costs per each cost center from fields in document management system to some fields in document info record.
    The problem is that each purchase order can have various number of cost centers and costs per each cost center!
    So, is there any possibility to define some fields in document info record to which I can store variable number of parameters (for example in one case 3 fields, and maybe in another case 1 field)?
    Any kind of information will be valuable for me!
    Thanks for help!

    Hi,
    But my next question is how can I know how much cost centers will be for some document? If I need to define number of cost centers in advance, then this solution is not very flexible. The best solution would be if I could add values to classification flexibly (for example: one time 3 values and the other time 1 value).
    :-Check box additional values in values tab of char. that will allow to enter flexible number of values any time
    The other question is about values of parameters. For each cost center I need to enter two values (cost center number, and costs for that cost center). So, for each cost center I need to add 2 values. Is that possible using classification?
    :-Create classification with chara. cost center, cost center value and check box additional values as above that will allow you to add values for cost center and cost center value.
    Anirudh.

  • Document Info Record

    Hi All,
    A PDF file is attached to SAP Document Info Record. While opening that PDF file through CV03N getting a messege like -
    "Error while executing C:\DOCUME~1\.................."
    What can be the reason for this & how it can be soleved?
    Regards
    MHP

    Hi Manish,
    You need to define application type in DC30.
    Kindly put suffix as .pdf and mime type as "application/pdf". This will activate the application pdf in the sap dms.
    if you found problem with other files do same and fill mime types properly. Aslo tick the start authorization field in same screeen.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • To find whether the attachment exists for DIR ( Document Info Record )

    Sir
    We are using DMS to link the Documents pertians to Project .
    Documents are  having the Drawing PDF attachments .
    How to track whether there is attachment exists or Not ?
    ( We have chakced the DRAW & DRAD but no attachment related infomation is observed )
    Pl help
    Regards

    Dear Ashish
    Table                                                                    Description
    DRAD                                                                   Link between document and object
    DRAO                                                                    Originals for documents
    DRAOZ                                                                 Additional files for original for document
    DRAP                                                                     Document log file
    DRAT                                                                     Document descriptions
    DRAW                                                                   Document info record
    DRAZ                                                                     Table for additional files for original
    All the detail store in above mentioned tables...
    so find out your solution with the Help of ABAPer 
    Regards
    Tushar Dave

  • Cisco Unified WFO - Call Recording and Quality Management with Extension Mobility agents

    Hi All,
    We're considering Cisco Unified WFO - Call Recording and Quality Management for a customer running UCCX 8.0, agents on multiple WAN sites, all agents using extension mobility.
    The documentation I've been able to find describes three different recording methods:
    Using Desktop Recording service (Endpoint) to record from an agent’s desktop.
    Server Recording - Uses SPAN (not so good for remote sites)
    Network Recording - Uses CUCM recording service / SIP trunk / phone's built in bridge.
    Network recording or Desktop recording should be suitable for the customer but it seems that Extension mobility is not supported.  Extension Mobility is not mentioned in the 8.5 installation guide, it is mentioned as ‘not supported’ in the 8.0 guide as follows:
    'Server Recording and Network Recording have the following limitations:
    • Extension mobility is not supported.'
    Neither version's documentation specifically mention extension mobility in relation to the desktop recording method, though I realise this is a similar approach to the 'server recording' method.
    So the question I have is:  Is extension mobility supported in any way on version 8.0, or version 8.5 for recording?  And if so which recording method(s) are supported?
    Thanks,
    Jonathan

    Hi,
    I had more luck asking questions over at the Calabrio forum - they make the software and Cisco re-brand a version of it - there is some good info on their portal (http://portal.calabrio.com), you have to register but it's fairly painless.  The answer I got was:
    "QM Desktop recording has always supported extention mobility as it determines the recorded user by the desktop user's login. Extention mobility was not supported for Server and Network recording until the Calabrio QM 8.6.2 release in April 2011 and will be added to Cisco QM starting with QM 8.5.2 in June 2011"
    Regards,
    Jonathan

  • Differences between info records and conditions

    In pricing of purchasing, I have found using both info records and conditions. Also in the menu path <b><i>Logistics->Material Management->Purchasing->Master data</i></b> have both 'Info record' and 'condition' menu folder.
    I want to know the differences between info record and condition and where to use them respectively. Anyone can help me?
    Thanks a lot!
    --Alex

    Hi ,
    Condition enables you to store pricing stipulations agreed with the vendor (such as applicable discounts or surcharges, or stipulations regarding the payment of freight costs) in the system. You can enter these conditions in quotations, outline purchase agreements, and info records. You also have the option of entering general conditions at vendor level, for example. The system then applies the conditions in determining the price in purchase orders (POs). You can enter further conditions in the PO itself.
    Simply put - Info-record is a type of condition record.
    Purpose of Condition Records for S&D
    Condition records allow you to store and retrieve pricing data in the system. All the pricing elements of your daily business - the prices, discounts, and surcharges for freight and taxes - that you want to use for automatic pricing must be stored in the system as condition records. You can define as many condition records as you want for the different pricing elements for any validity period.
    You create condition records for all the pricing elements that the system takes into account during automatic pricing. During document processing, the system transfers data from the condition records and determines the amounts for individual pricing elements (prices, discounts and surcharges) and the final amount for the sales document.
    For MM and S&D related condition information refer to the following URL :
    http://help.sap.com/saphelp_47x200/helpdata/en/75/ee0b3655c811d189900000e8322d00/frameset.htm and
    http://help.sap.com/saphelp_47x200/helpdata/en/f0/b5d468077c11d3ad020000e8a5bd28/frameset.htm

  • FM or BAPI for creating purchase info records and purchase conditions

    Hi all,
    i need create purchase info records and purchase conditions from txt-file,
    What FM or BAPI i can used for this?
    Thanks and Regards,
    Andrei

    You can use trasaction SXDA_TOOLS.....
    object type BUS3003
    program type BINP
    program/method RM06IBI0
    but the fields must be sequentially written in the txt, with every space inclusive....

  • SQVI - Material to Document Info Record

    I am trying to create a query that gives me
    Material Number <b>(I tried MARA and MARC but MARA wont join and MARC produces no data when ran)</b>Document Type (DRAW-DOKAR)
    Document Number (DRAW-DOKNR)
    Document Status (TDWST-STABK)
    Once I have these I can create a report that shows me all materials that are not at a release status. I know 90% of the tables I need but when I create a join using the Document Info Record (DRAW) and any of the material master records MARA, MARC, MAKT, MEBW I end up with a join that doesn't work or a join that doesn't have a similar key to run.
    Any ideas?

    When you go into MM03 and look at any material and then go to the additional
    data tab and then select document data that gives you the documents associated with a part. If you then double click on any document that gives you the document status.
    I am trying to create a report that gives me all open production orders - the parts on that production order (which I can do) and then for every part to see which have documents that are on a certain status.
    Example you may be creating an assembly and the drawing on the document went from a 2 hole gidget to a three hole gidget. Well - production people don't know that the document has been re-issued and is being reviewed. This way they can run a report that shows them which parts on the Production Order are currently in review so they should not waste time a money on an assembly if the design is being tweaked.
    Because you can get to the document status from the material master there must be a link. I don't know where that is. I tried MARA, MARC, MKPF and MSEG and nothing links with the document. But there must be something that triggers that the document is attached to certain part.
    I just need to know what table that is......

  • Document Info record history, evaluation needed

    Hello
    i have attached a document 4711  to a notification A or any other object. I save this document info record. it is available. Now i go into the notification again and delte this allocation.
    Now the someone wants to know which documents have been attached to the notification at whhat point in time ?
    Is there any evaluation existing which pases this information in a efficient way. The issue is that I only know the Object it has been allocated to and not the DMS object.
    Any idea how to solve this?
    Stephan Bantlin

    Hi Stephan,
    from DMS point of view I can only recommend you to use the 'Display Changes' functions for a document info record in menu "Environment". This will show all the changes for the selected document info record. The report behind this functionality is called MCDOKABL.
    The same functionality is also available in object transactions like MM03 for example.
    Best regards,
    Christoph

  • Document Info Record Visiable in Quality Notification

    Greetings All,
    I am trying to set a Document info Record in the material master such that when a quality notification is created; the DIR will appear in the Supporting Documents tab/Linked documents (Quality Notification).  The DIR should be material specific such that when a QN is generated; the linked document field is auto populated.
    Your attention into this matter is greatly appreciated.
    Many Thx,
    jaime

    Hi,
    In context with DMS when we create DIR it can have object links. In ur context Object links are material code and the Quality Notification.
    When u create DIR using CV01N and assign Material code in  object link tab the same can be viewed thru material master ---> additional data -
    > document data
    If you assign Quality notification number in Object link tab , the link will get created with Quality Notification which can be viewed in subject tab of Q Notification.
    Regards,
    Nitin

Maybe you are looking for

  • Can't install or uninstall the latest version of iTunes

    Everytime I go to install the latest version of iTunes I get through most of it, then a window comes up that says "Windows Installer" - "The feature you are trying to use is on a network resource that is unavailable." - "Click OK to try again, or ent

  • Usb adapter for tethering

    i have a android phone and i would like to tether to a ipad with pdanet.do they make a usb adapter for the i pad so i can tether with a cable to my phone?

  • BAPI's for Transaction Manager: Is there any BAPI for Stock Options

    Hi gurus, We are using almost every BAPI for Transaction Manager module at FSCM-Treasury & Risk Management (ECC 6.0). We have forex swaps, forex forwards, forex spot deals, interest rate swaps, cross currency swaps, equity swaps, and we also have a s

  • Trying to update OBP getting unrecognized magic number in media label

    Two questions both relating to my trying to update my OBP: 1. when I typebanner I get ... AXi (UltraSPARC-IIi), PS/2 keyboard OpenBoot 3.10.12 SME... but when I type .version I get OBP 3.10.12 My question is which OBP update to use, AXi OBP 3.10.13 o

  • Can't hear menu effect (click sounds) through Optical cable

    After connecting my Apple TV to my receiver through Optical I've noticed that I can no longer hear the Apple TV's menu sounds (click sounds) anymore unless I scroll through a menu real fast. Is there anyway to fix this?