cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Dear All

We have a requirement to create an OData Services with complex type . Structure of this type is as follows

Zparent (Structure name)

| name- String

|--------|  Table of ZChild (Structure name)

         |-------- name- string

         |---------value- String

Has anyone tried it and if yes what are the basic fundamental steps to accomplish it

I am a newbie therefore need some guidance

Points will be rewarded

Thanks in advance

Gaurav

0 Likes
View Entire Topic
jibin_joy
Contributor
0 Likes

Hi Gaurav ,

There are two ways to making an complex Entity

    

1. Direct Way -  Adding Complex Type in the Entity

      Problem with this way is that it is a 1:1 relationship . Its behavior like "append" and "include" in DDIC But based on scenario,  nested structure (ZChild) is a  table  so this technique is not possible .

2. In-direct Way -  Making relationship between two entity using association

       Based on my experience ur requirement can be done by creating two entity zparent as well as        zchild .  Cardinality can be handled  in the association corresponding to this entity.

Regards,

Jibin Joy