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: 

Read FILE NAME

Former Member
0 Kudos

Hi All

I need  read the names from a repository, divide this name in 6 columns and shows it in a table, but I do not how do it. somebody can help me?

regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Omar, Happy new year, can you tell me fields and table that you are using and please give me more details meybe some basic code about the case because this explanation is short.

thanks

3 REPLIES 3

Former Member
0 Kudos

Hi Omar, Happy new year, can you tell me fields and table that you are using and please give me more details meybe some basic code about the case because this explanation is short.

thanks

0 Kudos

Happy new year,

I need to access a specific path repository, retrieve the names of all the PDF files are there, I think I can use the class:

CL_GUI_FRONTEND_SERVICES and method DIRECTORY_LIST_FILES

In the name of each file contain the name of the each column that I will have to show in a table , after retrieve the name of each file I will have to divide it, the symbol that divide the fields inside the filename is "_".

The table where I must show each filename, must have the capability to select one or more rows.

I hope this explanation can help you more

regards

0 Kudos

hi Omar

you can split the file name using blow code:

SPLIT fileName AT '_' INTO itab-col1 itab-col2 itab-col3 itab-col4 itab-col5 itab-col6.

APPEND itab.

regards,

Archer