Create new version, checkout, checkin workflow not correct via abap

Hey,
I wrote an abap programm with the following workflow:
- I create a new version of the document CVAPI_DOC_CREATE_NEW_VERSION
- I check out the new version with CVAPI_DOC_CHECKOUTMODIFY
- I check in the file with the new content CVAPI_DOC_CHECKIN
And now there are 2 files in DMS with the same version. But there should be only one document with version 01.
The method CREATE_NEW_VERSION creates an dms document. But also the CVAPI_DOC_CHECKIN method creates an document in dms. But the checkin method should override the new version.
Thanks for your support.
BR,
Christoph

Hi Christoph,
unfortunately it is very hard to suggest a detailed solution for your individual program. Personally I would recommend you to
use the following sequence:
- I create a new version of the document CVAPI_DOC_CREATE_NEW_VERSION
- BAPI_DOCUMENT_GETDETAIL2 to read out the current document data
- I check out the new version with CVAPI_DOC_CHECKOUTMODIFY
- BAPI_DOCUMENT_GETDETAIL2 to read out the current document data
- I check in the file with the new content API_DOCUMENT_MAINTAIN2 or BAPI_DOCUMENT_CHANGE2.
If you enter the storage category in the table DOCUMENTFILES of the mentioned function modules the file should be
checked in again. For further information on the DMS BAPI behavior please see the attached documentation to SAP note 766277.
Best regards,
Christoph

