cancel
Showing results for 
Search instead for 
Did you mean: 

Complex business entity

vishnucta
Active Participant
0 Kudos

Hi Guys,


Can you provide me proper method in doing 'complex business entity using odata service' .I tried implementing '/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_DEEP_ENTITY' .I was trying PO item wise approval scenario where i tried to use Http POST method so that i can pass the Items to be approved through the XML payload.

regards,

Vishnu


Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Vishnu,

Please refer the below with which u can accomplish ur scenario :

Regards,

Ashwin

vishnucta
Active Participant
0 Kudos

Thanx Ashwin.....the answer was very helpful.

What if the entities doesnt have a common key.???Should we explicitly mention or add common properties in the entities.

Regards,

Vishnu

AshwinDutt
Active Contributor
0 Kudos

Hello Vishnu,

Its ok if ur entities doesn't have a property in common. No need to add.

U can still go ahead and create association & navigation between entities with out referential constraints.

Regards,

Ashwin

vishnucta
Active Participant
0 Kudos

But while syntax check it showed the error that there is no common key properties.So that i was forced to include  a property in entities and i made it as key,then all of a sudden the error was rectified.

AshwinDutt
Active Contributor
0 Kudos

Hello Vishnu,

U would have got that error because u have tried to create association & navigation as below :

In that case u will be forced to add property in common as key to define referential constraints.

To overcome this u can just directly add as below :

Manually enter the details.

Regards,

Ashwin

Answers (0)