Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Gateway Developer Center
Viewing all articles
Browse latest Browse all 1657

Hierarchy in Gateway?

$
0
0

Hello Friends,

 

We have scenarios as similar to SAP BOM where it has Root material and has multi level hierarchy. We have few scenarios where one product unit(BOM) can have 100 materials in more than 50 levels. So is it possible to build the JSON in a parent child format.

 

For example. I have flat BOM table with parent child relationship as shown below.

 

IDParentText
A0Material A
A1AMaterial A1
A11A1Material A11
A12A1 Material A12
A2AMaterial A2
A21A2Material A21
A21.1A21Material A21.1
A21.2A21Material A21.1
A22A2Material 22

 

And I would expect the JSON in gateway as below.

 

--A

    --A1

       --A11

       --A12

    --A2

       --A21

           --A21.1

           --A21.2

       --A22

 

Is it possible to build the hierarchy is Gateway using Association/Navigation for single Entity set by having recursive references. I have already tried with GET_DEEP_ENTITYSET and $EXPAND ways.

 

We can easily do this using XSJS but aim is to support for NON HANA systems. Please suggest how to achieve multi level(hierarchy) in Gateway.


Viewing all articles
Browse latest Browse all 1657

Trending Articles



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