mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 13:03:01 +08:00
fix exists, fix alignment
This commit is contained in:
parent
b52cfb09df
commit
3bfb008e26
|
@ -134,16 +134,19 @@ CLASS lcl_object_enho IMPLEMENTATION.
|
||||||
|
|
||||||
METHOD lif_object~exists.
|
METHOD lif_object~exists.
|
||||||
|
|
||||||
DATA: ls_tadir TYPE tadir.
|
DATA: lv_enh_id TYPE enhname.
|
||||||
|
|
||||||
* todo, it should look up in the ENHO database tables or call some methods
|
|
||||||
* to see if the object exists, looking in TADIR will not work
|
lv_enh_id = ms_item-obj_name.
|
||||||
ls_tadir = lcl_tadir=>read_single(
|
TRY.
|
||||||
iv_object = ms_item-obj_type
|
cl_enh_factory=>get_enhancement(
|
||||||
iv_obj_name = ms_item-obj_name ).
|
enhancement_id = lv_enh_id
|
||||||
IF ls_tadir IS NOT INITIAL.
|
bypassing_buffer = abap_true ).
|
||||||
rv_bool = abap_true.
|
rv_bool = abap_true.
|
||||||
ENDIF.
|
CATCH cx_enh_root.
|
||||||
|
rv_bool = abap_false.
|
||||||
|
ENDTRY.
|
||||||
|
|
||||||
ENDMETHOD. "lif_object~exists
|
ENDMETHOD. "lif_object~exists
|
||||||
|
|
||||||
METHOD lif_object~serialize.
|
METHOD lif_object~serialize.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user