Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Path and File Input Parameter

fabio_bellocchio
Participant
0 Kudos
2,427

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
635

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

3 REPLIES 3

Former Member
0 Kudos
636

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

0 Kudos
635

Hi Sathar,

that is perfect !

Thank you very much !

Best regards.

0 Kudos
635

Thanks for your explain.