Skip to Content
0
Former Member
Mar 08, 2009 at 12:09 AM

Get directory path. Just the directory path, without the file name.

5801 Views

Hi,

I need to export a file from a table in SAP to a directory in the PC. So i need to get a directory path.

I've been reading the threads but all the answers refer to functions F4_FILENAME, WS_FILENAME_GET, KD_GET_FILENAME_ON_F4 or to the method CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG.

But all of them require to select a file to close the window.

What I need is to get the path to the directory, not to a file.

For example:

I just need to get:

C:\TEMP

and not:

C:\TEMP\file.doc

Please help.

Thanks.