Similar Messages

  • Had to delete iTunes for computer repair. Downloaded new version 10. Would not open -Message: "iTunes Library.itl cannot be read because it was created by a newer version of iTunes"

    After getting message below iTunes will not open- just disappears off screen.
    Had to delete iTunes for computer repair. Downloaded new version 10. Would not open -Message: "iTunes Library.itl cannot be read because it was created by a newer version of iTunes"

    Unless you've recently attempted to downgrade iTunes this is probably a sign of a corrupt library file. See Empty/corrupt library after upgrade/crash.
    tt2

  • System should not creates new version when value of PO increased..

    Hi Experts,
    Need your help to solve this problem. When i increase value of PO it should retrigger Release strategy but it creates version first, then i have to tick completion indicator and check then only release strategy retriggers..
    It should not create new version when change po
    Please check below screenshot
    Please help

    Hi
    Please reveiw the following points in note
       - 493900 FAQ: Release Strategy
          4.  Why is the release strategy not determined?
         "If you use version management, the determination of the release
          strategy starts when the version is completed.
          You complete a version by setting the "version completed"
          indicator in the version tab."
       - 662993 Resetting an already occurred release
         You edit a purchasing document with release strategy.
         You change the quantity or the price. In spite of that, the
         already set release is not reset.
    The release strategy works the same with or without version management
    active - the only difference in case - version management is active -
    is that if release is to be reset, it will be reset only on version
    I hope this helsp to clarify this issue
    Kind regards,
    Lorraine

  • Aperture creating new version of image for each adjustment applied!

    To anyone out there who can sort this one out, I will be forever grateful!
    Here's the problem. I'll be jamming away in Aperture, adjusting photos like a madman. After adjusting a random number of photos (it usually varies between 5-30 photos or so after starting Aperture each time), the adjustments panel will no longer update when I click on a new image (i.e. it holds the info from the last image I adjusted and will continue to apply new adjustments to that last image even if another image is highlighted). If I switch to the metadata panel and then back to adjustments it will refresh itself and recognize the currently selected image (although I have to do this for EACH image I want to adjust once it starts acting up like this). The BIG problem is that even if I get the adjustments panel to recognize the selected image at this point, for EACH adjustment I apply it makes a new version of the image. For example, if I first change the contrast, it will make Version 2 of the image and select it (which is what it's supposed to do for the first adjustment, because I have "create new versions when making adjustments" checked in my preferences), but if I then make another adjustment like changing the saturation, it makes Version 3 of the image (from the master, so that only the saturation adjustment is applied and not the contrast adjustment). As you can imagine, this utterly destroys my once incredibly efficient Aperture workflow and makes it pretty much impossible to use Aperture for adjustments unless I turn off "create new versions when making adjustments" in the preferences, at which point it does seem to work again (although I've only tried it on a few images, so not 100% sure it will work properly even then). If I restart Aperture (or my computer), it will work normally again for a few pictures and then will start acting up again with the same problem.
    Originally I was running into this problem on my PowerBook G4, and so I figured it was just because Aperture didn't like my wussy G4 processor and was acting up when the load got too heavy (after all, the adjustments would work fine for up to 30 images or so). However I recently purchased a sexy iMac 24" 2.8 GHz and maxed out the RAM to 4GB, but I'm still getting the same darned problem with Aperture on my iMac. Yes, I'm using the same library of photos I was using on my PowerBook G4.
    This problem has been plaguing me for about 3 months now (everything else in Aperture works fine so I'm still using it to import and organize my photos, I just haven't been able to make adjustments on large groups of pictures for a while), and I've searched and searched these forums countless times to see if anyone has run into similar problems, but I've not seen a single mention of it. I've also tried EVERYTHING mentioned for similar problems (rebuilding library, vacuuming database, erasing com.apple.aperture.plist preference file, repairing permissions, reinstalling Aperture, making burnt offerings to Steve Jobs), and NOTHING is working. ARRGH!!
    For those who might have some words of wisdom to offer this delighted-***-miserably frustrated Aperture user, here are a few more details about my setup:
    I have a library of about 37,000 photos, the vast majority of them being RAW .CRW files from a Canon 10D. The 25GB library file is stored on my internal hard drive, and all photos are referenced from an external LaCie 500GB FireWire 400 hard drive. I have a LOT of export plug-ins installed in Aperture, but no image adjustment plugins. I have generated previews turned off for all projects. I've had the same problem on both my PowerBook G4 and new iMac 24" 2.8 GHz. One other thing worth mentioning is that instead of upgrading from 2.1 (which was already giving me this problem) to 2.1.2, I downloaded the full version of 2.1.2 and installed it. I noticed that my 2.1 Aperture.app file was less than 100MB, whereas the 2.1.2 Aperture.app file is over 300MB. Don't know if that's normal or not.
    The only other thing I can think of to try at this point is to load a new library into Aperture and import a large group of pictures and make adjustments to them to potentially see if my problem is being caused by Aperture or by the library. Will probably try that tomorrow.
    I would appreciate any advice or feedback anyone can offer about this nasty little problem, as it's giving me a serious hormonal imbalance.
    THANKS!

    Thanks for the reply RB, but my current workflow depends on me creating new versions when I make adjustments. I suppose as a temporary solution I will probably have to either turn this preference off or just be willing to constantly restart Aperture. At least I finally found another thread with the same problem, so finally I don't feel completely alone in the far reaches of the Aperture universe. For anyone who is interested, here is the link to that thread:
    http://discussions.apple.com/thread.jspa?messageID=8555067
    It appears this problem is closely related to the ubiquitous black viewer problem that seems to be plaguing far more users than my issue (although I've run into the black viewer problem a few times myself), as both problems force Aperture to output the following message to Console:
    Main Thread Exception in Aperture: * -NSCFArray objectAtIndex:: index (1) beyond bounds (1)
    It seems that both of these problems existed in Aperture 1 and 1.5 up until the 1.5.6 upgrade which seems to have fixed it, but then with Aperture 2 the problem seems to have returned. At least that's the gist of what I've been reading on a number of threads. Whatever the case, I hope Apple gets this sorted out in their next update!
    As it appears there is no proper answer to this problem at the moment, I'm gonna go ahead and mark this thread answered (and since you were kind enough to at least take the time to reply RB, you can be credited with the answer... thanks!).

  • Aperture creating new versions unexpectedly

    One of my projects in Aperture started behaving unexpectedly yesterday and I still haven't figured out why. I was reviewing proofs with a client and we were making selections and adjustments to some of the images. We were working in a smart album that was filtered on 5-star ratings. We made a few new versions of some of these images within the smart album, made adjustments, and ultimately selected her picks by adding the keyword "pick" to her selected images. In retrospect I probably will change that flow so that when I make my original selects I will rate them as a 4-star and then up it to a 5-star when the client makes their picks.
    But for now, back to the problem. All was going well with the workflow until I tried to rearrange some of the images within the smart album. When I dragged the first image to a new location it created new versions of several images. I think this happened multiple times before I realized what had happened, so before I new it the album was filled with duplicate versions. I deleted the duplicate versions, but I find that they keep cropping up unexpectedly. If I go to the parent project and then return to the smart album, it makes a duplicate version of every image in the album.
    A light table and a book within the project are now also giving me trouble in that they claim to have images in them, but even with all queries turned off they do not show any of the images (and yes, the "show all images" button is selected).
    Any thoughts on what could be wrong?
    G5   Mac OS X (10.4.3)  

    Mmm...I don't think this explanation tells the whole story.
    Dragging an image out of the project container and into an enclosed (non-smart) album does NOT automatically generate a new version of the master image local to that album; instead, the album is populated with a new reference to the original version. Dragging that same image again out of the project container - or the first album - to yet another album generates yet another reference to the same underlying version.
    Edits performed in any of these containers propagate to the images in all containers (within a particular project, of course), demonstrating that each type of container holds merely a reference to the project's single original version.
    The Aperture User Manual is a bit ambiguous in its description (Chapter 5 pg 113) of the distinction between "copying" and "moving" images between projects and albums; I believe that when it refers to copying versions it's really talking about copying REFERENCES to versions between various containers.
    So, long story short, I don't think moving images between the various types of containers within a single project can explain your duplicated images.
    15" Alu PB 1.25GHZ G4 FW800 1GB RAM 100GB HDD   Mac OS X (10.4.6)   Aperture 1.1.1

  • Preference to "Create New Versions when making adjustments"

    Isnt the option in Preferences "create new version when making adjustments" seem irrelevant when Ap doesnt touch the original (master) anyway? How is this option intended to be used? Most of the imags for me would be slight tweeks so I wouldnt necessarily want every one of those showing as a 'full new version'.

    yeh, that would seem logical wouldn't it - to create a new version for each session... but that's not what happens.
    i mostly use the HUD and don't close between adjustments but i do sometimes use the side panel which i also don't hide/close between adjustments. i can't remember whether making adjustments via the side panel creates new versions for every adjustment, certainly this behaviour happens when i use the HUD and i'm fairly sure i would have tried the side panel to avoid this annoying behaviour but i can't say for sure and will have to test the side panel behaviour next week if i get time.
    even with the preference for 'create new versions' turned off, there seem to be certain images that always create a new version when i make an adjustment - whether using the HUD or side panel. I haven't figured out an exact pattern to this but it seems to be something to do with those files that have been 'sent to external editor'. subsequent adjustments within aperture always create a new version - haven't a clue why...
    just as an aside, sometimes when i make adjustments (particularly sharpening or noise reduction) i get single pixel wide horizontal lines of noise appearing across my images, which are there when i print or export too, not just screen artifacts due to a badly processed preview...hmmm...anyone else noticed this or has found a post about ways to avoid this?
    all that said, aperture is a godsend for my workflow
    MacBook 2.0 White   Mac OS X (10.4.8)  

  • Problem in creating new versions for existing DIR using CV01N

    I am working in SAP ERP 6.0 EHP 4.0 system.
    I have problem in creating new versions for existing DIR using CV01N
    I create a DIR version 00 with functional location and mpd cycles. Then when i try to create a new version by copying the contents created from already created document.I change the MPD cycles in the new version and save it.
    once when i display the first document created the mpdcycle specified in version 01 is copied to the 00 version.
    The document is inconsistent where versioning of document doesnot work properly wrt MPDCYCLE and MP HEADER.
    The problem which i found was the document identification guid remains the same for all the document versions getting created.
    The same is working fine in SAP ERP6.0 EHP3.0 sytem.
    Please someone help me in resolving the above issue.
    Regards,
    Prasad.B

    There is a change in the standard code.The reason for the above problem was  because of a missing Enhancemnet point in a standard function module 'CV110_DOC_CREATE_WITH_TEMPLATE'.
    IS-ADEC-MPD  - Enhancement to copy MPD data
    ENHANCEMENT-POINT CV110_DOC_CREATE_WTEMPL_01 SPOTS ES_SAPLCV110.
    +*$*$-Start: CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    +**ENHANCEMENT 1  ZSF_AD_MPD_SAPLCV110.    "active version**+
    +*** copy MPD relevant data from templ. doc to current doc**+
      +**CALL FUNCTION 'MPD02_COPY_MPD_DATA'**+
        +**EXPORTING**+
          +**is_draw = ls_draw**+
        +**TABLES**+
          +**ct_drad = lt_drad.**+
    +*ENDENHANCEMENT.**$*$-End:   CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    Created a custom enhancement point similar to SAP ECC6.0 EHP 3.0 system.
    The reason was the buffer was not getting cleared previously.After inserting the above code the DIR's are getting created withot any issues.
    Regards,
    Prasad.B

  • Create New Version causes duplicate entries

    After using "Create New Version > Create iPod or iPhone Version", the two versions (Original and Low-Res) appear as seperate entries in my iTunes library.
    I'm sure that it is possible to have them both display as a single title (like the HD and SD versions of iTunes downloads do), but I cannot remember how to do it?
    This will tidy up my library, and allow me to use the Low-Res version on my iPod and the Original version on my AppleTV. 

    vonSchlapper wrote:
    After using "Create New Version > Create iPod or iPhone Version", the two versions (Original and Low-Res) appear as seperate entries in my iTunes library.
    Yes, this is expected behavior.
    vonSchlapper wrote:
    I'm sure that it is possible to have them both display as a single title (like the HD and SD versions of iTunes downloads do), but I cannot remember how to do it?
    This will tidy up my library, and allow me to use the Low-Res version on my iPod and the Original version on my AppleTV. 
    If you are talking about a video, and the video is both Standard Definition, as far as I know what you want is not possible, although I haven't tried it. HD and SD videos purchased from the iTunes Store have a unique 9 digit code embedded in the tags that allows iTunes to show them as one entry in the iTunes library. If the same thing were done for two versions of an SD video how would you differentiate them to sync the low-res copy to the iOS device? As far as I know it wouldn't be possible.

  • Most options in itunes "create new version" greyed

    itunes only gives me the option to create an apple lossless  version when i select a song in my playlists or general music section to create a new version.
    This doesn't make sense as most of my music was uploaded using applelossless.  The average song size  is 35 mb for a 5 min. song. This doesnt seem to me to be a compressed song/file.
    The other options "create ipod or iiphone version" and create ipad/tv version are greyed out.  Why?
    I do need the create iphone version .  How to do this and what happened to create MP3 version as an option here?
    thanks

    LIkewise, I have a mac mini belonging to a client and I told him to compress ( "create a new version" of his video library) he said all items greyed out. I collected it Friday , sure enough all  his m4v with drm and his mp4 ( without DRM) will not allow him access to create a new version. I dragged one his films into my account. Authorised the account and it plays etc, the create new version option is there for my whole library bar this film. I am tempted to strip out the DRM but I dont know if it will resolve. I would love to hear from Apple !!!!! or someone older/ younger but wiser what may be the issue.
    Regards
    PC

  • New version of itunes does not install

    The new version of Itunes does not install on my computer. I have run all of the service steps from the knowledge base and there has been no change. I am running win 7 64 bit on an alienware m17x. can I get some help? I have my dxdiag if it will help.
    The last version of itunes (what I believe to be the first 64 bit one) , the textures were not always correct but it still functioned. This new one doesn't even install and as a troubleshooting thing I unistalled itunes and quickime as well as clearing the temp files and running the instaler with no 3rd party programs on startup, so now I have no itunes. Any help you could give would be greatly appreciated.

    Hmm, no response, I guess this must be too hard a problem to solve
    Is this because XP is not officially supported any more??
    People who have problems installing on Vista seem to get a response!!
    I think that I will just keep the version of itunes that I currently have installed as, judging by the people on this forum who have problems with the new version, I am probably better off not upgrading anyway.

  • I want to install the latest version of i tunes. I recieve an error that the MSI file is missing. It won't load the new version and I can not delete the software either. HELP!

    I have a windows computer running xp. I can not load the latest version of I tunes. I receive an error message that the 'msi" file can not be found. I can not delete I tunes for the same reason.
    HELP

    ItIt is the the ituens msi file
    From: Apple Support Communities Updates
    [email protected]
    Sent: Monday, February 27, 2012 3:40 PM
    To: escow 39
    Subject: - Re: I want to install the latest version of
    i tunes. I recieve an error that the MSI file is missing. It won't load the
    new version and I can not delete the software either. HELP!
      <http://images.apple.com/support/images/emails/apple_logo_gray.gif>
    <https://discussions.apple.com/index.jspa> Apple Support Communities
    Re: I want to install the latest version of i tunes. I recieve an error that
    the MSI file is missing. It won't load the new version and I can not delete
    the software either. HELP!
    created by b noir <https://discussions.apple.com/people/b+noir>  in iTunes
    for Windows - View the full discussion
    <https://discussions.apple.com/message/17708214?ac_cid=142432#17708214

  • Create new versions when making adjustments?

    Hi,
    What does anyone suggest this setting should be set to? It's on the Advanced Tab in Preferences.
    I think it was un checked when I installed the Trial Version.
    The help file stated the following:-
    +Create new versions when making adjustments” checkbox: Select this checkbox to have Aperture automatically create a new version when you adjust a selected image. The adjustment is applied to the original version and the new one is left untouched.+
    So when I edit an image the the software makes a copy and the original is altered? What happens if it's left un checked?
    Any help on the whole editing thing would be gratefully received.

    This is just a way to automatically create a new version when you make an adjustment. The new version is stacked with an unaltered version, allowing you to quickly see them side by side. What you have to remember is that the *original file is never altered*. This is all virtual. What is called original in this case is in fact an original version, not the actual file. The actual file is called the Master. Very important to understand the distinction.
    I personally leave this off. I never use RAW files without adjustments so there's no point in keeping an unaltered version around, plus it tends to quickly multiply versions and just creates clutter. If I want to see the original file I just hit M (this is the default command key for Show Master). Hit M again and I'm back to my version. If I've created a version and want to do a new different looking one starting from scratch, I can select New Version From Master: presto a new "original"!
    If I've worked on a picture and want to create a BW version, chances are I want to keep the work I've already done as a starting point. In that case I select Duplicate Version and do my BW on the new version. Again, I'm never actually duplicating files and I'm never actually altering pixels, original or otherwise. This is all a set of xml instructions that Aperture applies when it displays the files.
    Helping?
    Message was edited by: Jade Leary

  • Why can't I create new version in iTunes 11?

    I have iTunes 11.0.2.26.
    I just bought two HD movies from the iTunes store.  I have a 160 GB iPod Classic, and I want to upload the movies to my iPod.  I know you ahve to go to File>Create New Version>Create iPod or iPhone Version, but those options are grayed out on my computer.  I have already done this once with iTunes 10 and a different movie, but now iTunes will not let me do it.  Does anybody know why and what I need to do to be able to convert this?  Thanks in advance.

    Found the answer at the link below.  This is the dumbest process, but at least you can redownlad your movies in SD in order to sync them on your phone or iPod.  Hope this helps someone else...
    http://support.apple.com/kb/ts4223

  • What does "file create new version" do

    What does the menu selection File --> Create new Version do?
    How are the selections activated (not greyed out)?
    Create iPod or iPhone Version
    Create iPad or Apple TV Version
    Create AAC Version
    Any ideas? There no mention in the tutorial.

    The first two options are for converting video into resolutions compatible with the device.
    The third one is to create new versions of audio files, The type of conversion is controlled in Preferences.
    Click on the import settings and choose the encoder and quality. the create version then may change to create mp3 version etc
    The encoders are
    AAC Encoder
    AIFF Encoder
    MP3 Encoder
    WAV Encoder

  • I am trying to create mp3 version of itune songs.  I have gone through the preference sequence to be mp3 encoder but this is not having any effect.  I have also tired from file tab to create a version but this is not available to action

    I am trying to create mp3 version of itune songs.  I have gone through the preference sequence to be mp3 encoder but this is not having any effect.  I have also tired from file tab to create a version but this is not available to action showing as lite grey.
    Any help would be appreciated

    I am trying to create mp3 version of itune songs.  I have gone through the preference sequence to be mp3 encoder but this is not having any effect.  I have also tired from file tab to create a version but this is not available to action showing as lite grey.
    Any help would be appreciated

Maybe you are looking for