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: 

FM TMP_GUI_directory_list_files

Former Member
0 Kudos

Hi Friends,

Iam using the function module  TMP_CUI_DIRECTORY_LIST_FILES .I  have kept the file  in the c:\Syamala\Test.txt

I have passed  into the function module path .

I can see there  is no  value  got  returned . Even  though  file has records.

should I pass into thefunction  module  only .xml  file  any think lke that . Please  could any  let  me know how to proceed.

ihave  just given  C:\ and  executed the function  module  it  has  shown me all the folders  but  when I give the c:\Syamala\test.txt

it is not returing any thing.

Thanks & Regards

Syamala

1 ACCEPTED SOLUTION

Tomas_Buryanek
Active Contributor
0 Kudos

This function returns list of files in specified directory.

"c:\Syamala\Test.txt" is not directory but file. Try it with "c:\Syamala\".

And maybe it is better to use this method instead of FM:

CL_GUI_FRONTEND_SERVICES=>directory_list_files.

-- Tomas --
2 REPLIES 2

Tomas_Buryanek
Active Contributor
0 Kudos

This function returns list of files in specified directory.

"c:\Syamala\Test.txt" is not directory but file. Try it with "c:\Syamala\".

And maybe it is better to use this method instead of FM:

CL_GUI_FRONTEND_SERVICES=>directory_list_files.

-- Tomas --

0 Kudos

Hi Tomas,

Thanks  I got the  solution now.

regards

syamal