mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
SMIM, exists() performance #845
This commit is contained in:
parent
abe9b553a0
commit
fb56b725e4
|
@ -67,14 +67,16 @@ CLASS lcl_object_smim IMPLEMENTATION.
|
||||||
|
|
||||||
METHOD lif_object~exists.
|
METHOD lif_object~exists.
|
||||||
|
|
||||||
TRY.
|
DATA: lv_loio TYPE sdok_docid.
|
||||||
get_url_for_io( ).
|
|
||||||
rv_bool = abap_true.
|
|
||||||
CATCH lcx_not_found.
|
|
||||||
rv_bool = abap_false.
|
|
||||||
ENDTRY.
|
|
||||||
|
|
||||||
ENDMETHOD. "lif_object~exists
|
|
||||||
|
lv_loio = ms_item-obj_name.
|
||||||
|
|
||||||
|
SELECT SINGLE loio_id FROM smimloio INTO lv_loio
|
||||||
|
WHERE loio_id = lv_loio.
|
||||||
|
rv_bool = boolc( sy-subrc = 0 ).
|
||||||
|
|
||||||
|
ENDMETHOD.
|
||||||
|
|
||||||
METHOD get_url_for_io.
|
METHOD get_url_for_io.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user