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.
ID | Parent | Text |
A | 0 | Material A |
A1 | A | Material A1 |
A11 | A1 | Material A11 |
A12 | A1 | Material A12 |
A2 | A | Material A2 |
A21 | A2 | Material A21 |
A21.1 | A21 | Material A21.1 |
A21.2 | A21 | Material A21.1 |
A22 | A2 | Material 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.