s4sdk

Trying to create custom OData v2 service with data source from S/4HANA Cloud using S/4HANA Cloud SDK

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 14:56:21
问题 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

Creating ErpConfigContext threw exception

吃可爱长大的小学妹 提交于 2019-12-01 18:40:13
问题 I am trying to use the S/4HANA SDK to call the CompanyCode OData VDM service but if I do this in the Cloud Foundry environment I'm getting the attached error. I have been using the SDK before but this did not happened. Can you please help me here? Code: public List<CompanyCode> findAll() { try { return compCodeService.getAllCompanyCode().execute(erp()) .stream() .map(this::toCompCode) .collect(Collectors.toList()); } catch (ODataException e) { throw SapException.create(e.getMessage()); } }