Skip to Content
author's profile photo Former Member
Former Member

Delete files in AL11

Hi,

We have some files in AL11 Directory, which i want to delete?

Can any one share some steps to delete these files.

Other Post on SCN could not solve my problem

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2015 at 10:05 PM

    Why not give a list of the files to Basis They can take care of it quickly without an ABAP solution.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2015 at 10:36 PM

    Hello Nachiket,

    A simple ABAP Code with the logic as below will help to delete files in AL11. (Sorry, I am not an ABAPer and my ABAP is not so good. You will have to tweak the code below a bit to make it work).

    Create a Program in SE38 and define a screen to input the path where file in AL11 is stored.

    Selection-screen begin of block b1 with frame title text -001.

    (Define text element as "Enter File Path")

    parameters: p_del type rlgrap-filename

    Selection-screen end of block b1.

    at selection-screen output.

    perform f_delete_file.

    form f_delete_file.

    if (p_del is initial).

    message 'Enter File Path, It cannot be blank' type I.

    exit.

    endif.

    delete dataset p_del.

    if sy-subrc = 0.

    message 'File deleted Successfully' type I.

    elseif sy-subrc <> 0.

    message 'File not deleted' type I.

    endif.

    endform.

    Cheers

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 11, 2015 at 12:32 AM

    Use FM SXPG_COMMAND_EXECUTE

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 11, 2015 at 03:14 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 11, 2015 at 04:31 AM

    Use Transaction N2UX

    if not possible use SE93 and start the report for N2UX directly from SE38 or SA38.

    Regards

    felix

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.