[ABAP] Logon Charset ermitteln

TRY.
    DATA(lv_logon_charset) = ||.

    cl_http_utility=>get_logon_charset( IMPORTING id = lv_logon_charset ).
    WRITE: / lv_logon_charset.

  CATCH cx_root INTO DATA(e_txt).
    WRITE: / e_txt->get_text( ).
ENDTRY.