2009 Sep 17 4:50 PM
Hello Experts,
Is there a FM to get Directory name on selection screen when the users hit F4, kinda like "KD_GET_FILENAME_ON_F4" for getting the filename?
Thanks.
2009 Sep 17 5:54 PM
you can call method directory_get from class cl_gui_frontend_services on the at selection-screen on value request for p_dir.
currently i am not infront of SAP system.. so just open the class in SE24 and see the methods for directory...
Edited by: Soumyaprakash Mishra on Sep 17, 2009 10:25 PM
you can call method directory_get from class cl_gui_frontend_services on the at selection-screen on value request for p_dir.
currently i am not infront of SAP system.. so just open the class in SE24 and see the methods for directory...
Edited by: Soumyaprakash Mishra on Sep 17, 2009 10:25 PM
2009 Sep 17 5:14 PM
2009 Sep 17 5:59 PM
Hi,
This FM is also selecting the filename but not the directory. Thanks though.
2009 Sep 17 6:04 PM
Try this....
TMP_GUI_BROWSE_FOR_FOLDER
Prabhudas
Edited by: Prabhu Das on Sep 17, 2009 10:35 PM
2009 Sep 17 6:06 PM
AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.
DATA: l_dir TYPE string.
* Browse the Directories
CALL METHOD cl_gui_frontend_services=>directory_browse
* EXPORTING
* WINDOW_TITLE =
* INITIAL_FOLDER =
CHANGING
selected_folder = l_dir
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4
this is what you need i guess..
.
2009 Sep 17 9:05 PM
2009 Sep 17 5:54 PM
you can call method directory_get from class cl_gui_frontend_services on the at selection-screen on value request for p_dir.
currently i am not infront of SAP system.. so just open the class in SE24 and see the methods for directory...
Edited by: Soumyaprakash Mishra on Sep 17, 2009 10:25 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |