FILE DELETE FROM FOLDER

HI ALL,
I AM USING THIS METHD FOR DELETING THE FILE FROM THE
FOLDER  BUT I DONT KNOW WHAT VALUE SHULD I PASS TO THE RC.
CALL METHOD cl_gui_frontend_services=>file_delete
  EXPORTING
    filename             = 'E:\FOLDER1\TEST1.XLS'
  changing
    rc                   =
THANKS AND REGARDS,
SUGEET.

Hi,
You should declare a local variable of TYPE I and pass it to RC. RC is nothing but a return code set by system upon successful deletion or otherwise of the file that you have specified for filename.
Some thing like the following,
DATA: lv_subrc TYPE i.
CALL METHOD cl_gui_frontend_services=>file_delete
EXPORTING
filename = 'E:FOLDER1TEST1.XLS'
changing
rc = lv_subrc.
IF lv_subrc NE 0.
****Deletion failed..
ENDIF.
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni

Similar Messages

  • How do i recover a file deleted from iCloud on my iPad

    how do i recover a file deleted from iCloud on my iPad? It's a pages document

    check at https://www.icloud.com/ to see if the file is saved there in documents or iCloud drive
    if not check under settings > iCloud > storage > manage storage and see if there is a backup of the iPad from when the document was still saved
    if there is restoring your iPad form that backup may recover it
    Restore your device from an iCloud or iTunes backup - Apple Support
    if there is not then check to see if it is still saved on any other computers or devices to see if it is saved there
    good luck

  • How do i delete perticular type file(*.enc) from folder/File recursively ?

    i know File class and File[ ] of java
    but can u give me code to delete (*.enc) file from folder inside folder. i mean recursively.
    i used :
    if(encFile.isDirectory())
    File []fileList = (new File(encF)).listFiles();
    //File[] fileList2= (new File(encF)).listFiles();
    System.out.println("Your Directory is ="+encF);
    for(int i=0; i < fileList.length; i++)
    //put code here
    if( (fileList.toString().endsWith(".enc")))
    fileList[i].delete();
    System.out.println("encFile:"+fileList[i]+" deleted.");
    if(fileList[i].isDirectory())
    if( (fileList[i].toString().endsWith(".enc")))
    {         fileList[i].delete();
    System.out.println("encFile:"+ fileList[i]+ "deleted");
    System.gc();
    }//for
    }//check dir if

    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=563148
    Next time, search for yourself.

  • To delete perticular file (*.enc) from folder inside folder  n  so On...

    i want to delete file (*.enc) from following structure.
    d:/ test / myfile.enc
    d:/ test / ex / myfile.enc
    d:/ test / ex / eng /myfile.enc
    d:/ test / ex / Anymyfile.enc
    how to delete it from such type of structure only (*.enc) file OK
    reply me
    not who earlier reply me ( he must be shame to answer)

    > not who earlier reply me ( he must be shame to answer)
    What kind of remark is this?
    The one who replied to you, posted a link to a thread similar to your question, there is even some code in that thread how to recursively do what you want to do. In the other thread he told you not to cross-post your question.

  • Files "Deleted from Disk" not deleted

    I was under the impression that this problem related to the appearance of "Ghost" drives (duplicate drives appearing in the LR after I edited a file. The folder duplications are no longer a problem in LR 2.1
    HOWEVER, when I use the option "delete from disk" (vs. remove)these files are not getting deleted from my hard drive. They reappear on the next folder synchronization I run.
    I am either asking for input on how to make deletions stick and/or requesting that Adobe look into this before releasing the release version of 2.1
    Thanks - Kevin
    System info:
    LR 2.1
    Windows Vista Home Premium
    Quad Core PC with 4GB RAM
    1 TB "RAID 5" system drives (4 of them make up the 1 TB)

    Thanks for the suggestions but they didn't work:
    1- Cleared preferences by hitting the various reset to factory buttons. Then closed and restarted LR. Is there another way to do this?
    2- The foloder quantity goes down when I delete and goes back up when I synchronize
    3- File manager shows the same number of files as LR BEFORE I delete and then shows more AFTER I delete. Then, after synchronizing they are back to equal.
    Finally, I tried deleting a file in windows explorer to see its effect. It immediately showed as missing in LR. I synchronized and that file was deleted.
    Any other ideas?

  • Specific Files Deleted from All Time Machine Backups

    Greetings all!
    I hope you may be able to solve my problem here. Today I purchased a new late-2013 iMac 3.2 GHz i5, running OSX 10.9.3. I've had several computers this year and chose not to restore from my many backups, but rather transferred all documents, data, settings, etc. from my latest backup (completed today, which I know had all the original files) via Migration Assistant. Upon completion, I noticed that many of my folders and files were missing! My first response was to simply check my month-long list of backups for those specific folders and they were all missing as well. This came as quite a scare, as I run a design business and this is my main backup. Note: these are not files that would be on the list that Time Machine skips over; they're just my regular files (docs, pics, pdfs, etc.).
    Now, in a few of the backups, in my User folder, there are more folders than others, along with a few seemingly random files (i.e. company A -> contracts -> onlyme.pdf), but the rest of the files are missing! Some backups include the main Music, Pictures, Documents, etc. and some only include a few. I've verified and repaired the disk, but this only made more files vanish from the backups! I have hidden files visible, which also has not helped. Is there something I'm missing? Disk permissions on Disk Utility are greyed out and I don't know of any other options. Can anyone advise? Are these files simply lost forever?
    Thanks in advance!
    Tim

    If repairing the volume caused more files to disappear, then the drive is malfunctioning and must be replaced. That's why one backup is not enough to be safe. You need at least two independent backups on different storage devices.

  • Is there a way to recover files deleted from a time machine backup

    My time machine backup drive was full so I wanted to delete some of the Virtual Machine files created with VMWare Fusion from the time machine backup.  I accidentally deleted them all, instead of just some older ones, so I want to know if there's a way to recover or salvage the files I deleted from time machine.

    If is possible do you have a Time Machine backup, What type of files are missing?

  • Is there a way to recover files deleted from icloud?

    I inadvertently deleted a Pages document from my iPhone and it has disappeared from my iPad and iCloud.  Is there any way to recover it?

    Deleting won't make the files erased permanently.As long as those files are not overwritten by new data, it's highly possible to recover them.Those deleted files is still stored on the hard drive, it's just invisible or inaccessible.And the most effective
    way is to rely on some data recovery programs.
    Try this one called Tenorshare Data Recovery. I also encountered the same trouble before.Finally this program helped me recover the file I accidentally deleted from the recycle bin successfully.
    One tip here:Your files will be recovered into the recycle bin.So you'd better not to delete any other files into the recycle bin.Once the deleted files were overwritten by new deleted files,they are all historys!
    You can get it from:  http://www.any-data-recovery.com/product/index.htm

  • Excel file deletes from Shared location

    While accessing an excel file from a shared location, if the file hangs during opening or saving and if I go to Task Manager and end the EXCEL process, the file gets permanently deleted from its location.
    I have faced this issue multiple times. What should I do to avoid this?

    Hi
    This is the forum to discuss questions about Microsoft Excel develop. For your question is not about Excel develop, I recommend post
    the question to the TechNet forum for Excel
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=excel
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners
    who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thank you for your understanding.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can i find an excel file deleted from the server

    In our office we all have access to the main server. Recently a document that we need was deleted from the server. It's not in the trash. Can and how would we be able to find and recover this deleted document? Specifically I am looking for an excel document, and I already checked the recent docs on excel.
    thanks!

    Have the admin for the server restore the file from the backup

  • All media files lost from folder while editing! Entire movie now gone HELP!

    After a dozen painstaking hours of editing a movie (iMovie 3.0.3) on my iMac G4 with OS 10.2.8, all of my media files mysteriously vanished from the media folder. The trash is empty both in iMovie and in my desktop trash. Files nowhere to be found. They were there one second... the next, gone!
    I was undoing a transition deletion at the time and may have hit command-x instead of command-z or some other crazy key combo. I have no idea how this happened of what happened for that matter. I need these files! Can they be recovered somehow? My available disc space has changed to about 5GB more. I quit out of iMovie hoping to not save these changes to no avail.
    Is there a utility that can recover lost files? I'm not too knowledgable in this department. YIKES! Has this happened before to anyone?

    I'm afraid the news isn't good, truegrit.
    Older versions of iMovie had a bug that could delete all the clips in the Media folder, causing the loss of everything. That may have happened to your project.
    If it helps, it's probably not something you did. That version of iMovie did it on its own. It can follow emptying the iMovie trash.
    Emptying the iMovie trash could cause lots of different problems; that was the worst of several. Fortunately, iMovie 5 and iMovie 6 do not have this bug.
    Karl

  • Music files deleted from Memory Card..(5800XM)

    Hi..
    I have a Nokia 5800 XpressMusic. Music files used to get deleted earlier automatically from the music player, but this problem stopped for a while. The other day, I transferred about 20 songs to my phone via Mass Storage mode through my PC. After a couple of days, all those 20 songs are missing from my music player. They've disappeared from the Memory Card as well, leaving behind only the folder in which they were.
    Please help. This is REALLY annoying. 

      Yes, may be you are right. Something was wrong with my memory card and i figured out this morning. its an 8gb card out of which my personal data was about 4 gb. yet i could see that almost 7gb was used and only about  0.5gb was free. what i did was that i pulled all my data out of the  mem card and found that still 3gb was used up. hmmm...this was very weird. Not too sure but i guess it may be occupied by .arc files which are created when i do backup on the memory card. This was leaving very little space on my mem card , so whenever new data was added to the card, it was flushing out some existing data randomly (which is actually very sick!). 
    So, i removed all my personal data from card and then formatted it. Now my card is clean and has lot of free space. Hopefully the problem won't repeat anymore.
    Its actually quite annoying that data is deleted randomly without prompting that disk has run out space. quite weird actually.
    List of Nokia phones I've used: 3310, 3315, 3200, 6600,3250, N73 ME, N95 8GB, 5800 XpressMusic and Nokia X6 16 GB (currently using this).

  • Music files deleted from hard drive and iTunes library

    Often, after iTunes software updates, I find that some of my music files that have been uploaded from cds are completely erased from my music library and from my external hard drive, where I keep all my music. I always make sure I turn on the external drive before opening iTunes, and I quit iTunes before turning off the external drive.
    So why is my music disappearing?! Where does it go? This has been a problem for a long time and I can't find any solutions online. Please help! Thank you!

    When you have the unit in the dock, anytime you sync, you have to make sure that it will sync again to the folder. If it isn't set to sync the same folder where you had the music sync before, it'll delete the file.
    That's just the way it's set up. So you have be conscious of it.

  • Imported Files Deleted From Memory Card

    I imported my files from my camera's memory card and selected the option to import into the aperature library and delete the originals after import.  The files successfully imported and I began to work on them in a project.  I flagged a couple of the pictures that I wanted to put in an album and print, upload, etc.  Then, all of a sudden, they were GONE.  They are nowhere to be found in Aperature.  I even viewed all photos in a "list" view and sorted by date taken and none of the pictures I took today and "successfully" imported were there.  I do not see them in the trash either and a Time Machine backup has not completed since I imported the photos.  Could someone please tell me how I can recover these priceless pictures of our toddler son and my wife on their first Mother's Day???
    Desperate -
    Jason

    Jason,
    hopefully you did not actually delete your photos but just hid them. Did you quit and relaunch Aperture before your images vanished, or did did it happen, while Aperture was open?
    There are basically two ways that occasionally hide images:
    Hiding in a different Librariy: Import into one library, then opening a different library and the images appear to be gone
    Filtering and rejecting: Accidentally setting filters or using the "reject" key will exclude images from the view.
    If you noticed the missing images after quitting and relaunching, you may have imported into a different library then you are viewing now. This may happen, if your Aperture library is on a different volume and the volume went offline, before you started importing. Then Aperture may simply create a new library on your drive and import into that. Or you have two Aperture installations - on  in the Applications folder, one somewhere else. Depending on how you launch Aperture you may open different Libraries.
    To check for other Aperture Libraries, see if Aperture offers different Librarues to open, when you hold down the options-key while launching Aperture or if Aperture is already running, go to the File menu and select "File -> Switch to Library".
    If  the images vanished while you were working with Aperture: (You did not tell us which Aperture version you are using - I assume you are using Aperture 3 ....)
    Check the searchfields in the Browser and in the Inspector pane and clear them.
    The browser filter should be set to "Showing All" - this will even reveal rejected images,
    The filter in the Inspector pane shuold show: "All items"
    Note that each library item may have its own filter applied; you will have to select them in turn to clear all filters.
    In very rare cases you may even have created an invisible filter; then Frank Caggiano's user tip will help.
    Images not appearing in browser, search filter is cleared
    Rejecting images: If you accidentally hit the "9" key, your currently selected images may be rated rejected and the filter in the Browser will exclude them from view, if it is not set to "Showing all". Rejected images are marked by a "x". To unreject them assing a different rating.
    Pkease post back, if this does not solve the problem. Don't use the card in your camera, until you got your pictures back. If all fails, you may need to use recovery software on the card.
    Regards
    Léonie

  • How do I recover a file deleted from photo booth?

    I deleted a small video file and when I close the program , that file appears in the trash
    However, the video I accidentally deleted was large, 13 minutes long, and when I deleted it it didnt go to the trash folder
    So I made another long video just to check and it seems that the long clips dont go to the Trash
    Do you have any idea whats going on? and where I can find my clip?

    check at https://www.icloud.com/ to see if the file is saved there in documents or iCloud drive
    if not check under settings > iCloud > storage > manage storage and see if there is a backup of the iPad from when the document was still saved
    if there is restoring your iPad form that backup may recover it
    Restore your device from an iCloud or iTunes backup - Apple Support
    if there is not then check to see if it is still saved on any other computers or devices to see if it is saved there
    good luck

Maybe you are looking for

  • How to edit external iPhoto Library pictures with an external editor?

    That's my question. I have my iPhoto Library on an external HD and I want to modify my pics with PSE 11. I've set my iPhoto prefs to do this but it just doesn't work. When I click on "edit with an externale editor" PSE 11 opens but doesn't show the p

  • Encore CS4 No Menu Temp's Windows 7 Also Update

    As stated i am using windows 7   And well encore has no menu templets and when i did update it goes to the install process and  well does nothing after that figure nothing for windows 7. Wll notised features not avail in windows 7 .. do i have to go

  • How to make rolling plan at any point of time for 12 months using SOP/LTP?

    Hi Gurus, I am configuring an MTS scenario where the client desires that at any point of time, when he does planning, system should do a rolling plan. For example, let us say that we first do the planning in Jan for Jan to Dec. When he does the plann

  • Sub: Screen doesnt fit

    Sub: Screen doesnt fit Hi friends, I cant able to get full screen when I run applications in my laptop having 10 inches screen those developed in desktop having 15 inches screen, is there any forms property we can set so that every where it should fi

  • Gather statistics in OEM

    Hi, I launched a job to gather statistics on just one schema on my DATABASE in OEM. How can I identify it's session ? Many thanks before.