on 10-09-2014 11:56 AM
Hello All,
I wanted to create Odata as below sequence. Please help me how to do this.
"companyCodes":[
{
"CompanyCode":"ABCD",
"Country":"USA",
"Decription":"XXXX -CMPP-US",
"Function":[
{"FunName":"Function_1","Count":16},
{"FunName":"Function_2","Count":13},
{"FunName":"Function_3","Count":0},
{"FunName":"Function_4","Count":4},
{"FunName":"Function_5","Count":8},
{"FunName":"Function_6","Count":0},
{"FunName":"Function_7","Count":0}
]
},
I guess I can achieve it by using deep structure but RFC is not allowing to use deep structure .
Rahul, I would suggest using a code based approach.
First model your entity is SEGW (manually creating entities, associations, navigation), then implement the deep_entity method. (As Venu suggested).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.