F4 Dosya ile Dosya seçimi
KD_GET_FILENAME_ON_F4 fonksiyonun kullanımı
PROCESS ON value-REQUEST.
FIELD GS_XLS_SELECTION-FILE_PATH module m_F4_FILENAME.
*-------------------------------------
module M_F4_FILENAME input.
perform f_f4_path_OPEN changing gs_xls_selection-file_path .
endmodule. " M_F4_FILENAME INPUT
*-------------------------------------
form f_f4_path_open changing chn_flpath type localfile.
call function `KD_GET_FILENAME_ON_F4`
* EXPORTING
* PROGRAM_NAME = SYST-REPID
* DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = ` `
* STATIC = ` `
* MASK = ` `
* FILEOPERATION = `R`
* PATH =
changing
file_name = chn_flpath
* LOCATION_FLAG = `P`
* EXCEPTIONS
* MASK_TOO_LONG = 1
* OTHERS = 2
.
if sy-subrc <> 0.
* Implement suitable error handling here
endif.
endform. "f_f4_path