类 : CL_ABAP_CODEPAGE
CALL TRANSFORMATION ID SOURCE LS_APIXML = DT_OUTPUT
RESULT XML DATA(XMLSSS) .
DATA(LV_CONVERT) = CL_ABAP_CODEPAGE=>CONVERT_FROM( XMLSSS ).
*CL_ABAP_BROWSER=>SHOW_HTML( HTML_STRING = LV_CONVERT ).
类 : cl_http_utility
BASE64 的处理
lv_password = |{ gs_data-uname }:{ gs_data-passw }| .
CONDENSE lv_password NO-GAPS .
lv_password2 = cl_http_utility=>encode_base64( lv_password ) .
lv_password2 = |Basic { lv_password2 } | .
JASON 处理 -- /UI2/CL_JSON
*&---解析PM返回的数据
/UI2/CL_JSON=>DESERIALIZE(
EXPORTING
JSON = LV_RESULT
CHANGING
DATA = LS_RESULT
) .
LV_RESULT2 = /UI2/CL_JSON=>SERIALIZE(
DATA = LS_RESULT
COMPRESS = ABAP_FALSE
PRETTY_NAME = /UI2/CL_JSON=>PRETTY_MODE-CAMEL_CASE ) .