https://sapes5.sapdevcenter.com (Follow the linked blog post above)select: 'ProductID,Name' --> select: 'ProductID, Name'Having space(s) in between, framework "normalizes" the request URL by removing them if applicable.
Due to the OData service failing to handle whitespaces (which seems to be a common issue for OData services from SAP gateway), the backend throws a vague error, even though refrence services (e.g. Northwind) as well as OData spec allow such whitespaces in comma-separated query values.
In case there is a compatibility issue; would it be possible to introduce an array-syntax for the properties in ODataListBinding? That would help developers avoid dealing with spaces
select: [ // or expand
'propertyA',
'ToB/propertyB',
'...',
] // request URL ==> "...?$select=propertyA,ToB/propertyB&..."
Hello @boghyon !
This array syntax is already supported by the new OData V4 model :-)
Best regards,
Thomas
Hello @boghyon ,
the OData V2 spec allows these whitespaces. The colleagues of Gateway have provided a fix for SAP S/4 HANA Cloud 1911.
As to allowing the array syntax for the OData V2 model: We have discussed this but decided against providing this for the V2 model.
Best regards
Mathias.
Most helpful comment
Hello @boghyon !
This array syntax is already supported by the new OData V4 model :-)
Best regards,
Thomas