Challenges
The goal is to integrate SAP S/4HANA Public Cloud with external systems such as Salesforce, Concur, or SAP Ariba through middleware like AWS or Azure, rather than using SAP BTP.
Solution Highlights
SAP S/4HANA Public Cloud provides various standard objects, and for this demonstration, we’ve selected Business Partner data to illustrate real-time replication via AWS API Gateway. A Lambda function is employed to create corresponding records in Salesforce.
The replication process leverages the SOAP protocol to transfer Business Partner data from the SAP S/4HANA Public Cloud system to the AWS middleware, ensuring seamless integration.
Technical Architecture

SAP S/4HANA Public Cloud and Salesforce Integration Steps
AWS API Gateway serves as the central communication hub, efficiently managing and routing API requests between SAP S/4HANA Public Cloud and external applications. To ensure seamless data integration, AWS Lambda functions are employed to automatically process incoming data. These functions handle tasks such as transforming data formats and invoking API calls, ensuring that records are accurately created or updated in the target systems.
Communication Arrangement Setup in SAP S/4HANA Public Cloud

Reference code for Lambda function
To verify the success of the replication, you can use SAP S/4HANA Public Cloud Message Monitoring to check whether the replication was successful or failed. Additionally, the status of the record in the third-party system can be monitored using AWS CloudWatch.

Message Monitoring in SAP S/4HANA Public Cloud