2007 Oct 02 8:11 PM
Hi
I need to have a "Browse" button with a input/output field. On clicking the button , a pop up window opens with navigation to the Users local computer . So this would enable the user to click on the file and the Path of the file is copied to the input / output field. How can this be achieved ?
2007 Oct 02 8:21 PM
Hi,
Please try this.
PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY LOWER CASE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
static = 'X'
CHANGING
file_name = p_file
EXCEPTIONS
mask_too_long = 1
OTHERS = 2.
Regards,
Ferry Lianto
Hi
I need to have a "Browse" button with a input/output field. On clicking the button , a pop up window opens with navigation to the Users local computer . So this would enable the user to click on the file and the Path of the file is copied to the input / output field. How can this be achieved ?
2007 Oct 02 8:17 PM
hELLO,
Try to call the class for files handling, there is no need to put any button, it will be enough to create a matchcode.
Something like this:
PARAMETERS:
p_desti(128) TYPE c OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_desti.
CALL METHOD cl_gui_frontend_services=>directory_browse
CHANGING
selected_folder = dest.
p_desti = dest.
That´s all
hope this helps
Gabriel
Message was edited by:
Gabriel Fernando Pulido V.
2007 Oct 02 8:21 PM
Hi,
Please try this.
PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY LOWER CASE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
static = 'X'
CHANGING
file_name = p_file
EXCEPTIONS
mask_too_long = 1
OTHERS = 2.
Regards,
Ferry Lianto
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |