cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform EML create by association of a grandchild tree

atoshio
Explorer
965

Hi, based on "How to design managed RAP business objects with 3 or more levels of nodes" i have In my scenario i have Header > Detail > Subdetail and need to perform EML creation of the grandchild Subdetail node, but i had no success on that.

Could you help me in this question?

Accepted Solutions (1)

Accepted Solutions (1)

j_pavan_kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Angelo,

Please follow the EML for create deep entity use case.

Syntax for CREATE (BY association)

MODIFY ENTITIES OF RootEntityName " name of root CDS view

ENTITY entity_1_name " alias name

CREATE FROM it_instance1_c

CREATE BY \association1_name FROM it_instance1_cba

...

ENTITY entity_2_name " alias name

CREATE BY \association2_name FROM it_instance2_cba

...

[FAILED DATA(it_failed)]

[MAPPED DATA(it_mapped)]

[REPORTED DATA(it_reported)].

Thanks,

Pavan

atoshio
Explorer

I've created Header and Detail(Child) this way, but to create Subdetail(subnode of child) I read the Details from the base using READ BY ASSOCIATION passing headeruuid just created and made a loop passing the detailuuid to the new entry to be created in subdetail and it had worked.

Thanks a lot

ntt_fcabrera
Discoverer
0 Kudos

Hi Angelo

Could you please eleborate further on your solution, as we ran into the same issue.
Would you have an example of the structure from the create->Subdetail?
Also did you use the managed CRUD operations for the managed BOs?

Appreciate already your time and approach for the help.
Best regards,
Francis

Answers (0)