Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Table Updates using BOPF

former_member325225
Participant
0 Kudos
1,119

Hi Experts,

There are 2 Custom Tables - Header and Item.

For each entry in Header, we may have 0..* corresponding records in Item table.

We have created CDS View for each table and we have created association between them. We have created BOPF from these CDS views using CDS annotations. The CDS View has been published as OData service using CDS annotations.

We have a requirement to update a Header table field (say, ItemCount) whenever we create a corresponding new Item entry using OData Service.

How can this be achieved with CDS View/BOPF?

Regards,

Jiten

1 REPLY 1

cwolter90
Participant
0 Kudos
106

You can create a BOPF Determination on the header node which is triggered when an item is created.