How to Change hierarchy node name using ABAP Program.
Requirement – There are lot of Bex queries which uses hierarchy node hardcoded .Currently hierarchy maintained at BI and future you are automated by maintaining set hierarchy at ecc side. Your query filtered with node for example “REG IND” but issue is at ecc side you cannot name node with space so if you maintain as “REG_IND” will not show proper result in query.
If you do not wants to change Bex queries because it’s huge effort for modification Bex queries.So you can go for following work around.
Note – It’s always do correct changes at ecc side or modify bex queries with correct node which is coming from ECC.
This blog gives you an idea to change node using abap program.
If you search with “how to change hierarchy node “you will find lot of thread which saying you are not able to change node name in BI but able to change description.
That is correct manually we cannot change but using abap program you can change it.
Step1 – Go to T code Se38
Provide program name and copy following code.
Here our hierarchy info object is zgkb
data: wa_node_change type /BIC/Hzgkb.
update /BIC/Hzgkb set NODENAME = ‘REG IND’
where IOBJNM = ‘0HIER_NODE’
and OBJVERS =’A’
and NODEID = 1
and NODENAME = ‘REG_IND’.
Execute this program as one step after ecc hierarchy load complete through process chain.In this way you can change hierarchy node using ABAP program.
Thanks for reading. Hope it is useful information. 🙂 .