cancel
Showing results for 
Search instead for 
Did you mean: 

RAP - Child node level 3 - UUID not being saved

jorgecarvalhoaw
Explorer
0 Kudos

Hello,

I'm creating an APP based on RAP - managed version. My hierarchy looks like this:
1. Business Partner (root node)

1.1 Supplier (child node level 1)

1.1.1 Supplier Company (child node level 2)

1.1.1.1 Supplier With Holding Tax (child node level 3)

All UUIDs are being correctly generated for the first 3 nodes, but for the last one it does not map the supplier UUID as can be seen in the image. It's like it loses the link between the 4th and 2nd nodes and then it does not save it in the custom database table

I've seen several examples but sadly all of them don't go further the 3rd level. Is there any known limitation to this? Or is there anything I could be missing on my behavior definition?

Thanks in advance,

Jorge

jorgecarvalhoaw
Explorer
0 Kudos

andre.fischer sorry to bother, but can you please give an hint here? Your name came to my mind from the openSap course 🙂

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert

Hi Jorge,

Since my answer would have been to lenghty I have posted it as a blog post for your convenience.

How to design managed RAP business objects with 3 or more levels of nodes | SAP Blogs

abap-platform-code-samples-cloud/README.md at main · SAP-samples/abap-platform-code-samples-cloud (g...

You just need one UUID based key fields. And on higher levels you just need to store the UUID value of the key field of the parent entity and on deeper levels also the UUID value of the key field of the root entity.

Fortunately I was able to generate this sample quickly using my openSource RAP Generator .

Hope this helps,

Kind regards,

Andre

Answers (0)