抛出异常举例:
TRY.
CREATE OBJECT fault.
CLEAR: gt_cust_r,gt_cust_r[].
CALL TRANSFORMATION id
SOURCE XML i_json
RESULT itable = gt_cust_r.
IF gt_cust_r[] IS INITIAL.
l_mtype = 'E'.
l_mssag = '转换有错误!'.
ENDIF.
CATCH cx_xslt_format_error INTO fault.
CALL METHOD fault->get_text
RECEIVING
result = l_mssag.
l_mtype = 'E'.
ENDTRY.