Skip to Content
avatar image
Former Member

i want to select file multiple. with WS_FILENAME_GET fm

hi,

i select file with WS_FILENAME_GET fm. but i select just one file. can i select multiple file.

can you help me?

best regards.

Burak.

sapmulti.png (145.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 12, 2015 at 07:47 AM

    Hi,

    this fm is obsolete. Please use method FILE_OPEN_DIALOG of class CL_GUI_FRONTEND_SERVICES. There is a MULTISELECTION parameter available.

    Regards,

    Klaus

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12, 2015 at 09:21 AM

    hi,

    code -

    data FILETABLE type FILETABLE.

    data RC type i.

    constants:

       abap_true      type abap_bool value 'X',

       abap_false     type abap_bool value ' '.

    call method cl_gui_frontend_services=>file_open_dialog

       exporting

         multiselection          = abap_true

       changing

         file_table              = FILETABLE

         rc                      = rc  

             .

    if sy-subrc <> 0.

    * Implement suitable error handling here

    endif.


    Add comment
    10|10000 characters needed characters exceeded