cancel
Showing results for 
Search instead for 
Did you mean: 

Replacement for cl_gui_frontend_services=>directory_list_files

Former Member
0 Kudos

Hi,

- cl_gui_frontend_services=>directory_list_files is no good for WD4A.

I would like to use this same functionality to get a list of files from a local directory so I can later put the file list into an ALV, but the frontend_services won't work for WD4A. Any ideas what will work here?

Thanks,

Josh

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I'm afraid that what you describe is not possible due to browser security restrictions. You can use the fileUpload UI element which in turn opens a file dialog for the user to select a file, but the server side only gets posted back with the selected file - not information about the filesystem. The browser environment is much more sandboxed than the SAPGUI to protect users from malicous websites.

Former Member
0 Kudos

Thank you.

Do you know of any way I can integrate that functionality with my Web Dynpro application?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Maybe I wasn't as clear as I could have been with my first response, but this simply isn't possible. The only possible workaround I could think of would be to use FlashIslands on 7.01 - but I have my doubts about this. Even the Flash Player in the browser is heavily sandboxed. The Flex commands to interact with the file system are only available to AIR applications. I read about some hacks that use C++ executable on the desktop and communicate with via socket connections from Flex. However this is way outside the realm of this discussion forum.

While we are in the realm of really crazy work arounds I suppose you could use the acfExecute in 7.01 as well. You would have to write a desktop application (like in .Net or C++) and distribute to all PCs in your network. You could then start this application using acfExecute. This application could read from the file system. However acfExecute doesn't allow applications to communicate back to Web Dynpro once started. So your desktop application would have to call a web service to post the information back to your server. Your web dynpro application would have to poll and query for this information once uploaded. The whole thing really would be very nice though.

Former Member
0 Kudos

Thank you for your reply and workaround suggestions. Let me ask this as another workaround... would it also be possible to just create a BSP page to do the directory list and nagivate to that page when needed?

Former Member
0 Kudos

After thinking about it, I bet this won't work in BSP either...maybe with javascript though. What if the directory's were mounted in SAP in something like Easy DMS?