Search-Help for path to a local file

Problem: you want to allow user to select a file from one’s PC instead of making one enter the path to the file by hand.

Solution: all you need to do is use FM  WRC_FILENAME_HELP in Search-Help event for the field. For example: 

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_lfile.
  CALL FUNCTION 'WRC_FILENAME_HELP'
    IMPORTING
      selected_filename = p_lfile.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_lfile.
  CALL FUNCTION 'WRC_FILENAME_HELP'
    IMPORTING
      selected_filename = p_lfile.

Komentowanie jest zakończone.