## 5.6.2.3.2 Set Up the Connectivity Between Event Mesh and the SAP S/4HANA Cloud Tenant
## Overview
To configure the connectivity between the SAP S/4HANA Cloud tenant and SAP Event Mesh and to enable the exchange of credentials between the two systems, you first need to create an SAP S/4HANA Cloud Extensibility service instance with service plan messaging . For more information about the messaging service plan, see Supported Service Plans for SAP S/4HANA Cloud [page 2166].
When creating this service instance, you create the required configurations in both the SAP S/4HANA Cloud tenant and the Event Mesh system associated with the subaccount in SAP BTP, so that events can flow. Depending on the SAP BTP environment, to create an SAP S/4HANA Cloud Extensibility service instance, you have to choose one of the following options:
- Create an SAP S/4HANA Extensibility Service Instance in the Cloud Foundry Environment [page 2141]
- Create an SAP S/4HANA Cloud Extensibility Service Instance in the Kyma Environment [page 2143]
After you have created the SAP S/4HANA Cloud Extensibility service instance, either in the Cloud Foundry or Kyma environment, you need to configure event topics for the channel inside the SAP S/4HANA Cloud tenant, and then you need to create an SAP Event Mesh service instance, respectively in the Cloud Foundry or Kyma environment, for the application to consume SAP S/4HANA Cloud events. You do this in a dedicated JSON file that you add either when creating the service instance, or after that. To construct this JSON file, see Define SAP S/4HANA Cloud Extensibility Service Descriptor JSON/YAML File [page 2145].
## Process Flow
| Process Step                                                                                                                           | Related Documentation                                                                                                                                                                                  |
|----------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1. Create an SAP S/4HANA Cloud Extensibility service instance with service plan messaging .                                            | • Create an SAP S/4HANA Extensibility Service Instance in the Cloud Foundry Environment [page 2141] • Create an SAP S/4HANA Cloud Extensibility Service In- stance in the Kyma Environment [page 2143] |
| 2. Define a dedicated JSON file that you add either when creating the SAP S/4HANA Cloud Extensibility service instance, or after that. | Define SAP S/4HANA Cloud Extensibility Service Descriptor JSON/YAML File [page 2145]                                                                                                                   |
| 3. Configure event topics for the channel inside SAP S/ 4HANACloud tenant.                                                             | Configure Event Topics in SAP S/4HANA Cloud [page 2153]                                                                                                                                                |