IPM: Technical model of IP right scope on Contract Item level
Created by Jerry Wang, last modified on Mar 25, 2014
Acquisition contract上維護了一系列作為其行項目的IP信息。
?
?
?
以第三個行項目(line item id = 30 ) 為例,其right scope detail 信息如下:
?
?
?
1. open GENIL_BOL_BROWSER:
?
?
?
以contract ID作為查詢條件:
?
?
?
會得到唯一的搜索結果,然后執行BTOrderHeader relation:
?
?
?
2. 得到唯一的navigation結果BTAdminH,再執行relation BTHeaderItemsExt:
?
?
?
得到一個result collection BTItems:
?
?
?
執行relation BTItemsFirstLevel:
?
?
?
這樣就得到了第三個行項目:
?
?
?
BTAdminI->BTItemIPMRcharSet:
?
?
?
?
?
?
?
?
?
?
如果想通過代碼獲得合同里第三個IP對應的right scope,可以參考下面的report:
?
?
PARAMETERS:
????????????order?TYPE?crmd_orderadm_h-object_id?OBLIGATORY?DEFAULT?'5600000010'.
DATA:?lo_core????????????????TYPE?REF?TO?cl_crm_bol_core,
??????lo_collection??????????TYPE?REF?TO?if_bol_entity_col,
??????lv_query_name??????????TYPE?crmt_ext_obj_name,
??????lt_selection_parameter?TYPE?genilt_selection_parameter_tab,
??????ls_selection_parameter?TYPE?genilt_selection_parameter,
??????ls_query_parameters????TYPE?genilt_query_parameters.
ls_selection_parameter-attr_name?=?'OBJECTID'.
ls_selection_parameter-option?=??'EQ'.
ls_selection_parameter-sign?=?'I'.
ls_selection_parameter-low?=??order.
APPEND?ls_selection_parameter?TO?lt_selection_parameter.
ls_query_parameters-max_hits?=?1.
lv_query_name?=?'BTAdvQueryAUI'.
lo_core?=?cl_crm_bol_core=>get_instance(?).
lo_core->load_component_set(?'BT'?).
lo_collection?=?lo_core->dquery(
????????iv_query_name???????????????=?lv_query_name
????????it_selection_parameters?????=?lt_selection_parameter
????????is_query_parameters?????????=?ls_query_parameters?).
DATA(lo_contract)?=?lo_collection->get_current(?).
CHECK?lo_contract?IS?NOT?INITIAL.
DATA:?lr_item_handler?TYPE?REF?TO?cl_crm_ipm_item_handler.
CREATE?OBJECT?lr_item_handler?EXPORTING?iv_header_bol_entity?=?lo_contract.
DATA(ips)?=?lr_item_handler->get_all_ips(?).
DATA(third)?=?ips->find(?iv_index?= 3?).
DATA(scopes)?=?lr_item_handler->get_all_level_rights_scopes( third?).
?
總結
以上是生活随笔為你收集整理的IPM: Technical model of IP right scope on Contract Item level的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IPM: 使用代码删除Acquisiti
- 下一篇: 三星Galaxy Tab S9系列最新爆