正如 Horst Keller 在他的ABAP 和 JSON帖子中提到的,“ABAP 原生支持 7.02 和 7.03/7.31 (Kernelpatch 116) JSON”。
显然 7.02 在我的情况下太通用了,因为下面的行:
writer = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ).
返回错误:"The field CO_XT_JSON is unknown, but there is a field with the similar name CO_XT_XOP".
那么有什么方法可以轻松生成 JSON 呢?
编辑:来自 SAP 的屏幕截图 - 状态