on 2023 Aug 07 11:37 AM
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?
Request clarification before answering.
The default for the CSDL XML Nullable facet is true for both OData V2 and V4.
As to whether that indicates a problem with the generation of either the V2 and V4 models you are working with, I can't comment as I don't know the origin of those XML files. If these are both machine-generated from the same input, then one of them is wrong since they aren't consistent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
34 | |
22 | |
16 | |
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.