Reg: Deleting the file stored on the folder

Hi All,
I do have the requirement where I need to download a billing document(scipt) onto the folder in PDF format and then upload the same PDF document to the transaction VF03.
My question is how to delete the downloaded PDF file programatically.
Answers will be rewarded.
Thanks,
Kishore

Hi Krishna,
If ur file exist in front end then Use the FM GUI_DELETE_FILE. make sure that file name is case sensitive.
If it is application server then use DELETE DATASET filepath.
It will perfectly works fine.
Thanks,
Vinod.

Similar Messages

  • Problems with re-installing Itunes after I've deleted the folder in P-Files

    Hello everyone!
    I have a big big problem! For a time ago, I had Itunes on my computer... Then I though that it filled alot on my computer, so then I walked into the folder +C:\Program Files\+ and deleted the folder, where Itunes lay in.... And now I can't install Itunes again.... Thank you!
    Soooo...... *What do I do?*

    Help me... Thanks!

  • How to delete the Folder from sql server 2008

    Hi all,
    I was trying to delete the folder from sql server 2008 with the below script
    DECLARE @path VARCHAR(256) -- path for backup files
    DECLARE @cmd VARCHAR(8000)
    DECLARE @folderName VARCHAR(256) -- filename for backup
    SET @folderName = + (CONVERT(varchar(10), GETDATE()-7, 112))  -- 7 days back date folder name
    SET @path = 'I:\Backup_Test\' + @folderName -- Folder path
    SET @cmd = 'del ' + @path -- Delete
    EXEC master..xp_cmdshell @cmd
    --Print @cmd
    This is not working it was asking the Confirmation (I:\Backup_Test\20100629\*, Are you sure (Y/N)? ) what will i do to the delete the folder.
    Thanks,
    Prasad R.

    I would notice   you that T-SQL does not play well to do things like that. Do not you want using .net language to delete folders?
    Old method is
    declare @HR int, @CFOLDER varchar(255),@FSO int
        set @CFOLDER='D:\folder\'
        EXEC @HR = sp_OACreate 'Scripting.FileSystemObject', @FSO OUT
        EXEC @HR = sp_OAMethod @FSO, null, 'DeleteFolder', @CFOLDER 
    Now regarding to your second question please examine xp_fileexist  system stored procedure
    CREATE FUNCTION dbo.fn_file_exists(@filename VARCHAR(300))
      RETURNS INT
    AS
    BEGIN
      DECLARE @file_exists AS INT
      EXEC master..xp_fileexist @filename, @file_exists OUTPUT
      RETURN @file_exists
    END
    GO
    -- test
    SELECT dbo.fn_file_exists('c:\a.txt')
    Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/

  • How to delete the folder VOLUMES on the main drive?

    Leopard creates a folder called Volumes on the root with aliases to external hard disks. I can delete the folder but as soon as I connect to the local network server, the folder Volumes appears again with an alias to the hard disk in the server. How do I permanently delete this folder? My Dock grid list is totally ruined by this folder. I was used to 5 folders on the root. Now it's six and I don't want that. I never had this annoying folder and I didnt do anything except for the 10.5.4 update. I also have no file or folder sharing active. The Volume folder also (re)appears when I connect an external USB disk. pls help

    A problem I have with this folder is that although it is an alias, sometimes when I do file transfers (such as receiving large amounts of photographs via pando etc.), as well as downloading the file to the external drive, as I have instructed it, is stashes the same file in the "Volumes" folder, and over time it can really start to eat away at the disc space. (I only recently discovered this recently and was this able to free up about 12 GB of disk space). I am pretty sure this is abnormal behavior for this folder, but I don't have any idea where to look to find what the problem is. Any idea what might be causing this, and how I can stop it doing it? It isn't catastrophic, now that I know, because I can periodically go and clear it out, but the eroding disk space caused me lots of problems until I discovered that this is what was causing it.

  • How do I delete a folder that I moved to Trash from my external backup drive when a virus was detected? Trash will not delete the folder.

    I have tried unsuccessfully to remove a folder from Trash. My anti-virus program (Sophos) detected a virus which had to  be manually removed. I tried (unsuccessfully) to find and remove the infected file. I moved the Folder from my external backup drive and placed it in Trash. Now I cannot get Trash to delete the folder. It asks me if I wish to delete "unlocked" or "all" items. Either selection does not delete the folder. I went to change the permissions to "read & write" and unlocked the folder, but it is still there. I tried to "move" the folder from Trash back to the external harddrive but it seems I can only "copy" it and not "move" it. I am afraid that by copying it, I will not have the folder in two locations (Trash & External HD).
    Would appreciate any suggestions and guidance on this. I hope that I have explained the problem clearly!
    Thank you!

    Before deleting it we should know more about this folder and its contents.
    If it is invected and is using other apps, or other apps are still using it, then it cannot be deleted in the normal manner.
    You might contact Sophos and ask them about it.
    If you are using TM or have a backup of your system before the infection occurred, then you can delete the item(s) in Trash, but there is the possiblity of system corruption and the need for a reinstall, if any of these files are necessary for the OS to work properly, even though they are infected.
    Sophos may not have been able to remove the infection from inside a file which is why they suggested manual removal.
    You might consider downloading and running ClamXav first and see if it can't do better than Sophos.
    All that being said, you can always remove the contents of the Trash using the terminal. Usually as administrator, or in some cases as root (su). Unless you are very familiar with the terminal I do not suggest doing this without some study.

  • Please Help!! I deleted the folder System en Macintosh HD and now when i on my mac it says Disk Error Press Any  Key To Restart Please HELP !!

    I deleted the folder System en Macintosh HD and now when i on my mac it says Disk Error Press Any  Key To Restart Please HELP !!

    Reinstall Mac OS X.
    (59450)

  • How to delete the folder from easy DMS

    Hi..
    How to delete the Folder once it is created in easy DMS? As i have all the access
    Also how to restrict user from deleting the document from DMS? (Delete document option restriction)
    I want all folder to be gets created with internal number range only.i have define the same for Doc type FOL.
    But when i first log-in into easy dms system ask me do i need to create the folder i clicked on yes and while saving it shows an error that only internal number range is possible.But actually number EDIPUBLICROOTFOLDER  is selected by default and unedited format

    Hi,
    How to delete the Folder once it is created in easy DMS? As i have all the access
    First delete all the DIR's inside the folder using delete button. Later you can delete the Folder.
    Also how to restrict user from deleting the document from DMS? (Delete document option restriction)
    You can control this using authorization objects in DMS.
    Hope this helps.
    Regards,
    Deepak Kori

  • Cannot delete the Folder on the desktop after Mavericks update. when I try to delete it, it is asking for logon password, When I give the logon password, it plays a sound of moving to Trash, but the folder still remains on the desktop

    Cannot delete the Folder on the desktop after Mavericks update. when I try to delete it, it is asking for logon password, When I give the logon password, it plays a sound of moving to Trash, but the folder still remains on the desktop
    Please help

    It is a folder which I have created. Name is "SAP".
    I copied some of my office stuff and then deleted the contents inside the folder. But I couldnt delete the folder SAP.
    This is happening after the Mavericks update.

  • Delete the Folder Defined during Report & Layout manager Process

    Hi everyone,
    I have created a folder within inventory reports during Report & Layout manager Process ,
    while adding a crystal report in SAP.  Now I want to delete that folder. but delete option is only for
    report, not for folder. Please if anyone can help me on this.
    I am working on
    SAP 8.8 PL08
    Thanks
    Annu

    Hi,  all
    I have the same issue  and I can't delete the folder from user authorizations,
    I deleted the report from Layouts  & Reports but the crystal reports .RPT still in the form "User Authorizations"
    I have SAP 8.8 PL 17.
    What can I do???
    Thanks

  • HOW DO I REMOVE AN ICON FROM THE DISPLAY WITHOUT DELETING THE FOLDER?

    How do I remove a folder icon from the display on the mac without deleting the folder?

    If it's in the Dock, drag it out. It'll disappear.
    If it's on the desktop or inside a folder, drag it to another location.
    (126419)

  • If I move a mailbox from my imap account to "on my mac" can I safely delete the folder from the mail server and still be able to read the messages?

    If I move a mailbox from my imap account to "on my mac" can I safely delete the folder from the mail server and still be able to read the messages?

    You certainly can.
    Be aware that the emails you move to local storage ("on my Mac") will be the only copies that remain.

  • Read file stored in MIME folder

    Hello
    I have a word(.doc) file stored in MIME folder in webdynpro java.while clicking the filedownlad UI,I need to read this file from the MIME folder.I heard we can use binary chache and WDURLGenerator.Can someone please send me the details how to do it.
    regards
    John

    HI,
    Same problem but with HTML file was solved here Re: How to connect to a html using webdynpro
    Best regards, Maksim Rashchynski,

  • If i delete a file from a smart folder is it deleted from the hard drive?

    I've got a late 2011 17" MacBook Pro with a 750 GB harddrive. I'm trying to free up space by deleting movie files. I spoke with tech support about this, and they suggested creating a smart folder of all my movie files in order to find them and delte them. I did this and deleted many files, but when I open system information to check on the amount of hard drive space, I'm still seeing the same amount of hard drive space dedicated to movies.
    If I make a smart folder and delete files in that, am I really deleting them from my hard drive or just from the smart folder?

    What files are stored automatically by Time Machine?  I thought Time Machine pretty much saved everything on my hard drive to my external hard drive.  If that is the case, wouldn't my music files and picture files be on Time Machine (via my external hard drive)?
    Time Machine does backup almost all files on your hard drive, unless you have chosen to exclude them. There are a few exceptions, but nothing you should worry about. Your music and photos should be there, but Time Machine will not backup your iPhoto library if iPhoto is open.
    Also, are the photos from iPhoto automatically stored on my external hard drive via Time Machine?  If so, can I delete the pictures from iPhoto without deleting them from the external hard drive?
    Yes to both questions, with the above cavat that Time Machine won't backup the library if iPhoto is open.
    I notice that it takes iPhoto quite a while to load, and if deleting those photos would allow it to load quicker I would delete them (providing they would remain on the external hard drive.
    I only have a few pictures in iPhoto, compared to my wife's 3,500+, and my iPhoto doesn't load appreciably faster that her's does even though I have a faster computer. In my opinion, it isn't worth the effort it would take to delete them for such a small gain.
    You should have at least 2 complete backups to try to make sure you won't lose any data. Hard drives do fail and/or files can become corrupted. Time Machine can back up to more than one external hard drive or you can use a cloning program.
    Time Machine FAQ

  • How to delete the folder in ABAP

    Hi all,
    i am dowmloading one text file into a one particular folder using GUI_download function module. and whenever we are downloading the text files to that particular folder i have to check whether the folder is exist or not, if that folder is existing then i have to delete that folder and i have to put the text file into new folder.
    Note: for Folder creation am using some OOPs concepts , so any body plz send me the code ASAP.
    BALU.

    http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/content.htm
    http://javaalmanac.com/egs/java.io/CopyFile.html?l=rel
    http://javaalmanac.com/egs/java.io/DeleteFile.html
    http://schmidt.devlib.org/java/copy-file.html
    try {
         File inputFile = new File("C:
    test
    fold1
    abc.txt");
         File outputFile = new File("C:
    test
    fold2
    def.txt");
         FileInputStream in = new FileInputStream(inputFile);
         FileOutputStream out = new FileOutputStream(outputFile);
         FileChannel inc = in.getChannel();
         FileChannel outc = out.getChannel();
         inc.transferTo(0, inc.size(), outc);
         inc.close();
         outc.close();
         in.close();
         out.close();
         boolean fileDeleteSuccess = inputFile.delete();
         if(!fileDeleteSuccess)
              System.out.println("File couldnot be deleted");
         else
              System.out.println("File deleted!!");
         } catch (FileNotFoundException e) {
         e.printStackTrace();
         } catch (IOException e) {
         e.printStackTrace();

  • Can I delete the folder (Mobile Documents) on my Mac?

    I just wanna the Pages document in the Cloud, not on my Mac… I wanna do the download on the iPad. Just like iTunes Match. I have the reference (doc icon to download) but the the file. For files dmg.txt and the how others? Maybe in the System Preferences uncheck Documents & Data? That's it? I just wanna use the iPad to sync Pages docs, the dmg.txt files only in the cloud to download? Is this possible?
    thanks

    Sorry. When you said you "unchecked iCloud Mail," I thought you were not wanting to use it on your Mac.
    To answer your original question, I don't know whether you can delete the Mobile Documents folder from your Mac. Or rather, I don't know what might happen if you do. Better have a couple of good backup copies of your boot volume before you try it. (A good idea for anything that requires "sudo" even if you have researched it thoroughly.)

Maybe you are looking for

  • Issue while saving data in excel

    My client on SAP BPC 10 NW. We got a issue while saving the data in EXCEL. Though the users are saving single record in excel it popping up to user as, he/she is trying to save 4 records and then user clicks on yes button all it is giving is wrong re

  • Slow speeds, almost dead, can't figure out what's ...

    Hi all, I've had very slow speeds from my homehub for almost a week. I've tried a factory reset on the hub to no avail. I also spoke to technical support in India I think, but they were no help. When I perform a speed check the speed from the exchang

  • Open CL no longer working on CC 2014

    The option under Preferences -> Performance is greyed out. I tried everything so far: uninstall and reinstall graphics card driver, uninstall and reinstall Photoshop, delete preference files, registry tweak... nothing seems to have worked so far or o

  • ITunes gave unknown error -42110

    When opening iTunes, I get unknown error -42110.  What is this?

  • I have a problem with BRIDGE on CS5

    After making changes on my pictures in Camera RAW I can't see these adjustments on the miniatures in BRIDGE. Can someone help?