2009 Jul 27 12:15 PM
Hi gurus,
I've created a report which has a selection value fora folder on the server. The idea is to select a folder on the server just like FM TMP_GUI_BROWSE_FOR_FOLDER does for local folders on the PC. Is there a function module/class I can use for this.
kind regards,
Wim
Hi gurus,
I've created a report which has a selection value fora folder on the server. The idea is to select a folder on the server just like FM TMP_GUI_BROWSE_FOR_FOLDER does for local folders on the PC. Is there a function module/class I can use for this.
kind regards,
Wim
2009 Jul 27 12:20 PM
Try this FM: /SAPDMC/LSM_F4_SERVER_FILE
Hope That Helps
Anirban M
2009 Jul 27 12:22 PM
Hi,
Try class CL_GUI_FRONTEND_SERVICES>DIRECTORY_BROWSE.
Regards,
Himanshu Verma
2009 Jul 27 12:41 PM
Thanks for the reply's but CL_GUI_FRONTEND_SERVICES is only for frontend browsing, not on server.
And /SAPDMC/LSM_F4_SERVER_FILE also shows the filenames, I just want the folders.
regards,
Wim
2009 Jul 27 12:29 PM
Hi,
Try this way.
Thanks
Venkat.O
"use the below function module it can use both for application and presentation...
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'A' "a for application path and P for presntation palth
i_server = ' '
i_path = w_path
filemask = ' '
fileoperation = 'R'
IMPORTING
o_path = w_path.
"or use the below function module..
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = w_path "if any directory you want to show defalt
filemask = ' '
IMPORTING
serverfile = w_path. "the return file stores here