Skip to Content

Path and File Input Parameter

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2009 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.