Skip to Content
avatar image
Former Member

Delete a .txt from usr/sap/tmp directory

Hello,

Does anyone knows how to delete a file from the following SAP directory?

/USR/SAP/TMP/file.txt

Thanks in advance,

CL

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 10, 2007 at 06:12 PM

    Hi,

    You can use FM EPS_DELETE_FILE.

    Regards,

    Ferry Lianto

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Krishna, that message error do not belong to your approach.

      I'm running your code without any errors, but the file stills there.

  • avatar image
    Former Member
    Oct 10, 2007 at 06:14 PM

    Use the abap statement

    delete dataset 'usr/sap/tmp/a.txt'.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks I like this approach better.

      I tried the code but is not deleting the file. Do I need to Open a dataset first?

  • Oct 10, 2007 at 06:24 PM

    Hi,

    You don't have authorization to delete the file.

    Please ask BASIS/Unix admin to delete the fie or give enough authorization to delete the file.

    Regards,

    Ferry Lianto

    Add comment
    10|10000 characters needed characters exceeded