cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the key value of child entity in RAP managed scenario?

robson_soares
Participant
0 Kudos

Hi,

In the RAP managed app we have two entities: parent and child.

I need to define the child's key dynamically.

Is it possible in managed scenario? I tried using CDS determination behavior definition (on save, create), but the assigned value is not being written to the table.

If it is possible, how can I set the value?

Thanks!

View Entire Topic
Ramjee_korada
Active Contributor

Hi Robson,

If you can decide value before, then go for early numbering,

If it is not draft , then go for late numbering.

If it is draft and you can't decide value early, then go for GUID as key and your existing key as non key field.

Best wishes,

Ramjee Korada

robson_soares
Participant
0 Kudos

Hi Ramjee,

Thank you so much!

With your help I found the @Dhananjay Hegde's article How to use Early Numbering with Semantic Keys – RAP Managed BO and solved my problem.

Best Regards!