Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

Deep structure (complex type) in XS HANA OData entity

$
0
0

Hello experts,

 

Lately I created an OData service in SAP Gateway builder which uses a Complex Type to create a deep structure of an entity attribute. It happens automatically when importing an ABAP structure which any of its component type is another ABAP structure.

 

1.png

 

So in my example the field Fcat of entity Products is defined by complex type FCAT.

 

In JSON format this OData service output looks like this

 

2.png

 

Assuming I created following table in HANA XS

 

3.png4.png

 

Would it be possible to create a deep structure in an entity of an OData service in XSJS? What should be the syntax to create it?

 

5.png

How would you achieve it?

 

Many thanks for your help!

 

Regards,

Jaime


Viewing all articles
Browse latest Browse all 3285

Trending Articles



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