mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
ENHS: catch exception
This commit is contained in:
parent
47e91752fe
commit
48d83fe675
|
@ -30,8 +30,12 @@ CLASS lcl_object_enhs IMPLEMENTATION.
|
||||||
|
|
||||||
lv_spot_name = ms_item-obj_name.
|
lv_spot_name = ms_item-obj_name.
|
||||||
|
|
||||||
|
TRY.
|
||||||
li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ).
|
li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ).
|
||||||
li_spot_ref->get_attributes( IMPORTING changedby = rv_user ).
|
li_spot_ref->get_attributes( IMPORTING changedby = rv_user ).
|
||||||
|
CATCH cx_enh_root.
|
||||||
|
rv_user = c_user_unknown.
|
||||||
|
ENDTRY.
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user