Open dataset doesn't lock the file at OS level

Hi,
I have a program, which tries to write a file on application server. Once the file is opened, and while program is writing to the file, if somebody goes at application server and deletes the file, I get a short dump, saying the file doesn't exist.
Why doesn't SAP lock the file at OS level? Why is someone able to delete the file while SAP is processing it? What is to be done to check at OS level, to see if SAP is currently writing?
Thanks,
Juwin

I tried what Kesav and Adrian told. I created 2 programs, 1st to create a file and 2nd to move the file.
1st program: [url]http://www.mediafire.com/?gmrn1zyd0t0
2nd program: [url]http://www.mediafire.com/?di2kzzzemkz
Now, I executed the 1st program. While the 1st program is running, I executed the 2nd program. The Open dataset in the 2nd program always gave me sy-subrc as 0. So, I always got the message as ready to be moved. I tried executing the programs from different SAP user IDs as well. Got the same result. So, it seems, Open dataset, doesn't even lock the file at SAP level. I cannot use Open dataset for output in the second program, because that will erase the contents of the file.
I cannot change the program, to execute a system command, because the file is created from a standard program, and we dont want to touch it.

Similar Messages

  • Possible to overwrite a pdf when in use or open a pdf without holding/locking the file for update

    Possible to overwrite a pdf when in use OR alternative open a pdf without holding/locking the file
    We frequently generate pdf files from our 3D program and would like to know if it's possible to either open a pdf file in a way that it doesn't get locked or hold up so the pdf can be updated even when opened or in use.
    Most programs e.g. ultra edit & notepad will let go the file when you opened and hence the file can be updated or over written even when in use.
    If any guru can help, would be highly appreciated

    Hi Abbas,
    It's not possible to overwrite a pdf when it is already in use by a different program or user. The file then opens up in Read Only mode.
    You can make a copy of the file and then apply those changes later in the original file. That's the only possible solution.
    Regards,
    Rahul

  • HT3775 I am trying to open a .mov file in "Quicktime" and it keeps saying it doesn't support the file.

    I have made a movie in "Final Cut Pro X" saved it as a .mov file and "QuickTime" won't open it. It keeps saying that it doesn't recognize the file. Ironically there is another .mov file right next to it on the flash drive that opens just fine. I do notice that the one it does open looks like a little black box with a 'play' arrow button in it when I run the curser over it, but the one it doesn't open has a 'Quicktime' 'Q' in it.
    I try to eject the flash drive and it says "Final Cut Pro X" is still using it, then it shows me a window that shows 6% progress. I am thinking maybe the movie is still loading. I really don't know.

    Try VLC.

  • Cannot open CS6, it craves JBX-plugin, and my Mac doesn't recognize the file so I can't download

    I wonder why CS6 is not complete when downloaded? Why should I have to download JBX? If needed it should be a part of Indesign. My Mac doesn't have a name of a file to open and download, so now I simply don't have CS6 and can't convert my book to Kindle for sales on Amazon.
    Terribly disappointed!
    /maria

    I am using OS X 10.9.2 and I'm attaching the error message I get. I am
    trying to install InDesign CS6 in order to convert my book to Kindle, but
    Amazon's plug-in only works with InDesign CS6 NOT with InDesign CC.
    I am attaching the Kindle Plugin also.
    2014-05-07 22:19 GMT+02:00 Jeff A Wright <[email protected]>:
        Cannot open CS6, it craves JBX-plugin, and my Mac doesn't recognize
    the file so I can't download  created by Jeff A Wright<https://forums.adobe.com/people/JeffAWright>in *Creative
    Cloud Download & Install* - View the full discussion<https://forums.adobe.com/message/6363126#6363126>

  • How do I keep my installer from trying to update with Photoshop instead of installer? Quark can't update because the installer opens Photoshop which doesn't recognize the file and I'm not given the option to choose anything else.

    How do I keep my installer from trying to update with Photoshop instead of installer? Quark can't update because the installer opens Photoshop which doesn't recognize the file and I'm not given the option to choose anything else.

    1. Sync wasn't intended to be used in that manner. You would be better off carrying around a USB Flash Stick with Portable Firefox for use on "strange" PC's.
    2. You could open the "Library" {Ctrl + Shift + B} and highlight all those bookmarks and then delete them all at once. But that would also delete all the other bookmarks, and it isn't foolproof. All another person would need to do it to '''''restore''''' a bookmark backup file that has your bookmarks. Beyond that, a new Profile could be created and then the current Profile deleted; but that's "messing with" someone else's computer - an action that is worthy of terminating a friendship over, IMO.
    And if that "public" computer was set up properly, Sync should have been disabled.

  • Adobe won't open Firefox 4, says it doesn't recognize the file type. Help?

    After the first try, I updated Adobe to the latest version, but it still doesn't recognize the file type of Firefox 4.0

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • How can I lock the file in use

    Dear All, I transfer the large text file to Solaris 10 server and copy the this file with transfer not success to another path. but I can open the file with end of file. How can I lock the file with transfer not successfully.

    Locking on UNIX is cooperative, not manditory. That means that all applications need to check for the lock explicitly and then not use the file if the lock exists.
    But if something is accessing the file beyond your control, locking isn't going to prevent it.
    If you do control all the access points, then take a look at lockf or flock functions.
    Darren

  • Lightroom open Photoshop CC but not the files

    When in Lightroom and I click on lets say 3 selected photos and want to open them in Photoshop HDR Pro or as layers, it opens CC fine but not the files. Any ideas? It's the same problem in open in CC as layers or Panorama. None of the files open in CC.

    photosbyfry, jonhillenbrand, Many users have reported the same issue and we are working on a fix.
    In the mean while, i would suggest you to follow the suggestions mentioned under the below article and check if that helps.
    Edit In doesn't work in Lightroom 5.5 from Photoshop CC 2014
    Let me know in case you still get the same issue.
    Regards
    ~ Arpit

  • All of a sudden i'm getting this pop up box saying 'could not complete your request.  File is locked. '  Did i mistakenly lock the file by pressing a button without realizing it?

    all of a sudden i'm getting this pop up box saying 'could not complete your request.  File is locked. '  Did i mistakenly lock the file by pressing a button without realizing it?

    >> "NSDArray...[numbers/letters]".
    That's an error from the OS leaking into Photoshop.  It is due to a bug in MacOS 10.10 that occurs in the open and save dialogs (which are controlled by the OS). Apple is aware of this and working on solutions.
    Some people have had luck changing the view in the open/save dialogs to grid view or list view.

  • After years of using iTunes on my G4 suddenly it won't open.  Error message says "The file "iTunes Library" cannot be read because it was created by a newer version of iTunes".  What do I do?s

    After years of using iTunes on my G4 suddenly it won't open.  Error message says "The file "iTunes Library" cannot be read because it was created by a newer version of iTunes".  What do I do?  I have been attempting to move my Library to a newer MacBook Pro.

    The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes".
    Try the following user tip:
    Empty/corrupt iTunes library after upgrade/crash

  • TS1717 While downloading the latest iTunes version, my computer turned off. When I opened iTunes, it says that "The file "iTunes Library.itl"  cannot be read  because it was created by a newer version of iTunes" Help please :(

    While downloading the latest iTunes version, my computer turned off. When I opened iTunes, it says that "The file "iTunes Library.itl"  cannot be read  because it was created by a newer version of iTunes" Help please

    That message is usually a sign that you tried to roll back to an earlier build of iTunes, but occasionally I've seen it connected to a new upgrade. This technique should fix things.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • Cant open itunes due to error "the file itunes library.itl cannot be read becaues it was created by a newer version of itunes."

    Can't open itunes due to error "the file itunes library.itl cannot be read because it was created by a newer version of itunes."

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • I updated my pages app on my ipad and when I tried to open a document it says the file format is invalid. None of my documents are opening pleaser help!

    I updated my pages app on my ipad and when I tried to open a document it says the file format is invalid. None of my documents are opening pleaser help!!!!

    Try this. It worked for me.
    I discovered the same problem.  I had an older version of Pages on my iPad. After updating it to the latest version all my previous documents created in pages for the iPad were rendered unreadable and a message stated that they were an invalid format.  Why for the life of me would a program that was created by Apple and sense updated not be able to read previous versions...well that's a whole other sad story.  Any way I discovered how to fix it but it would require that you had backup your iPad on a computer and not emptied your trash. If this sounds good than here is how you fix it... And it worked for me.
    These steps will enable you to reinstall a previous version of the Pages app so you can be able to read and edit older documents.
    FIRST: if you did backup your iPad using your computer and did not empty your trash, GOTO the trash and look for PAGES 1.4 (or other number) ipa ( that's the file extension) ie PAGES 1.4 ipa.
    SECOND: move that file out of the trash and onto your desktop.  Once you do this, double click on it and a box will come up stating a newer version has been found and do you want to revert back to older version. ANSWER YES. It will than automatically place and overwrite the older version back into the file on iTunes that contains the rest of your backed up apps.
    THIRD: and this is where it is important that your backup would have to have been on your computer. I'm not sure if backup on the cloud will work.  iCloud backup at your own risk And here's why. Before you restore you will need to remove the latest version of Pages off your iPad by doing the usual : holding down the home button until the apps wiggle and remove by pressing on X on app.  Removing off your iPad will also delete all your documents but if you have a previous backup on your computer those documents will be stored safely on itunes and will return.
    FORTH: plug your iPad into your computer and allow it to sync so iTunes will recognize it. Once iTunes is up and you can see that it recognizes your iPad, GOTO "FILE/DEVICES/RESTORE FROM BACKUP."  ******* DO NOT CLICK ON BACKUP***** click on RESTORE FROM BACKUP. This will reinstall all previous settings and documents that were their when you backuped PLUS the older version of Pages that you placed back from the above steps. Let it run through all the setups ( this could take up to 20 minutes...depending on amount of data and photos and apps).
    FIFTH: Once everything is reinstalled a message will popup on your computer stating "to leave iPad plugged in until iTunes recognizes it again" ( it's basically rebooting itself).  Once done (leave iPad plugged in still) GOTO iPad and follow the steps. IMPORTANT:  iPad will ask you if you want to SET IT UP AS A NEW IPAD, BACK UP FROM THE CLOUD or BACK UP FROM ITUNES.....press SET UP AS NEW IPAD. Follow all of the steps required. Once complete GOTO iTunes on computer, look for "IPAD" plus a little arrow ( should be on upper right corner of iTunes window, click on it ( this will safely disconnect your iPad from iTunes) . Now unplug iPad from computer and go to your iPad and look for the older version of Pages. It should be there along with all your old documents ( readable and editable too).
    Hope this helps. Good luck.

  • Hello! I have the Acrobat XI test version installed, got the registration Mail and confirmed it. When i have the program opened and try to convert the file from a pdf to a word and press the convert button, it shows a the message "application failed" (in

    Hello! I have the Acrobat XI test version installed, got the registration Mail and confirmed it. When i have the program opened and try to convert the file from a pdf to a word and press the convert button, it shows a the message "application failed" (in german "Fehler bei der Anmeldung"). I hope have explained the issue on the right way with my bad english. Do you have a solution for it?? Best regards, Marcus Wenk

    yes, you are right. it is the adobe reader via exportPDF. but it should be the acrobat. it was written on the internetpage...

  • TS2326 when I import my ppictures to my PC it wont let me rotate and it says THIS FILE MIGHT BE IN USE OR OPEN IN ANOTHER PROGRAM OR THE FILE OR FOLDER MIGHT BE READ ONLY

    can somebody help me cause i cant rotate my pics its a message came out when i try to do that.its says the file might be in use or open in another program or the file or folder might be read only

    Are you saving the files to a server? Did you email a version of the file and then continue to work on it without closing it?

Maybe you are looking for

  • Should I wipe and reinstall Mavericks... or what would you suggest?

    Hi everyone! So I'd like to ask you for your advice here... I bought my MacBook Air 13" in fall 2013 (I've got the latest model) which came with Mountain Lion. I've been using Mavericks since its roll-out, but I'm very concerned about the quality of

  • Can't install ML, simply reboots to login panel???

    I'm running a year-old iMac (27-inch, Mid 2011, OSX 10.7.5). When I run the Mountain Lion installer, everything appears normal up to the reboot phase. It then proceeds to reboot the machine back to the regular 10.7.5 login panel. The ML installer nev

  • GR from Maintenance Order

    Hi All, Please help in the below issue, there's a spare part material valuated with split valuation as follows: Defected avg price 10/EA Used      avg price 20/EA New       avg price 30/EA From PM module, one EA from defected valuation type issued an

  • Delivery document header text

    Hi Guys, Which table we can find the delivery document header text detatils?, Can any one please suggest. Text object should be VBBK. Thanks in advance.

  • [BPM] Multiple receiving steps

    Hey, found this demo for multiple receive steps. http://help.sap.com/saphelp_nw04s/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm I tried to create a BPM with multiple receive steps, where one step could start the process. The example need