如何通过parent object ID获得underlying object structure IBASE ID
Created by Jerry Wang, last modified on Sep 07, 2014
通過(guò)object ID ZJERRY0906D2獲得underlying object structure ID: 112450:
?
?
?
?
?
?
?
?
?
?
REPORT ZIBASE_GET_STRUCTURE_BY_OBJ.
PARAMETERS: id TYPE comm_product-product_id OBLIGATORY DEFAULT 'ZJERRY0906D2'.
START-OF-SELECTION.
? data: lv_guid TYPE comm_product-product_guid,
? ? ? ? lv_header TYPE IBAP_HEAD1.
? SELECT SINGLE product_guid FROM comm_product INTO lv_guid WHERE product_id = id.
? CHECK sy-subrc = 0.
? CALL FUNCTION 'PRDIB_GET_STRUCTURE'
? ? EXPORTING
? ? ? iv_object_guid ? ? ? = lv_guid
? ? IMPORTING
? ? ?EV_IBASE_HEAD ? ? ? ?= lv_header
? ?EXCEPTIONS
? ? ?WRONG_CALL ? ? ? ? ? = 1
? ? ?OTHERS ? ? ? ? ? ? ? = 2.
? IF sy-subrc <> 0.
? ? ?WRITE: / 'no underlying object structure existed for current object.' COLOR COL_HEADING.
? ? ?RETURN.
? ENDIF.
? WRITE: / 'Underlying IBASE: ' , lv_header-ibase COLOR COL_NEGATIVE.
?
?
用如下的report也能實(shí)現(xiàn)相反方向的查詢: 通過(guò)IBASE id查到parent object guid:
?
?
總結(jié)
以上是生活随笔為你收集整理的如何通过parent object ID获得underlying object structure IBASE ID的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 5.58万起 五菱荣光新卡上市:2.0L
- 下一篇: 将Object structure IB