SAP CAP Blog Posts
cancel
Showing results for 
Search instead for 
Did you mean: 

CDS provides a set of common types and aspects for reuse in CDS models, so we can avoid reinventing the wheel each time. Moreover, we end up with concise models that are easier to understand, and our models are more interoperable.

In this set, there's the managed aspect which adds four elements to an entity, and each of those four elements will be automatically filled with data on write-semantic operations on the entity. The definition of this aspect uses annotations to determine the events on which the data is written.

According to the Capire documentation, what is the annotation that is used in the definition of elements in this managed aspect, the annotation which will cause data to be written on UPDATE and UPSERT operations (specify just the @-based name of the annotation, not the entire @NAME: value construct).

This is a question from the June Developer Challenge on CAP Knowledge. And don't forget: always submit your answer as a hash, on its own - read the Taking part section of the intro post for more info. At the end of today, this question will be updated with links to further reading on this topic.

Further info:

78 Comments
qmacro
Developer Advocate
Developer Advocate

(Please ignore the hyperlinked and uppercased "NAME" in the question text, it is the platform's automatic linking of @ prefixed names to members, read it as an @ symbol followed by 'name' in lower case)

qmacro
Developer Advocate
Developer Advocate

0be480087eec6bd47322530209e5e47c47feb04cef434303249985cb2eb4f273

SachinArtani
Active Participant

c48947a8750351f37d08a516ca739cf0c3a298e23af83202e16a3b09eaff21bb

VishnAndr
Active Contributor

c5fe985d92ea2d990aeea96fc43c046da70f59a5bc4a5a41c1a5886f970c6080

qmacro
Developer Advocate
Developer Advocate

@SachinArtani it won't even have a chance at working as you've included extra content in the reply 🙂 Please see the Taking part section for more info.

SachinArtani
Active Participant

@qmacro , I see. I rechecked and now I have updated my response. Hope it's correct now.

qmacro
Developer Advocate
Developer Advocate

@SachinArtani your response still contains extra content - for example, the text "I hope this works -" and the formatting of the hash. See other example responses here for what to do 👍

Mayank_Mittal8
Explorer

988295717bb245ae9d17ac49b7ed364dd58bce1037523339ee78a6073bf8ed95

Sushakude
Discoverer

c25f074d2d9dc9ecf3a5bd7bd0378ea73297701cfc4d35cde91400e2ac4a6653

aryan-11
Explorer

03ba46c8c33222654acfb18a2bb9329c848d50bcf4797651e7f07379b005967d

Greltel
SAP Champion
SAP Champion

b2971068738e67d2d45e05afa2fd9b1bdd46167537ba22205f47f54ceba40a25

tchaitanya
Explorer

7e6294c0bae46a5b5e509a2e8f50ea3e616948e1d4614b111a6a6c4c14c4ceee

PVSBPrasadK
Product and Topic Expert
Product and Topic Expert

c4653f1618ddc8ca4848c2143f4313d4307a4ca8b78c1c96abd3aa5ac836d61e

satya01
Product and Topic Expert
Product and Topic Expert

71cd7a655f8d404ae8b87eaad408d86f70c8936f75ffddf6f634484ae1ef35d2

ajmaradiaga
Developer Advocate
Developer Advocate

518b9ee35e9f83f51b1ef5d4aa3923663a8729a8a98e5e9612dec63d6cbd9b66

GauravPhadnis
Product and Topic Expert
Product and Topic Expert

a28d771cd46e1d8f6a0eeb983eea1aab9f6aebd77a308d7107ab58d9a6292dfb

sudarshan_b
Participant

292c266afa6c2dfb589454de1ebcb121111894a2e9796eaa628570f57f8d2a72

berkaydurmaz
Explorer

fd8c472d761c40487d3ccd15a30876de7bf680fe2a524498788534f101ea3acc

M-Uzi
Explorer

e950edbcafbe433a1bf28a2b2176a3257c8967c97ed7e7edf301370ca79987af

AfshanAnsari
Explorer

be593df11406251031e2a5c015e278995d7861ec47ed7587b9f4a2d8ece26ca3

kasch-code
Participant

91797326b72787b30fe23f052c497bd6fe51081f6dba26568cac58769f697046

mvaibhav
Contributor

da33566f20ac58065a7d2988d355c790eb5edeab7f4e8be01bbe3e763162758d

Rupesh_Kumar25
Explorer

5fc456a877acdc885fed9ebf15ea9c17a52ead48bebc52729c20edb484d8e968

Joery
Participant

b77f10412d674550b4310917a67460466a5c7023f425f30afe655c2a3a7a6a5f

Jawaharch
Newcomer

463fa4bcc4b85c89e08ac0508f42d6fe76aa80dfcea715d786cf9391bc33d5bb

MioYasutake
SAP Champion
SAP Champion

5b5ce6bea2fda0a94f34651cdbb06125dd378595946a2f98705b044094f286da

cayotteRizing
Participant

34fc9ecfe95356f21a8d483da643d991c72f2cf017109531e7228dd36e71a0b4

Chaimae_Chairi27
Participant

655217db5c97ed2333bafe6469a231569e42c45125ba5997d43c8f990daf5c81

sarvesh_agarwal
Explorer

c6c9d11574c2d2618d2ee482855f84830d241239c538351730f9f1701fd23222

3457060eb07a43369c288014950128c1357b0a8864660ecfb78374ba46b24cab

RajeshOlive
Explorer

88772e55e856afc15d2c9114c373766f500a5c906332f3ab3c0ac4c743e

aelghannam
Participant

31df3486909d8519e2e1a7d4d051373dcc125ef170ef669225c47f6f7ba7a83a

furkan5
Participant

 

2eb06229f6adc00cf6e02e697bbf4509eaa875e8d7c361c2b348fbd79087db1e

Henning
Participant

ad5ebb91725b155c51b3b401387bdcf084c889be175e1a5e2c42e234c2c9196e

tobiasz_h
Active Participant

78e99ae6038c8501b437b6314cde802fb35626431783e64f97014904236350ff

TerryClose17
Discoverer

Where can we find the hash configuration?

qmacro
Developer Advocate
Developer Advocate

@TerryClose17 see the link in the description above, specifically the one to 'Taking part' in the part in italics. Or jump directly to the hashing mechanism.

SSaiSanthosh
Discoverer

8c837d30042da220cced802bd2583e67189e477aedec125fdb69ce7e2a7a48b5

shotokka
Explorer

4f6e919fa83f31f65b7710311ae9d3fbf300074a8c339c92a2236d83f189e387

soisses
Explorer

19e07e18fb8deb837018020cfc5f6ad6aba85366a95cb7e09289b5a28fe0a155

nagarjundas_1994
Explorer

3b941108b35b904ec3d372bf450878ad1ce0b0ee7d0b59a1f7a538707958cc50

NakulG
Explorer

33d2139cb69b6bf0293ab17f9512dafb126481972ae0684fdac1fdf80b7cbf2f

PrabhuDC
Explorer

98b86592faea1198bd2ed96a93763c1721d22f52af1e8a6f0afce71c51a58cda

JFenris
Explorer

ef20b62a2f906ba6de6e3bfe98d2f7e0a7deff1df3f904e76d68ee4e7e332ecd

AakankshaWs
Discoverer

a461852863701d990ea46dfa7b39df8dd08262302b2246af64d3c7881f3193c2

MatLakaemper
Participant

d0e16ea4768045c8b26b748dc35d85d41f32ca941f002113f1840e373d96da79

KalyanDittakavi
Explorer

6e152dd4d4ebd605ccc0543c72c14de49b1e71f221758c4f34f2084fd73e790d

SergioG_TX
SAP Champion
SAP Champion

29caad87a2a8638c164c3843bd3ad46a7958b63402f3241ce0ab8e45158c6122

juancarlos_dasilva
Participant

bd4f2a6dd5d0ea15c7de4baa5c30727cc86a7a6e94ad4a440c30eae66e324903

ankitsrivastav
Explorer

9789f72ea7f5add5dc37e05b8cfad8c6b94c6c37f025db04b3c3f19632eb42ee