Application Development and Automation 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: 
Read only

Path and File Input Parameter

fabio_bellocchio
Participant
0 Likes
3,685

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
Read only

Former Member
0 Likes
1,893

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
Read only

Former Member
0 Likes
1,894

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

Read only

0 Likes
1,893

Hi Sathar,

that is perfect !

Thank you very much !

Best regards.

Read only

0 Likes
1,893

Thanks for your explain.