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.
|
||||
|
||||
li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ).
|
||||
li_spot_ref->get_attributes( IMPORTING changedby = rv_user ).
|
||||
TRY.
|
||||
li_spot_ref = cl_enh_factory=>get_enhancement_spot( lv_spot_name ).
|
||||
li_spot_ref->get_attributes( IMPORTING changedby = rv_user ).
|
||||
CATCH cx_enh_root.
|
||||
rv_user = c_user_unknown.
|
||||
ENDTRY.
|
||||
|
||||
ENDMETHOD.
|
||||
|
||||
|
@ -141,7 +145,7 @@ CLASS lcl_object_enhs IMPLEMENTATION.
|
|||
METHOD lif_object~exists.
|
||||
|
||||
DATA: lv_spot_name TYPE enhspotname,
|
||||
lv_tool TYPE enhspottooltype,
|
||||
lv_tool TYPE enhspottooltype,
|
||||
li_spot_ref TYPE REF TO if_enh_spot_tool.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user