This is a sample CAP application configure to easily connect to SAP Cloud Application Event Hub for SAP cloud applications.
Unfortunately, it is not possible to connect SAP Cloud Application Event Hub to a project running locally. The project will need to be deployed to SAP BTP in order to connect to SAP Cloud Application Event Hub.
Open a new terminal and run the following commands
# Login to CloudFoundry
$ cf login --sso
# Build and deploy to BTP
$ npm run build
$ npm run deploy
# To clean up resources
$ npm run undeployTo access the OData services, navigate to https://.cfapps..hana.ondemand.com/odata/v4/cloud-event/Events
Learn more at https://www.sap-press.com/developing-event-driven-integrations-with-sap-btp_6021/.
Create an issue in this repository if you find a bug or have questions about the content.
For additional support, ask a question in SAP Community.
If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.
Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.