Employee Assign Organization unit
生活随笔
收集整理的這篇文章主要介紹了
Employee Assign Organization unit
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Created by Jerry Wang, last modified on Jun 18, 2014
搜索Employee時(shí)返回的result list里有Org unit ID: 但是Employee overview page里沒有地方顯示或者修改該Org unit id: 使用下列report 輸入employee id,輸出assigned org unit id:? PARAMETERS: id TYPE but000-partner OBLIGATORY DEFAULT '4031140'. DATA: lo_core ? ? ? ? ? ? ? ?TYPE REF TO cl_crm_bol_core, lo_collection ? ? ? ? ?TYPE REF TO if_bol_entity_col, lo_root_entity ? ? ? ? TYPE REF TO cl_crm_bol_entity, 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, lv_size ? ? ? ? ? ? ? ?TYPE i. START-OF-SELECTION. ls_selection_parameter-attr_name = 'PARTNER'. ls_selection_parameter-option = ?'EQ'. ls_selection_parameter-sign = 'I'. ls_selection_parameter-low = ?id. APPEND ls_selection_parameter TO lt_selection_parameter. ls_query_parameters-max_hits = 1. lo_core = cl_crm_bol_core=>get_instance( ). lo_core->load_component_set( 'PROD_ALL' ). lv_query_name = 'BuilEmpAdvancedSearch'. 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_result) = lo_collection->get_first( ). ASSERT lo_result IS NOT INITIAL. WRITE: / 'Org unit id: ', lo_result->get_property_as_string( 'ORGEH' ) COLOR COL_NEGATIVE. 發(fā)現(xiàn)最終調(diào)用的是CRM_EMPLOYEE_GETORGUNIT:要獲取更多Jerry的原創(chuàng)文章,請關(guān)注公眾號"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的Employee Assign Organization unit的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 华为浮标怎么关
- 下一篇: ctrlx是什么快捷键