Learn how we can configure sending events to a particular SAP Build Process Automation tenant, so that we can later create processes that can be triggered by those events.
Now that we are familiar with the SAP Integration Suite, advanced event mesh, how we can publish and subscribe to events, and how we can exchange messages using an event broker service, we will start tackling one of the requirements of our integration scenario: trigger a business process in SAP Build Process Automation when a BusinessPartner is created in SAP S/4HANA Cloud.
EDP Integration scenario
There are scenarios where the target system/application can’t consume messages directly from an event broker but we still want these systems/applications to be part of our event-driven world and react to events as they are produced. Fortunately, some of these systems might expose APIs (REST endpoints) through which we can notify them of an event.
For these cases, we can leverage REST Delivery Points to forward messages from a queue to that system. For example, the integration we are about to configure between SAP S/4HANA Cloud and SAP Build Process Automation goes through an event broker service in SAP Integration Suite, advanced event mesh. In AEM, we end up configuring a REST Delivery Point to forward the events received and start a process in SAP Build Process Automation.
If you remember the CodeJam’s integration scenario), we have an SAP S/4HANA Cloud system that generates events whenever a Business Partner is added to the system and we would like to trigger a process in SAP Build Process Automation. As part of this tutorial we will forward events from a queue to a REST consumer, in this case, SAP Build Process Automation. From now on, we will refer to these types of systems as REST consumers.
It is also possible to configure this message forwarding in the Event Mesh capability of SAP Integration Suite. If you are interested in exploring how you can configure the webhook subscription mentioned above in the Event Mesh capability of SAP Integration Suite, you can check out the documentation here: https://help.sap.com/docs/integration-suite/sap-integration-suite/create-webhook-subscription.
By the end of this tutorial, we will achieve a communication scenario like the one below.
Different objects configured for a REST Delivery Point
Step 1REST Delivery Points (RDP)
—
A REST delivery point (RDP) is a provisioned object on an event broker service that facilitates message delivery to REST consumers. The RDP can be bound to message queues to deliver messages from those queues to REST consumers. The RDP maintains a list of REST consumers, which are identified by their remote connection information.
For this tutorial, we will use the APJ-IN-Broker event broker service and we will reuse the queue we created in the previous tutorial: EDP_BP_Created_[SAPCommunityDisplayName].
This queue is subscribed to the default/sap.s4/S4D/ce/cust/ext/codejam/ZBUSINESSPARTNER/Created/v1/[SAPCommunityDisplayName] topic, where the events for the BusinessPartner object created in the simulated SAP S/4HANA Cloud are being published.
Step 2Create a REST Delivery Point
+
Now that we have our queue, we are ready to create a REST Delivery Point (RDP) to forward messages from the EDP_BP_Created_[SAPCommunityDisplayName] queue to a REST consumer.
Inside the APJ-IN-Broker service broker, click Open Broker Manager.
Click Clients on the left-side menu.
Click REST.
REST client
Click + REST Delivery Point.
New REST client
Enter a name, EDP-SBPA-BPCreated-[SAPCommunityDisplayName], (replacing [SAPCommunityDisplayName] with your SAP Community display name).
RDP Creation
Click Create.
A simple configuration form will appear. No need to modify anything here – Do not enable the RDP yet, that is, leave the toggle button off.
Click Apply.
RDP Creation
Once created, go to the RDP details page by clicking on the name of the RDP.
RDP Creation
You will see that there isn’t much here yet, as we haven’t configured the REST consumer details. We will do this now.
RDP details
Step 3Configure REST consumer
+
Now that we’ve created a REST Delivery Point, we have to specify where we want events sent.
Navigate to the REST Consumers tab.
Click + REST Consumer, and enter the name SBPA_[SAPCommunityDisplayName], (replacing [SAPCommunityDisplayName] with your SAP Community display name)
Click Create.
Create REST consumer
A configuration form will be displayed.
Enter the details from the SAP Build Process Automation service key created as part of the prerequisites (you downloaded the key file).
IMPORTANT: Do not enable the REST Consumer yet – leave the toggle button off.
Enter the following:
Field
Value
Host
Value from service key .endpoints.api, e.g.spa-api-gateway-bpi-us-prod.cfapps.[region].hana.ondemand.com
Port
443
HTTP Method
POST
TLS Enabled
Yes
Authentication Scheme
OAuth 2.0 Client Credentials
Client ID
Value from service key .uaa.clientid, e.g. sb-VQ18I1VS-3226-5LF1-JVWV-760D08FHP857-3ok534d4-8562-632j-436w-0j5b0n8r4d0l!b139588 | eventing-xsuaa-broker!b####
Client Secret
Value from service key .uaa.clientsecret
Token Endpoint URL
Concatenate the value from service key .uaa.url, e.g. https://[host].authentication.[region].hana.ondemand.com, and /oauth/token
Token Expiry Default
3600
Click Apply.
SBPA REST consumer
The newly created REST consumer will be listed in the REST Consumers tab. Now we need to configure the queue that we will bind to our RDP. Events in this queue will be forwarded.
Step 4Configure Queue binding
+
Navigate to the Queue Bindings tab.
Click + Queue Binding.
Select the queue you previously created, named EDP_BP_Created_[SAPCommunityDisplayName] but with your SAP Community display name.
Queue binding set up
Click Create.
A simple configuration form will be displayed.
In the Post Request Target field, you need to enter the path where we can send events to SAP Build Process Automation (/internal/be/v1/events). Notice that you will need to include the / at the beginning of the value.
Enter the following details:
Field
Value
Post Request Target
/internal/be/v1/events
Request Target Evaluation
None
Replace Target Authority
No
Click Apply.
Post request target
The newly created queue binding will be listed in the Queue Bindings tab. Now we need to configure a request header that is required by SAP Build Process Automation.
Step 5Configure Request Headers
+
In the Queue Bindings tab, select your queue binding.
Open queue binding
Navigate to the Request Headers tab.
Go to Request Headers
You will create 2 headers.
For each, you will click + Request Header, enter the header name, then the header value, and then click Apply.
Create the following headers:
Header Name
Header Value
Content-Type
application/cloudevents+json
WebHook-Request-Origin
aem
Queue binding - Request headers
Now that we’ve created the request headers, we are ready to enable the REST consumer and the RDP.
Step 6Enable the REST Consumer and RDP
+
We’ve configured the REST consumer and the queue binding, we can enable the REST consumer and the RDP.
First, let’s see all the objects that we’ve configured.
Navigate back to the main page for your RDP.
Select the Summary tab. Here you will see all the objects and their status. Notice that the only object in an operational state is the queue we created at the beginning of the exercise.
RDP object
Navigate to the REST Consumers tab, and click the name of your REST consumer, something like SBPA_[SAPCommunityDisplayName].
Select REST consumer
Click Edit on the top right.
Select REST consumer
Enable the REST consumer by toggling the Enabled setting.
Click Apply.
Now we are ready to enable our RDP.
Navigate back to the main page for your RDP.
Select the Summary tab.
Click on the Connector / RDP, named EDP-SBPA-BPCreated-[SAPCommunityDisplayName], but with your SAP Community display name.
Click Edit on the top right, and enable the RDP by toggling the Enabled setting.
Click the Apply button.
Once we enable the RDP, if we navigate to the Summary tab, we should see that all the objects are in an operational state.
RDP objects - All operational
Now, go to the simulated SAP S/4HANA Cloud system and create a Business Partner.
This will trigger a Business Partner event which you will receive in your queue.
Check that the EDP_BP_Created_[SAPCommunityDisplayName] queue (inside your RDP) is accumulating messages.
Received messages in queue.
Also, you can check the REST Consumer configured. In the stats tab of the REST consumer, you will see the number of messages processed.
REST consumer stats
As an alternative, you can also check the Business Event being received in SAP Build Process Automation. In the SAP Build Process Automation tenant, navigate to Monitoring > Acquired Events > Business Events. The event should be listed there.
Business Event in SAP Build Process Automation
Step 7Summary
+
This tutorial completed all the configuration required on the AEM side. We achieved quite a few things in AEM:
Familiarized ourselves with different parts of AEM.
Connected to an event broker service.
Sent and received events using the Try Me feature available in AEM.
Defined a queue.
Added subscriptions to a queue.
Created a REST Delivery Point.
Defined an RDP REST Consumer, where we configured the details of our SAP Build Process Automation tenant.
Bound a queue to our RDP.
Added request headers to the queue binding.
Enabled it all.
Step 8Further study
+
In this tutorial, we have learned how to create a REST Delivery Point (RDP) to forward messages from a queue to a REST consumer. We used OAuth 2.0 authentication to securely deliver events to SAP Build Process Automation. Now we know a mechanism to enable systems that expose REST endpoints to “react” to events produced by an event broker service.
Share feedback on this tutorial or join the conversation in SAP Community.
Submit detailed feedbackDiscuss in Community
Steps
Step 1 of 8
1. REST Delivery Points (RDP)2. Create a REST Delivery Point3. Configure REST consumer4. Configure Queue binding5. Configure Request Headers6. Enable the REST Consumer and RDP7. Summary8. Further study
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.