cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Set Nullable Property on SAP RAP based OData V4

5,086

Hello Community,

I created an OData V4 Service to read data with RAP (CDS Views) based on a SAP Standard Table BNKA.

In the metadata any string are stated as Nullable="false".

For non key fields I would expect that fields can be null.

Can this be influenced via cds?


With Odata V2 the nullable property is optional and thus not mentioned when publishing the same service.

However i did not find the default value for the field if it is not declared.

What is the default value for nullable if not provided in OData V2?

View Entire Topic
0 Kudos

Hello Tudor,

I found this attribute in the cds annotation syntax ABAP CDS - Framework-Specific Annotation Syntax - ABAP Keyword Documentation (sap.com)
But as per my understanding it is only available in S/4 Cloud.

As I have an OnPrem System available i get an error when trying it.