Question:
How to get the path of file in SAP server?
Answer:
If you mean in ABAP code then use something like the following:
constants: begin of c,
filetype like rlgrap-filetype value 'ASC',
end of c.
selection-screen begin of block b9 with frame title title4.
parameters:
p_file like rlgrap-filename obligatory.
selection-screen end of block b9.
at selection-screen on value-request for p_file.
*" F4 for filename / Filemanager support to locate file in a directory
call function 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = 'P_FILE'
IMPORTING
file_name = p_file.
Russell