300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > how to use object based exception combined with message class in SE91

how to use object based exception combined with message class in SE91

时间:2018-10-27 14:16:22

相关推荐

how to use object based exception combined with message class in SE91

Created by Wang, Jerry, last modified on Dec 20,

创建一个新的ABAP异常类,确保Class Type选择成Exception Class,并勾上With Message Class的勾。

use the following code to raise and catch exception: ```abap data: lo_own TYPE REF TO ZCX_RTTC_WRAPPER1, lv_text TYPE string, lo_root TYPE REF TO cx_root. CREATE OBJECT lo_own EXPORTING textid = zcx_rttc_wrapper1=>OUT_DEL_NOT_RELEASED. lo_own->ms_out_del_id = 'test1'. TRY. RAISE EXCEPTION lo_own. CATCH cx_root INTO lo_root. lv_text = lo_root->get_text( ). BREAK-POINT. ENDTRY . ```

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。