hi
in gui_download there is parameter filename.
to get directory use the code below
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
CHANGING
file_name = P_FILE.
populate P_FILE to filename of gui_download.
another way is by using the class cl_gui_frontend_services.
hope this solves ur query....