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

FM TMP_GUI_directory_list_files

Former Member
0 Likes
1,339

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
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,011

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 --

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

2 REPLIES 2
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,012

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 --
Read only

0 Likes
1,011

Hi Tomas,

Thanks  I got the  solution now.

regards

syamal