Introduction
My earlier blog( http://scn.sap.com/community/erp/hcm/blog/2012/12/29/new-org-chart-functionality) gives a decent introduction on the new features of NAKISA based Org Chart in EHP6 which was purely a "Functional " blog. This document demonstrates the steps to create a custom application leveraging this Standard Org Chart functionality.
Quick Background
SAP has provided a Standard SAP Component - HIER_VIS_UI_WRAPPER which renders the Org Chart based on the data passed. The Org Chart i.e. Adobe Flash file is attached to this component as MIME Object -
We are going to use the SAP delivered hierarchy - PAO_HIER which has the following definition -
Steps
wd_this->mo_fpm = io_fpm.
wd_this->mo_message_manager = io_fpm->mo_message_manager.
rv_is_multi_instantiable = abap_true.
* Hard code the Object ID for now -
lv_object_key = '01 P 10002408'.
* Instantiate the Used Component and call the Interface method to start the render the hierarchy -
lo_cmp_usage = wd_this->wd_cpuse_ui_dataprovider( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
WD_THIS->lo_INTERFACECONTROLLER = wd_this->wd_cpifc_ui_dataprovider( ).
WD_THIS->lo_interfacecontroller->reset_application(
EXPORTING
iv_hier_vis_app = 'PAO_HIER' "Hierarchy name iv_object_key = lv_object_key " hier_vis_obj_key
iv_search_relevant = abap_True " boole_d
iv_selection_required = abap_true " boole_d
IMPORTING
e_ui_on = lv_nakisa_switch " boole_d ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |