cancel
Showing results for 
Search instead for 
Did you mean: 

How to set Nullable true in XSODATA Metadata for an OnPremise Hana system

Former Member
0 Kudos

Hi,

We have developed an XSODATA service which working correctly.We are consuming this service in our external which requires the metadata generated by XSODATA do display the nullable=true property .

Expected :

I basically need the property Nullable to be displayed even if it is true.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi ,

I am facing same issue did u got the solution.

Thanks,

Jay

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Why exactly do you need it to explicitly state nullable=true? From the Oasis OData specification:

6.2.1 Attribute Nullable

The edm:Property element MAY contain the Nullable attribute whose Boolean value specifies whether a value is required for the property.

If no value is specified for a property whose Type attribute does not specify a collection, the Nullable attribute defaults to true. If no value is specified for a property whose Type attribute specifies a collection, the client cannot assume any default value.

Former Member
0 Kudos

Hi Thomas Jung

Thank you for the reply.

We are using this service in SAP GATEWAY, Gateway is setting Nullable false for all values this is causing an issue with date field in Gateway, since gateway cannot accept null as a valid date.

Our landscape is HANA table that is exposed as xsOdata service that in turn is consumed by gateway and exposed to the outside world. HANA table has NULL values for a few Dates. We are generating these services using the OSCI (/IWBEP/OCI_SRV_GEN).

By setting nullable as true we can tell gateway that this variables accepts null values.Thus is in turn solving our issue with date field.

If any other alternatives solutions please do let me know.