cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy initial data from CSV on a field with @readonly annotation

05-07-2026 2:53 PM
Tesnimk Product and Topic Expert
243 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

Hi CAP community,

I am trying to update our CDS model by using @readonly annotation for one of our fields. 

Based on provided documentation Declarative Constraints | capire , I've understood that this will permit to ignore the field value on both Create and Update operation.

My question here is: will this impact deploying initial data for that field for that field using CSV file ? should I expect a regeneration of this table artifact with a different column definition when using @readonly annotation?

BR,

Tesnim

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

sravan_aleshwaram
Active Participant
0 Likes

Hello

@readonly does NOT change DB table structure
It only prevents write (create/update) via service

@readonly is service-level restriction only, no DB or deployment impact.


Thanks,
Sravan