S / 4HANA Cloud SDK: com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces does not exist

Build failed due to lack of resources: class com.sap.cloud.sdk.s4hana.datamodel.odata.services.BusinessPartnerService

Do we need / create classes of this model in our project structure or will the SDK take care of this static import?

Error after execution: mvn clean install

+4
source share
2 answers

There are probably several events happening here:

  • Version 1.3.0 of the SAP S / 4HANA Cloud SDK package transferred service entity classes, such as BusinessPartner, to its own package, in your case you now need to import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.businesspartner.BusinessPartner;.
  • , BusinessPartnerService , DefaultBusinessPartnerService. new DefaultBusinessPartnerService() ( ). . release-notes, Akhil.
  • BusinessPartner . AddressEmailAddress BusinessPartnerAddress.
+6

Source: https://habr.com/ru/post/1689356/


All Articles