We have released new versions of the SAP Cloud SDK. In detail, the following components are now available in new versions:
- Java libraries in version 2.18.0
- Continuous delivery toolkit in version v20
At the end of the article, you will find a set of instructions on how to update to the new versions.
Java Libraries: Release Highlights 2.18.0
You can update your dependencies of the SAP Cloud SDK for Java to version 2.18.0 and consume the new version from Maven Central.
Update of Message VDM to SAP S/4HANA Cloud 1905
After the newest release 1905 of SAP S/4HANA Cloud, version 2.18.0 updates the message virtual data model (VDM) that allows to consume messages from SAP S/4HANA Cloud in a type-safe manner.
This update includes 30 new message types to reflect the new event types added in SAP S/4HANA Cloud. With this, we support all business event types of SAP S/4HANA Cloud. The Java representations for these are available from package
We have fixed an issue in the Multichain module where an exception was incorrectly thrown in
listStreams when the result included non-subscribed streams.
Further improvements are listed in the full release notes.
Release of OData client generator
npm install --save-dev @sap/cloud-sdk-generator fast-xml-parser
Then, store the metadata document of the OData v2 service in question in a folder
input and call the generator to create the TypeScript files for accessing this OData service:
npx generate-odata-client -i input/ -o src/odata-client/
For more information, take a look at the usage instructions and available options available via
npx generate-odata-client --help.
New tutorial series on OData VDM
Version 1.4.1 fixes an issue where destinations with protocol HTTP (instead of HTTPS) led to an error like
Protocol "http:" not supported. Expected "https:".
We have also fixed an issue where the deserialization of certain entities would fail due to cyclic dependencies across linked entities. This cyclic dependency caused entities to be undefined and led to error messages such as
Cannot read property 'builder' of undefined.
As usual, the full release notes contain a list of all improvements in this release.
Continuous Delivery Toolkit: Release Highlights v20
We have also released version v20 of our out-of-the-box continuous delivery offering consisting of a ready-made Jenkins server and a complete delivery toolkit.
Version v20 runs the stages for frontend unit tests, Checkmarx, and Fortify on Java, Node.js and HTML5 modules of multi-target applications.
If the Checkmarx plugin reports a build failure, the pipeline now aborts the build so that the pipeline run is not marked as success when Checkmarx may actually hav severe findings. This is a potentially breaking change for projects above the threshold.
You can find further fixes and improvements in the complete release notes.
How to Update
To update the version of the SAP Cloud SDK Java libraries used in an existing project, proceed as follows:
- Open the pom.xml file in the root folder of your project.
- Locate the dependency management section and therein the
- Update the version of that dependency to
With this, you are already done thanks to the “bill of material” (BOM) approach. Your dependency should look like this:
<dependencyManagement> <dependencies> <dependency> <groupId>com.sap.cloud.s4hana</groupId> <artifactId>sdk-bom</artifactId> <version>2.18.0</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> <!-- possibly further managed dependencies ... --> </dependencyManagement>
If you are using the SAP Cloud SDK in a project of the SAP Cloud Application Programming Model, replace
sdk-modules-bom to only update the version of SDK modules, not further dependencies.
You can now recompile your project (be aware of the compatibility notes, though) and leverage the new features of the SAP Cloud SDK in version 2.18.0.
npm update in the root folder of your module. Note that this will also update other modules, unless you explicitly specify which packages to update. If you want to check beforehand what will change, use
Continuous Delivery Toolkit
If you are using the pipeline with a fixed version (as recommended since v7), update the continuous delivery toolkit with the following command, that you run on the server hosting the cx-server:
./cx-server update image