Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Query on Hierarchy build

$
0
0

Hi Frzz,

 

I have complex requirement with respect to Hierarchies in HANA.

 

This is related to PS in which we have filds Header , Actvity and  Element. Header is the top node. Each Header can have multiple Activities. With in activies we have Elements.

 

I have to generate the fields Activites and Elements based on the table information.

 

But the source table contains as like below.

 

Header CounterActNode
700110010  
700120020
7001300301
7001400402
7001500502
700210010
700220020
7002300302
7002400402

 

 

Output:

 

Header ActivityElement
70017001 00107001 0010 0030
70017001 00207001 0020 0040
70017001 00207001 0020 0050
70027002 0010
70027002 00207002 0020 0030
70027002 00207002 0020 0040

 

 

In the above result the Activity and Element is comuted based on the Node and  counter. If node value is 1 then the value should come under the corresponding counter hearder node.

 

Can some one guide me to achive above requirement.

 

best Regards,

Krishna.


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>