Tam dosya yolunu klasör (dizin), dosya adı, uzantı olarak ayırma

DSVAS_DOC_FILENAME_SPLIT fonksiyonu ile tam dosya yolu ayrıştırılabilir

Import
 PF_DOCID :  C:USERSMDOWNLOADSUPLOADORNEK_ANCHOR.XLSX

Export
 
PF_DIRECTORY                  C:USERSMDOWNLOADSUPLOAD
 
PF_FILENAME                     ORNEK_ANCHOR.XLSX
 
PF_EXTENSION                    XLSX


form f_parse_filename using     prm_fullpath type localfile
                      changing  ch_filename  type        localfile
                                ch_extension type    DSVASDOCID .

  data: lv_fullpath type DSVASDOCID.
  data: lv_dir type DSVASDOCID.
  data: lv_filename type DSVASDOCID.
  data: lv_ext type DSVASDOCID.

  lv_fullpath = prm_fullpath.
  call function `DSVAS_DOC_FILENAME_SPLIT`
    exporting
      pf_docid           = lv_fullpath
   IMPORTING
     PF_DIRECTORY       = lv_dir
     PF_FILENAME        = lv_filename
     PF_EXTENSION       = lv_ext
            .
  ch_filename = lv_filename.
  ch_extension = lv_ext.

endform.