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: 

How to read Files data for a directory in AL11

0 Kudos
4,824

Hello experts,

I created a parameter on my selection screen where the user can put a path like C:\INTERFACES\....

PARAMETERS : arc2purg LIKE rlgrap-filename.

And I want to know if there is any FM that can read data from AL11 from this directory of my selection screen paramater ?

Thanks in advance

1 ACCEPTED SOLUTION

ayushijain2
Explorer
3,629

Hi Anass,

Use the Function Module 'EPS2_GET_DIRECTORY_LISTING' to get all the file names in a particular directory (in your case Selection Screen Parameter), then for each file path use OPEN DATA SET, READ DATA SET and CLOSE DATA to get the file data.

Hope this helps.

Thanks

Ayushi Jain

2 REPLIES 2

ayushijain2
Explorer
3,630

Hi Anass,

Use the Function Module 'EPS2_GET_DIRECTORY_LISTING' to get all the file names in a particular directory (in your case Selection Screen Parameter), then for each file path use OPEN DATA SET, READ DATA SET and CLOSE DATA to get the file data.

Hope this helps.

Thanks

Ayushi Jain

3,629

Thank you so much Ayushi, that is exactly what I am looking for !