Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Creating a parent child relationship

$
0
0

Hi ,

 

I want to create an odata web service which would output a json which has attribute children.

 

Children can again have children.

 

E.g :

 

{

           "chainid":1,

            "docuid":1,

            "backrefid":0,

            "docnr":"4500005376",

            "doctyp":"",

            "name":"PurchaseOrder",

            "username":"KRICK",

            "docdate":"\/Date(1391040000000)\/",

            "doctime":"PT00H00M00S",

            "docyear":"0000",

            "node":"",

            "colorcode":"",

            "tabname":"EKKO",

            "awkey":"",

            "awtyp":"",

            "bukrs":"0001",

            "image":"images/email_64.png",

             "children": [

             {

              "chainid":1,

            "docuid":2,

            "backrefid":1,

            "docnr":"5000004089",

            "doctyp":"",

            "name":"MM GoodsMvnt",

            "username":"KRICK",

            "docdate":"\/Date(1391040000000)\/",

            "doctime":"PT10H44M35S",

            "docyear":"2014",

            "node":"",

            "colorcode":"G",

            "tabname":"MKPF",

            "awkey":"",

            "awtyp":"MKPF",

            "bukrs":"",

            "image":"images/email_64.png",

            } ] }

 

Any idea on how to implement this using entity set or otherwise?

 

Thanks in advance.

 

Regards,

Sumant


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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