BAPI to delete the particluar file type DIR.

Hi all,
how can I delete single files of a Document Info Record. Only found BAPI to delete the particluar file type DIR.
I have done using through
BAPI_DOCUMENT_GETDETAIL2
BAPI_DOCUMENT_CHANGE2
Is it possible that we can delete again a file from same document number.
I tried to delete again document against same document number but could not able to do so.
Add. INFO:
The Upload is done in the Document Management System (/cv01-2-3-4n) by a BSP application / BAPI_DOC_CREATE and CHECKIN .
Thanks in advance,
Abhishek

Thanks Niel for the script, unfortunately I am too ignorant about running these on my own, I did save it in my user script library, but I would need instructions to run it. I would be really grateful.
I did try making up my own workflow using the given actions in Automator, the first action was to 'find specific files in finder' ending with .zip and .rar and then choosing another action which 'moves selected files to trash'. Unfortunately it ended up running only if I specify the path to the specific .zip file, which defeats the purpose. Any suggestions on the proposed workflow? Thanks in advance.

Similar Messages

  • Firefox does not delete the .part file from my download folder after a successful download

    First off, I'm on a MacBook Pro, running 10.6.4 and FF3.6.12
    I've recently noticed that on occasion Firefox does not seem to delete the .part file associated with a successful download. The .part file (with a name consisting of a string of random characters followed by a .part extension) is visible in my Download folder stack, although not visible in the actual folder view. I cannot drag this file from the stack to the trash.
    The real problem stems from the fact that this seems to create a directory error on my hard drive. Were I to run Disk Utility (which I will have to do... again!), it would return with an error saying something like "incorrect block length", requiring me to boot up from my install disk and repair the drive.
    Is this maybe a bug? Is there something I might be doing wrong? Could an extension like AdBlock be messing up my downloads?

    It seems that FireFox leaves those partial download files if for any reason they get interrupted. It's possible to resume the download through various uninteresting means, but if you're like me, it gets filled up with files that I intentionally did not complete downloading.
    If you're terminal-savvy, you can set up a script that cleans up old .part files. Here's what I've set in my crontab:
    0 * * * * /usr/bin/find ~/Downloads/*.part -atime +1 -exec rm {} \; &> /dev/null
    It will delete any files in my downloads folder that are at least 1 day old.
    To install this in your crontab, launch terminal and type "crontab -e"
    This will bring up a text editor, probably vi. You'll see a bunch of ~'s down the left side. Type "i" to go into "insert" mode. The bottom left will say "-- INSERT --"
    Copy and paste (or type) the line of code I have above.
    Hit enter just to make sure you have a newline at the end.
    Hit "Escape" to exit the insert mode.
    Hit Shift-Z Shift-Z (that's Shift-Z twice) to exit the editor.
    You should see a status message "crontab: installing new crontab"
    If you type "crontab -l" you should see your newly installed crontab.
    At the top of the next hour, any .part files that are more than a day old should be deleted, and this should continue forever.

  • How to delete the Generated files from application server(open hub)?

    hi experts,
    when i try to execute process chain the DTP it is giving below dump. Exception CX_RSBK_REQUEST_LOCKED logged.
    when i execute the DTP manually and trying to delete the previous request, it is giving for dump ITAB_DUPLICATE_KEY.
    so to delete the generated file from application server, how to delete it for specific dates?
    Information on where terminated
    Termination occurred in the ABAP program "GPD6S3OE0BCVGC6L9DBNVYQARZM" - in
    "START_ROUTINE".
    The main program was "RSBATCH_EXECUTE_PROZESS ".
    In the source code you have the termination point in line 2874
    of the (Include) program "GPD6S3OE0BCVGC6L9DBNVYQARZM".
    The program "GPD6S3OE0BCVGC6L9DBNVYQARZM" was started as a background job.
    and when i check the dump it is point out at below code
    " Populate the lookup table for 0STOR_LOC
    SELECT * from /BI0/TSTOR_LOC
    into CORRESPONDING FIELDS OF table L_0STOR_LOC_TEXT
    FOR ALL ENTRIES IN SOURCE_PACKAGE WHERE
    STOR_LOC = SOURCE_PACKAGE-STOR_LOC.
    but the programme is syntactically correct only.
    how to rectify the issue.
    regards
    venuscm
    Edited by: venugopal vadlamudi on Sep 28, 2010 1:59 PM

    hi experts,
    We have written start routine to get the storage location text and sending to File located at Application server through OPEN HUB.
    here is the code written in the Transformations
    In the global section
    Text for 0STOR_LOC
        DATA: l_0stor_loc_text TYPE HASHED TABLE OF /bi0/tstor_loc
              WITH UNIQUE KEY stor_loc.
        DATA: l_0stor_loc_text_wa TYPE /bi0/tstor_loc.
    and in the code to get the text
    " Populate the lookup table for 0STOR_LOC
        *SELECT * from /BI0/TSTOR_LOC*
          into CORRESPONDING FIELDS OF table L_0STOR_LOC_TEXT
          FOR ALL ENTRIES IN SOURCE_PACKAGE WHERE
                  STOR_LOC = SOURCE_PACKAGE-STOR_LOC.
    im sure there is problem with the Routine only. i think i need to change the code if so please provide me the modified one.
    thanks
    venuscm
    Edited by: venugopal vadlamudi on Sep 29, 2010 9:37 AM

  • Unzip issue: Could not delete the zip file after unzip it

    I have issue with the following code, the purpose is to unzip first then delete the zip file. But I could not delete the zip file. When I put a break point before my delete() call, I manually delete it and get the file is used by another process. Please help. Here is my code;
    try{
    File primeZip = new File(dir, fileName);
    ZipInputStream zipStream = new ZipInputStream(new FileInputStream(primeZip));
         ZipFile zf = new ZipFile(primeZip);
         OutputStream out = null;
         for (Enumeration em = zf.entries(); em.hasMoreElements();){
              String fileName = em.nextElement().toString();
              out = new FileOutputStream(fileName );
              byte[] buf = new byte[16384];
              int len;
              while ((len = zipStream.read(buf)) > 0) {
                   out.write(buf, 0, len);
              out.flush();
              out.close();
         out.flush();
                   out.close();
                   zipStream.close();
    primeZip.delete();
    }catch(FileNotFoundException e){          
    }catch(IOException e){         
    }

    I put close() for ZipFile object which is zf.close() befoer I delete the zip file resolve this issue.
    Thanks.

  • When I try to save an email attached file, the file name is automatically convertied to "attachment.ashx" although the correct file type is recognized. How do I retain the original file name?

    This problem occurred after the most recent update to firefox 8.0.
    After right clicking on the attached file, I click on save link as.
    The correct file type is recognized. However the file name is converted to "attachment.ashx".
    When I rename the file, it downloads properly and is opened by the appropriate program.
    However, I should not have to rename each downloaded file.
    In particular, this is happening with Word files and with Scientific Notebook (.tex) files.

    Cor-el, thank you for your advice. I was able to navigate to my Profile Folder and I deleted the mimeTypes.rdf file. I then closed Firefox and restarted it. The problem was still there, and I found that the mimeTypes.rdf file had been re-created.
    I tried your second suggestion, but the files you mentioned were not present so there was nothing to reset.
    Any other suggestions?

  • HT3842 Does iTunes store the original music file and copy it into a separate folder? If i delete the original file from finder will it remove it from my iTunes library?

    Hi, on my last PC when transferring music to my new MacBook Pro i noticed i had about 6 duplicated of each song in every album i took hours in removing them.
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    If i delete the original file from finder will it remove it from my iTunes library or vice versa. I didnt want to lose any music like i have some how managed to on my old computer.
    Or should i keep both files of it in the Music folder and also iTunes library folder?
    Which is best ?

    DrewPowell wrote:
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    It does both at the same time.
    When you add files to iTunes, it copies them into /Music/iTunes/iTunes media/ folder. The original file remains where it was.
    You can drag a file to /Music/iTunes/iTunes media/Automatically add to iTunes/ folder.
    This will add to iTunes and move it to /Music/iTunes/iTunes media/.
    I keep a shortcut of this folder on my desktop then simply drag files to the shortcut to add to iTunes.
    Then there are no "extra" files around.

  • Deleting the original File of encryted  data

    Hello, i have two question:
    1)i want to know how to delete the original of an PBE encrypted file.
    2)After Decryption how to delete the encrypted file from directory.
    you can send answer to [email protected]
    Thanks

    Hello, i have two question:
    1)i want to know how to delete the original of an PBE
    encrypted file.You mean something like "File.delete()"?
    2)After Decryption how to delete the encrypted file
    from directory.You mean something like "File.delete()"?
    you can send answer to [email protected]
    We could, but we won't. This is a board designed to help everybody get answers - not just you.
    Grant

  • I tried to delete one item from an email folder, and my computer deleted the whole file. I cant fint it anywhere.

    I tried to delete one item from an email folder, my computer deleted the whole file and I cant find it anywhere. Any ideas?

    lindafromgainesville wrote:
    ...is there a seperate trash for email?
    In Mail, yes -

  • How to delete a specific file type from a folder

    Hi,
    I have folders with lots of zip or rar files, once I decompress those I want to delete the compressed files specifically. Is there any way I could manage that through Automator?
    Thanks in advance.

    Thanks Niel for the script, unfortunately I am too ignorant about running these on my own, I did save it in my user script library, but I would need instructions to run it. I would be really grateful.
    I did try making up my own workflow using the given actions in Automator, the first action was to 'find specific files in finder' ending with .zip and .rar and then choosing another action which 'moves selected files to trash'. Unfortunately it ended up running only if I specify the path to the specific .zip file, which defeats the purpose. Any suggestions on the proposed workflow? Thanks in advance.

  • Is it safe to delete the cache file folder from library

    is it safe to delete the cache file folder from library ?

    As I understand it Robo doesn't really 'do' third-party
    source control. We use SourceGear Vault, but really only as a
    repository for the files. We can't really work concurrently because
    Robo needs exclusive access to the top level project files. But it
    kind of works for us, because we're on opposite sides of the globe.
    I see what you're saying on the 'local' versions of (say) the
    cpd files conflicting. If anyone else has an informed view, I'm all
    ears. We've set it up this way ourselves - I don't know of anyone
    doing the same. If someone tells me this is a bad idea, I'm happy
    to think again.
    Cheers!

  • Can I configure to always delete the master file?

    Hi!
    If I want to delete a file, I don't just remove it from the cataloge, but to delete the master file, too.
    If I use the remove key, I get the (annoying) pop up, what I want to do: (sorry, I've a german version, so I just try to translate it)
    Delete from hard disk
    Remove (default selected)
    Cancel
    Is there any chance to avoid this dialog? Or at least to chance the preselected button, so I've just to use the enter key?
    Actually I've to
    press delete
    press left arrow key
    press enter
    That is a little bit annoying and error-prone
    Thanks a lot!
    P.S.: I just found out, that ALT+DELETE is a shurtcut to remove the file from the catalog. So it would be greate to have a similar shurtcut to delete the file from the filesystem.

    Thanks!
    But it is almost the same as CTRL+ALT+DELETE, which has a special meaning in Windows :-(
    So there is no way, to get a delete action, that easiliy deletes, without pressing four keys in parallel? :-|
    Perhaps, the developers of Lightroom could provide an option, so you get the pop up, but the default action is different. That would be really great.

  • Why does the new operating system not delete the moved files from their original location - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it

    Why does the new operating system not delete the moved files from their original locations - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it - also, when transferring large amounts of files it becomes a very large problem remembering which files were transferred and which not.

    You're going to need to be more specific, as I'm not quite sure I understand what you're talking about.
    If you're referring to copying from an external hard drive or flash drive, and you want to actually move files rather than copy them, you can hold down the option key to force it to do a "move" rather than a "copy." This is not new behavior, though... the Mac OS has worked this way as long as I can recall (and I've been using it since 1984).
    If you're having a problem with trying to move files from one place to another on a single drive causing them to be copied instead, that is likely because of some permissions issue preventing you from actually being able to move them.

  • Hi Friends... I'm trying to delete a back-up file on mu TC but I get the message "The operation could not be completed because the item "bands" is in use. I'd like to start the Back from scratch, could help me out with deleting the current file?

    Hi Friends...
    I’m trying to delete a back-up file on mu TC but I get the message “The operation could not be completed because the item “bands” is in use. I’d like to start the Back from scratch, could help me out with deleting the current file?

    Sorry, I am very confused. I asked the following question....
    Is this the only backup file on your Mac, or do you have other backup files and data on the Time Capsule disk?
    The answer that you gave was....
    This is the only one
    Now you are saying that....
    But I have lots of other files on Time Capsule! The back up file is only one of them.
    Can you clarify, please?

  • Trying to use a new, larger external hard drive for my Time Machine backup.  However, every time I start the backup, it gets started then fails.  And, I can't delete the few files that did save on the external.  Sort of a catch 22.  Any ideas?

    Trying to use a new, larger external hard drive for my Time Machine backup.  However, every time I start the backup, it gets started then fails.  And, I can't delete the few files that did save on the external.  Sort of a catch 22.  Any ideas?

    Is it a USB hard drive?  USB hard drives have the problem of not giving full speed if they are hooked up on the same bus as keyboards and mice.  Double check your profiler to make sure that is not a problem.  If it is Firewire, make sure there aren't other firewire devices in use at the same time.  I recommend not only keeping a Time Machine backup, but also a clone, and if you do use Time Machine, to make sure the Time Machine drive or partition is at least twice the size of the original drive.

  • Suppress the Default File Types dialogue, Office 2013 C2R

    Hi.
    We are doing a rather large Office 365 Proplus deployment using click-to-run via SCCM. We have the relevant group policys configured for the most part but we can't figure out how to get rid of the Default File Types dialogue box that pops up during the first
    run of any of the Office applications. It asks the user if he/she wants to use Office XML or OpenOffice document formats.
    When using the MSI-version and a custom install the administrator can answer this before creating the deployment package, but this is obviously not possible using C2R.
    We have tried to set HKEY_USERS\<user_SID>\Software\Microsoft\Office\15.0\Common\General
    /v ShownFileFmtPrompt to 1, but it doesn't work. We have also set the default file type for each application but on first run, the dialogue box still shows.
    How can we achieve a simple deployment from a user perspective? The picture below is the setting we want to configure.
    Best regards
    Joakim

    Dito. This should have been solved when Office 2013 launched and there's still no official solution?

Maybe you are looking for