Application Development 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: 

Get filesfrom application server

sun_light
Explorer
0 Kudos
317

Hi i need sample code with this requirement:

Get all the filenames from particular directory of application server which starts with 'abc' and then pass it to internal table,

Then based on the field from files, i want to find the type of that file like pdf, doc, xslx, etc

Finally show the count of each types of files.

Thanks in advance...

1 ACCEPTED SOLUTION

OlegBash
Active Participant
0 Kudos
236

Please try function

EPS_GET_DIRECTORY_LISTING

4 REPLIES 4

abo
Active Contributor
236

Nice little exercise, would be a pity if someone were to solve it 😉

OlegBash
Active Participant
0 Kudos
237

Please try function

EPS_GET_DIRECTORY_LISTING

0 Kudos
236

Hi thanks, I used it, how to use file mask as I want to retrive only the files starts with 'inv'

OlegBash
Active Participant
0 Kudos
236

The function has parameters:

DIR_NAME <- full path to directory

FILE_MASK <- you can use for file filtering by mask with star-sign e.g. begin_of_file*