I am trying to create a custom OData v2 service in java with an S/4HANA Cloud data source using S/4HANA Cloud SDK. I tried to follow section 8.3 of the SAP Press book "Extending SAP S/HANA: Side-by-Side Extensions with the SAP S/HANA Cloud SDK", except I attempted to substitute OData version 2 for version 4 in the dependency on page 285. When I execute mvn clean install, it errors out telling me it can't find odatav2 in com.sap.cloud.servicesdk.prov. (I get a clean install when I use odatav4 instead.) The reason I want OData v2 is version 4 doesn't appear to be well-supported for SAPUI5 apps.
相关问题
- Trying to create custom OData v2 service with data
- Generate OData VDM using S/4 HANA SDK leads to err
- RFC Destination does not exist
- Accessing user attributes using UserAccessor
- Not able to perform Deep Insert operation for API_
相关文章
- Trying to create custom OData v2 service with data
- Generate OData VDM using S/4 HANA SDK leads to err
- RFC Destination does not exist
- Accessing user attributes using UserAccessor
- Not able to perform Deep Insert operation for API_
- How to add multiple destinations for a java applic
- What can we do for the error “No error field found
- com.sap.cloud.sdk.frameworks.hystrix.ScpNeoHystrix
The setup for OData V2 provisioning looks a bit different. So remove all modifications you did to use OData V4 provisioning. Then add the following:
Add the following dependencies (instead of the odata-v4 one) to your
application/pom.xml
file:Add the following entries to your
application/src/main/webapp/WEB-INF/web.xml
file, replacingYOUR.PACKAGE
with a package to search for your OData endpoints:application/src/main/resources/edmx
directory.These steps should get your OData V2 Provisioning service up and running.