Deleting file from Al11

Hi,
How to delete a file manually from AL11 or Application server.
Thanks,
Sravanthi

Frame ur directory path by defining a variable and use the DELETE option for data set to delete ur particular file.
Example below:
data:w_outfile(50).
concatenate '/' sy-sysid '/abc/xyz/'
into w_outfile.
concatenate w_outfile 'FileName.txt' into w_outfile.
delete dataset w_outfile.
Hope this will help you!
Rahul

Similar Messages

  • Deleting file from AL11 Tcode

    Guy's
    pls let me know ,how we can delete files which we have
    in ALL11 tcode.
    thanks
    sanju

    HI,
    Jus chk out this:
    DELETE - Delete a file
    Basic form
    DELETE DATASET dsn.
    Effect
    Deletes the file specified in the field dsn.
    The return code is set as follows:
    SY-SUBRC = 0:
    File deleted.
    SY-SUBRC = 4:
    File does not exist or could not be deleted.
    Possible reasons:
    1) The file does not exist.
    2) The file is a directory.
    3) The R/3 System has no search authorization
    for a component of the file name.
    4) The R/3 System has no search authorization
    for the directory which contains the file.
    5) A component of the search path is not a
    directory.
    6) The file is a symbolic link which cannot be
    resolved (endless loop ?).
    7) The file is a program which is currently
    running.
    You can refer this piece of code:
    LOOP AT gt_files WHERE type <> 'directory file'
    AND len EQ 0.
    CONCATENATE p_path gt_files-name INTO test.
    CONDENSE test NO-GAPS.
    OPEN DATASET test.
    IF sy-subrc EQ 0.
    DELETE DATASET test.
    IF sy-subrc EQ 0.
    MESSAGE i000(0) WITH 'file deleted'.
    ENDIF.
    ENDIF.
    ENDLOOP.
    Regards,
    Gayathri
    Message was edited by: Gayathri Hariharan

  • Delete the file from AL11

    hi all,
    how to delete file from application server(al11)?
    apart from using EPS_DELETE_FILE
    and writing a code  any other go to acheive it
    regards
    venkat

    Hi,
    AL11 is a tool to view files that exist on the operating system of the SAP instance (which I think is Rainer's point). 
    The only way to delete this files is either programatically (with the function module you mention or other ways) or to log onto the operating system directly and delete the file.  In either case you are not deleting them from AL11, you are deleting them from the operating system.
    Regards,
    Nick

  • How to delete a  file from AL11??????

    Hi Friends,
    how can i delete a file from AL11 directory....
    i have found FM's like EPS_DELETE_FILE, EDI_PORT_DELETE_FILE and some more from SAP system but those are not deleting the files....
    let me know if i can write a program for this and if yes then guide me for writing the same....
    Thanks,
    Nagesh.

    reference:http://saplab.blogspot.com/2007/10/sample-abap-program-to-delete-file-from.html
    REPORT ZDELETE.
    Delete a file on the application server.
    PARAMETERS: P_DIR LIKE RLGRAP-FILENAME
    DEFAULT '/usr/sap/trans/', *it will delete files from this dir
    P_FILE1 LIKE RLGRAP-FILENAME.
    DATA: P_FILE(128).
    DATA: W_ANS.
    START-OF-SELECTION.
    CONCATENATE P_DIR P_FILE1 INTO P_FILE.
    check file exists
    OPEN DATASET P_FILE FOR INPUT.
    IF SY-SUBRC NE 0.
    MESSAGE E899(BD) WITH P_FILE 'does not exist'.
    EXIT.
    ELSE.
    CALL FUNCTION 'POPUP_CONTINUE_YES_NO'
    EXPORTING
    DEFAULTOPTION = 'N'
    TEXTLINE1 = P_DIR
    TEXTLINE2 = P_FILE1
    TITEL = 'ARE YOU SURE YOU WANT TO DELETE'
    START_COLUMN = 25
    START_ROW = 6
    IMPORTING
    ANSWER = W_ANS
    EXCEPTIONS
    OTHERS = 1.
    ENDIF.
    CLOSE DATASET P_FILE.
    CHECK W_ANS = 'J'.
    delete
    DELETE DATASET P_FILE.
    IF SY-SUBRC NE 0.
    MESSAGE E899(BD) WITH 'Invalid file name' P_FILE.
    ELSE.
    CLOSE DATASET P_FILE.
    MESSAGE I899(BD) WITH P_DIR P_FILE1 'DELETED'.
    ENDIF

  • Process Chain - Delete File from Application Server

    Hi Gurus,
    Im working with Process chain, and i have a load from a flat file, so my question is :
    How can i delete that file from the application server after was loaded ?
    THANKS IN ADVANCED !!! I REALLY APRECCIATE YOUR HELP.
    Marcos

    hi,
    I have gone through the forum you have posted for deleting files from application server through process chain.
    I have similar reuirement in my project.
    Can you please provide me the solution?
    Your inputs will be highly appreciated.
    Thanks in advance.
    Regards,
    Lavanya.

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • Hi,delete file from folder?

    hi,i am deleting file from folder as follwos
    <%@ page import="java.io.File" %>
    <%
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\xyz.txt");
    myFile.delete();
    %>
    i am sucessfuly deleted file from above path.
    if i use follwing code i unable to delete my file, can one help,
    how to do it,
    <%@ page import="java.io.File" %>
    <%
    String fname="xyz.txt";
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\'"+fname+"'");
    myFile.delete();
    %>
    thanks
    pullareddy

    i think if above doesn't work try this it should work
    change this line
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\'"+fname+"'");
    to this
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\"+fname);

  • Delete file from folder only (not from list)

    Hi all,
    I've searched a lot and didn't succeed so far, that's why I need your help. In a cloud context, I'm actually creating and uploading files (pdf and/or xml files) "on the go" to sharepoint folders via the SOAP API and this is perfectly working. But
    in a cloud context, I also need to decomission services which is translated into deleting files into Sharepoint.
    That's where it became complicated, because according to the API we cannot delete files if they are not part of a list structure, which is not my case. Is that true ?
    The only info I have when trying to delete a file via the SOAP Api is : its name, its folder, and the endpoint where the folder is. So my question remains simple I guess : is this possible ? If so, how to (a link to the SOAP body would be usefull)
    Thanks a lot
    Regards
    Baptiste

    Hi,
    According to your post, my understanding is that you want to delete file from folder.
    In SharePoint 2010, It is recommended to use Client Object Model to achieve it, the following code snippet for your reference:
    string siteURL = "http://siteurl";
    ClientContext context = new ClientContext(siteURL);
    //specific user
    NetworkCredential credentials = new NetworkCredential("username", "password", "domain");
    context.Credentials = credentials;
    Web web = context.Web;
    context.Load(web);
    context.ExecuteQuery();
    string relativeUrl =web.ServerRelativeUrl +"/DocumentLibraryName/FolderName/FileName";
    File file = web.GetFileByServerRelativeUrl(relativeUrl);
    context.Load(file);
    file.DeleteObject();
    context.ExecuteQuery();
    If you still want to use SOAP API, we can use the UpdateListItems method under Lists web service to achieve it.
    http://www.dhirendrayadav.com/2010/06/delete-list-items-using-web-service.html
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/61466984-1844-48a1-8c1e-1c59a0f9876a/move-and-delete-files-remotely-using-sharepoint-web-services-?forum=sharepointdevelopmentlegacy
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Delete file from directory which

    Hi ,
    I want to delete files from a directory in  Application server.
    I have the file name as fn_13/07/2007.txt
    Have a condition that files should be deleted which are less  than 10 days.
    Is there any function module to do this.
    Thanks in Advance.
    Regards,
    Indhra

    Hello Indhra,
    These methods may help ( from CL_GUI_FRONTEND_SERVICES )
    <b>DIRECTORY_BROWSE</b>     Static Method     Public          Shows a Directory Selection Window
    <b>DIRECTORY_CREATE</b>     Static Method     Public          Creates a Directory in the Client
    <b>DIRECTORY_DELETE</b>     Static Method     Public          Deletes a Directory in the Client
    <b>DIRECTORY_EXIST</b>     Static Method     Public          Checks if a directory exists
    <b>DIRECTORY_GET_CURRENT</b>     Static Method     Public          Returns the Current Directory
    <b>DIRECTORY_LIST_FILES</b>     Static Method     Public          Lists Files in a Given Directory
    <b>DIRECTORY_SET_CURRENT</b>     Static Method     Public          Sets the Current Directory (Do NOT Use)
    <b>ENVIRONMENT_GET_VARIABLE</b>     Static Method     Public          Gets an Environment Variable
    <b>ENVIRONMENT_SET_VARIABLE</b>     Static Method     Public          Sets an Environment Variable
    <b>EXECUTE</b>     Static Method     Public          Starts an Application or Opens a Document in the Client
    <b>FILE_COPY</b>     Static Method     Public          Copies a File
    <b>FILE_DELETE</b>     Static Method     Public          Deletes a File

  • Delete file from adobe reader?

    hi guys..i want delete file from adobe reader after download from email. unfortunately i cant see any delete icon in my file. Any ways to delete it?

    Check out the new and FREE 'AIR Browser' File Manager in appworld. You can use it to create/rename/delete folders and sub-folders, it can also copy, cut, paste and delete files.
    Jerome
    If a post was helpful, please click the kudos star button below it.
    If a post solved the problem you raised in your thread, click on 'Accept as Solution'.

  • How to permanently delete files from trash?

    I usually see TV series online. Every time I visit to the website, it automatically downloads a Mac_Installer file to my Downloads folder. I delete the file without opening it and secure empty the trash. When I visit the website again, the same file is downloaded to my Downloads folder, and the "previous deleted file" from the trash can reappears on it. How to solve this matter? My computer is a MacBook Pro and is running OS X Mavericks.
    Thanks.

    Try erasing free space using Disk Utility.
    Erase free disk space
    When you delete files in Mac OS X, your Mac deletes the information used to access the deleted files but doesn't physically remove them. Although the space used by the deleted files appears as free space, the deleted files remain on the disk until new files are written over them. As a result, these files can be recovered. Erasing free space does not delete any other files on your disk besides the ones that you already deleted.
    After the drive is connected, launch the Disk Utility application in any of the following ways:
    Type the first few letters of its name into Spotlight. Select it from the results.
    Go Finder > Applications > Utilities > Disk Utility
    Go Launchpad > Utilities > Disk Utility
    Once you are in the Disk Utility app, select the disk or partition you would like to erase from the left.
    Select the Erase tab.
    Choose the Erase Free Space button.
    Use the Slider to choose how many times you would like to write over the free space.
    Select Erase Free Space.
    Note: After this process starts, you can cancel it at any time without harming any of your data. You might see a message stating that you are running out of disk space. This is normal and to be expected. You can ignore this message.
    When the process is complete, you should have the same amount of free space. If you do not have the same amount of free space, try restarting the computer.
    I hope I helped.
    Austin

  • Deleting file from application server

    can any one tell me how to delete file from application server?

    Hi,
      Use statement
      delete dataset 'tmpfile.txt'.
    \tmp\file.txt is the file path on application server which you want to delete.
    Regards
    Sailaja.

  • T-code for delete file from application server

    Hi all!
    Please, has any t-code for delete file from application server? For upload exist CG3Z, for download has CG3Y. And for delete? Has anyone?
    I need to delete file from application server in QA system and i don't want to create a program for this because i will need to transport a request from DEV to QA.

    I don't have contact with basis team.
    The FM EPS_DELETE_FILE support directory name with max 60 char. My dir. has more than that. I need a transaction for this.
    Anybody know if this transaction exist?

  • HOW TO DELETE FILES FROM ADOBE READER IF THEY ARE UNNECESSARY

    HOW TO DELETE FILES FROM ADOBE READER IF THEY ARE UNNECESSARY

    Hi,
    You might need to sign up at https://cloud.acrobat.com/ and choose 'Files' tab where you can find all the files.
    Select all the files you want to remove and choose 'Delete' option.
    Regards,
    Anubha

  • Can not delete files from Adobe reader

    can not delete files from adobe reader.

    Can you let us know a little more about what you are trying to do? Adobe Reader opens pdf files but does not store them so, there's nothing to delete.

Maybe you are looking for

  • How can i reset my ipad to original factory settings?

    I have an ipad 1.  How do I reset it to original settings so that I can give it to a friend?

  • Where are the basic settings in develop module?

    Since updating to lighroom 3 using a MacPro running Snow Leopard I seem to be missing all the 'basic' settings on my develop module namely exposure, white balance etc.  All the other adjustment settings are there.  Any idea how to fix this?

  • Podcast Update 2.1 and Siri

    Siri is putting Spaces in titles that are one word, like Macbreak Weekly, Frogpants, TedTalks and Cordkillers. Because of this, it doesn't recognize the titles and says I don't have these listed. I've tried to speak it slowly, very succulently, and n

  • Acrobat reader doesn't open automatically anymore

    Hello, since my last update to READER 8, Acrobat reader doesn't open automatically on clicking on a PDF file anymore. When I download a PDF file for opening it doesn't work either. I need to "open with Acrobat Reader 8" to succeed. I tried to update

  • JMS: foreign servers vs. bridge

    hello, any suggestions when to use wls jms bridge e.g. for talking to Sonic or MQ or when to use a foreign jms server definitions? all informations that clarify the conceptual differences between the two solutions are appreciated. since what version