DATA: lv_io TYPE skwf_io.
DATA: lv_error TYPE skwf_error.
* Repository-Objekt (MIME) über Pfad suchen
CALL FUNCTION 'SKWF_NMSPC_IO_FIND_BY_ADDRESS'
EXPORTING
url = '/SAP/PUBLIC/xyz.jpg'
appl = wbmr_c_skwf_appl_name " 'MIME'
IMPORTING
io = lv_io
error = lv_error.
IF lv_error-type = 'E'.
ELSE.
WRITE: / lv_io-objid, lv_io-objtype, lv_io-object, lv_io-class.
* Objekttyp
CASE lv_io-objtype.
WHEN skwfc_obtype_folder.
WRITE: / 'Folder'.
WHEN skwfc_obtype_any.
WRITE: / 'Any'.
WHEN skwfc_obtype_loio.
WRITE: / 'Logical object'.
WHEN skwfc_obtype_phio.
WRITE: / 'Physical object'.
WHEN skwfc_obtype_rela.
WRITE: / 'Relation'.
ENDCASE.
TRY.
* Zugriff prüfen
cl_mime_services=>mime_check_authority( i_operation = 'SHOW' " Aktion ('INSERT','MODIFY','SHOW','DELETE')
i_object_io = lv_io ).
DATA: lv_url TYPE skwf_url.
DATA: lv_relative_url TYPE skwf_descr.
DATA: lv_error2 TYPE skwf_error.
* Pfad zum Repository-Objekt (MIME) suchen
CALL FUNCTION 'SKWF_NMSPC_IO_ADDRESS_GET'
EXPORTING
io = lv_io
IMPORTING
url = lv_url
relative_url = lv_relative_url
error = lv_error2.
IF lv_error2-type = 'E'.
ELSE.
WRITE: / lv_url.
WRITE: / lv_relative_url.
ENDIF.
CATCH cx_root INTO DATA(e).
ENDTRY.
ENDIF.