how to use object based exception combined with message class in SE91
生活随笔
收集整理的這篇文章主要介紹了
how to use object based exception combined with message class in SE91
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Created by Wang, Jerry, last modified on Dec 20, 2014
創(chuàng)建一個新的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的原創(chuàng)文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的how to use object based exception combined with message class in SE91的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 荣耀 MagicBook 14 2023
- 下一篇: 香港赛马会开发笔记