2009 Dec 03 4:36 AM
Hi SDN,
please, how to define 2 separate input parameters on a report: Path and File, for download?
I did define an input type localfile, but this is the whole path + file name.
I need to split it in two input parameters, with a search help for the Path.
Does anyone have a hint ?
Regards,
Fabio
2009 Dec 03 4:57 AM
Hi Fabio
Hope this is what you are looking for.
DATA: lv_file TYPE rlgrap-filename.
PARAMETERS: p_path TYPE string OBLIGATORY,
p_fname TYPE string OBLIGATORY.
AT SELECTION-SCREEN on VALUE-REQUEST FOR p_path.
CALL METHOD cl_gui_frontend_services=>directory_browse
CHANGING
selected_folder = p_path.
START-OF-SELECTION.
CONCATENATE p_path '\' p_fname '.xls' INTO lv_file.
Regards
Sathar
2009 Dec 03 4:57 AM
Hi Fabio
Hope this is what you are looking for.
DATA: lv_file TYPE rlgrap-filename.
PARAMETERS: p_path TYPE string OBLIGATORY,
p_fname TYPE string OBLIGATORY.
AT SELECTION-SCREEN on VALUE-REQUEST FOR p_path.
CALL METHOD cl_gui_frontend_services=>directory_browse
CHANGING
selected_folder = p_path.
START-OF-SELECTION.
CONCATENATE p_path '\' p_fname '.xls' INTO lv_file.
Regards
Sathar
2009 Dec 03 5:43 AM
Hi Sathar,
that is perfect !
Thank you very much !
Best regards.
2014 Jan 23 12:31 PM