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

How to read application server multiple times?

Former Member
0 Likes
945

Hi.

As a requirement we are reading a file from application server, once its done we are placing that file into other folder, now we need to check whether there are other files present there if yes then process or come out.

Regards

Mohinder

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
901

Hi,

You can use the FM EPS_GET_DIRECTORY_LISTING to get the list of all the file names from the directory in application server with certain naming convention (use file_mask parameter) into one internal table and process them accordingly.

Regards,

Dwaraka.S

Edited by: Dwarakanath Sankarayogi on Jan 30, 2009 8:57 AM

Hi.

As a requirement we are reading a file from application server, once its done we are placing that file into other folder, now we need to check whether there are other files present there if yes then process or come out.

Regards

Mohinder

5 REPLIES 5
Read only

Former Member
0 Likes
902

Hi,

You can use the FM EPS_GET_DIRECTORY_LISTING to get the list of all the file names from the directory in application server with certain naming convention (use file_mask parameter) into one internal table and process them accordingly.

Regards,

Dwaraka.S

Edited by: Dwarakanath Sankarayogi on Jan 30, 2009 8:57 AM

Read only

naveen_inuganti2
Active Contributor
0 Likes
901

Hi.,

What are the file names you searching for? I mean do you have file names(more than one) with you?

If so, you can create the ranges(say).

And loop that ranges internal table to fetch all files from the application server!

Here as of my knowledge there is no alternate other than using READ DATA SET statement repeattedly(like above).

__Naveen Inuganti.

Read only

former_member182354
Contributor
0 Likes
901

Use FM PFL_CHECK_OS_FILE_EXISTENCE for your requirement.

Raghav

Read only

Former Member
0 Likes
901

hi ,

All replies are appreicable. But still doesnt solve purpose.

Regarsds

Mohinder

Read only

Former Member
0 Likes
901

Thanks all.