Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Files on Application server

Former Member
0 Likes
727

Hi All,

Is there any function module with pattern search option to fetch the files on application server, similar to "<b>FILTER</b>" parameter of function module "<b>TMP_GUI_DIRECTORY_LIST_FILES</b>"

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
673

hi Ravi,

FM <b>'/SAPDMC/LSM_F4_FRONTEND_FILE'</b> for fetching the data from the application server path/presentation server path

Tables

FM <b>F4_dxfilename_toprecursion</b> F4 help of application file.

Regards,

Santosh

hi Ravi,

FM <b>'/SAPDMC/LSM_F4_FRONTEND_FILE'</b> for fetching the data from the application server path/presentation server path

Tables

FM <b>F4_dxfilename_toprecursion</b> F4 help of application file.

Regards,

Santosh

5 REPLIES 5
Read only

Former Member
0 Likes
673

refer.

Read only

Former Member
0 Likes
673

DATA: L_DIRNAME LIKE EPSF-EPSDIRNAM,
        L_FILEMASK LIKE EPSF-EPSFILNAM,

CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
    EXPORTING
      dir_name                     = l_dirname
      file_mask                    = l_filemask
* IMPORTING
*   DIR_NAME                     =
*   FILE_COUNTER                 =
*   ERROR_COUNTER                =
    TABLES
      dir_list                     = pi_filelist
 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
            .

Reward if helpful

Message was edited by: Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
674

hi Ravi,

FM <b>'/SAPDMC/LSM_F4_FRONTEND_FILE'</b> for fetching the data from the application server path/presentation server path

Tables

FM <b>F4_dxfilename_toprecursion</b> F4 help of application file.

Regards,

Santosh

Read only

Former Member
0 Likes
673

Hi,

You can use the FM <b>'F4_DXFILENAME_TOPRECURSION'</b>

CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
      EXPORTING
        I_LOCATION_FLAG       = 'A'
        I_SERVER              = ' '
        I_PATH                = '/usr/users/'
      IMPORTING
        O_PATH                = L_PATH
        ABEND_FLAG            = L_ABEND_FLAG
      EXCEPTIONS
        COMMUNICATION_FAILURE = 1
        SYSTEM_FAILURE        = 2
        RFC_ERROR             = 3.
    IF SY-SUBRC EQ 0.
      P_FILE = L_PATH.
    ENDIF.

Regards

vijay

Read only

Former Member
0 Likes
673

Hi Ravi,

Check out this Link too ..

http://abap4.tripod.com/Directory_Listing.html

Regards,

Santosh