This repository demonstrates an end-to-end SAP CPI integration:
JSON payload → Groovy script → IDoc-style XML → HTTP Receiver.
The project is tested with Postman and includes runtime logs, screenshots, and artifacts.
It also highlights potential future enhancements with Azure Data Factory, Azure Blob Storage, and GitHub Actions.
Demo project: JSON → Groovy Script → IDoc-like XML → HTTP Receiver (Webhook.site)
Tested with Postman. Includes runtime log and screenshots.
- SAP CPI iFlow that accepts a JSON payload (ORDER05 sample)
- A Groovy Script (
Json2Idoc.groovy) converts JSON → IDoc-style XML - Message sent to an HTTP Receiver (Webhook.site mock endpoint)
- Tested with Postman
- Includes runtime log proving success
scripts/ └─ Json2Idoc.groovy └─ Json2Idoc - reload.groovy (optional variant)
payloads/ └─ ORDERS05.json
logs/ └─ MessageLog-IDOC_IFLOW.txt
screenshots/ ├─ Groovy Script code in CPI.png ├─ iFlow Design.png ├─ Message Monitor log → Success.png └─ Postman test with JSON request + 200 OK response.png
iFlow Design
Groovy Script
Monitor – Success
Postman test (200 OK)
- Deploy the iFlow in SAP CPI.
- Configure the Receiver HTTP adapter to point to your Webhook.site URL.
- Use Postman → send
payloads/ORDERS05.jsonto the CPI endpoint. - Check Monitor → Message Processing → should show ✅ Completed.
- Confirm Webhook.site received the IDoc-style XML.
- Extend demo with Azure Data Factory to orchestrate CPI calls.
- Store payloads & logs in Azure Blob Storage.
- Automate testing with GitHub Actions.



