Hi Team,
There is a need to create level hierarchy based on the BW Hierarchy table (H table) in HANA.
So we ideally replicate the same H table in HANA and then create a scripted calculation view to create level hierarchy.
Now I am able to write a static SQL statement to create a level hierarchy for 3 levels of hierarchy data.
But as we know there might be multiple level of hierarchies in BW table and script should be intelligent enough to create as many rows as per the levels in the H table.
In this case I think we need to use the dynamic sql statement. Can somebody help me how can we use dynamic SQL to generate columns dynamically in HANA?
Example:- If I have 5 levels in BW H table then SQLScript should be able to create 5 columns dynamically.
Appreciate your response here.
Thanks & Regards,
Anup