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

FM EPS_GET_DIRECTORY_LISTING is giving error.

Hi All.

If I execute EPS_GET_DIRECTORY_LISTING FM with './' as directory, its listing all files from default directory. If I give /tmp, /data (directorys from AL11 TCODE) its not returning any value. Server is running on Linux OS. Can any body help how to pass dir name to this FM.

Regards,

Venkat.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 09:27 PM

    Venkat,

    It is working fine for me here. Are you using the FM within a program or are you testing the FM in SE37?

    If you are testing it, then the problem is with case sensitivity. SE37 test screen converts the text to upper case and hence /TMP and /DATA are not known to Unix (or Linux). Also, ./ works fine even after converting to upper case.

    If you must test the FM in SE37, then go into debug mode and change the text back to lower case within the debug screen.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2009 at 02:12 AM

    if you test it in SE37, try check the "lower / upper case" or if you are using UNIX server, make sure the case sensitivity is taken care...

    thanks..

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 25, 2011 at 06:16 AM
    PARAMETER p_path(50) TYPE c DEFAULT '/TMP' LOWER CASE.
    PARAMETER p_file(50) TYPE c DEFAULT ' '  LOWER CASE.
    
    dpath = p_path.
    pfile = p_file.
    
    CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
         EXPORTING
              dir_name               = dpath
    *          FILE_MASK              = PFILE
         TABLES
              dir_list               = dlist
         EXCEPTIONS
              invalid_eps_subdir     = 1
              sapgparam_failed       = 2
              build_directory_failed = 3
              no_authorization       = 4
              read_directory_failed  = 5
              too_many_read_errors   = 6
              empty_directory_list   = 7
              OTHERS                 = 8.
    
    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.