on 06-28-2018 1:17 PM
Hi gurus,
I need to create a custom costcenter hierarchy for analytics and business doesn't want to create them on ECC. I have as a requirement that the hierarchy has to be automatic maintain from business hierarchy, in other words, I have to create an automatic hierarchy from standard costcenter hierarchy update with 0COSTCENTER_0101_HIER extractor.
What I'm doing it's creating a custom hierarchy with 2 customs text nodes (10001 and 10002). On the hierarchy upload transformation I create an end routine which modifies parentsID of original SubNodes because I need them below to 10001 and 10002 and I delete the main node of source hierarchy. For DTP there is no errors, but the nodes are not included on the custom hierarchy. Do I need to modify something else on the packages to have them included on the custom hierarchy?
The code for end routine is the following one:
LOOP AT SOURCE_PACKAGE_3 ASSIGNING <source_fields_3>.
lv_index = sy-tabix.
IF <source_fields_3>-h_hiernode EQ 'MAIN_NODE'.
DELETE SOURCE_PACKAGE_3 INDEX lv_index.
CONTINUE.
ENDIF.
IF <source_fields_3>-h_iobjnm EQ '0HIER_NODE' AND
<source_fields_3>-h_hiernode EQ 'SUB_NODE_A'.
<source_fields_3>-h_parentid = 10001.
ELSEIF <source_fields_3>-h_iobjnm EQ '0HIER_NODE' AND
<source_fields_3>-h_hiernode EQ 'SUB_NODE_B'.
<source_fields_3>-h_parentid = 10002.
ENDIF.
ENDLOOP.
CALL METHOD cl_rstran_gen_step_hier_split=>reset_interval_nodes
EXPORTING
i_iobjnm = '0COSTCENTER'
i_t_intervals = SOURCE_PACKAGE_5
CHANGING
c_t_nodes = SOURCE_PACKAGE_3.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.