method read_parent.
data: lo_uja_dim type ref to cl_uja_dim.
data: lo_hier type ref to if_uja_hier.
try.
create object lo_uja_dim
exporting
i_appset_id = i_appset_id
i_dimension = i_dimension.
catch cx_uja_admin_error.
endtry.
try .
lo_hier = lo_uja_dim->get_hier_ref( i_hier_name ).
catch cx_uja_admin_error.
endtry.
call method lo_hier->get_parents
exporting
i_member = i_parent_mbr
i_level = 99
if_self = 'X'
* if_parent_after = ABAP_FALSE
* if_up2level = ABAP_TRUE
* i_application_id =
* if_check_formula_only = ABAP_FALSE
* if_stop_on_member_denied = ABAP_FALSE
importing
et_mbr_name = et_data
et_mbr_node = et_mbr_node.
endmethod.
获取节点1000700000在H1层级的所有父节点
data: lt_dim_mbr type uja_t_dim_member.
data: lt_mbr_node type uja_t_mbr_node.
call method zcl_bpc_tool3=>read_parent_chld
exporting
i_appset_id = 'SINOTRUK'
i_dimension = 'T_ENTITY'
i_hier_name = 'PARENTH1'
i_parent_mbr = '1000700000'
importing
et_data = lt_dim_mbr
et_mbr_node = lt_mbr_node.