Check script logic
Use synthetic data to check changes to the body, headers and properties. Include empty input, missing properties and unexpected formats.
Test Groovy scripts for SAP Cloud Integration with a simulated message. Follow a small example covering the body, headers and exchange properties.
Sample data, a working example and an output you can inspect.
import com.sap.gateway.ip.core.customdev.util.Message
import java.util.Locale
Message processData(Message message) {
String body = message.getBody(String) ?: ""
String source = message.getProperty("sourceSystem") ?: "unknown"
message.setHeader("X-Source-System", source)
message.setBody(body.toUpperCase(Locale.ROOT))
return message
}The runnable example from the tutorial below.
With the input from step 1, contiva becomes CONTIVA. If sourceSystem is missing, the header uses unknown instead.
import com.sap.gateway.ip.core.customdev.util.Message
import java.util.Locale
Message processData(Message message) {
String body = message.getBody(String) ?: ""
String source = message.getProperty("sourceSystem") ?: "unknown"
message.setHeader("X-Source-System", source)
message.setBody(body.toUpperCase(Locale.ROOT))
return message
}Built for SAP CPI professionals - simple, fast, and setup-free
No installation, no configuration
Set the body, headers and properties, then inspect results.
Instant feedback for your scripts
Use synthetic data to check changes to the body, headers and properties. Include empty input, missing properties and unexpected formats.
Simulation does not replace testing adapters, permissions and target systems in your SAP environment. Match the Groovy version to your iFlow.
Simulate the body, headers and exchange properties for processData scripts.
Start from templates and inspect the output step by step.
The browser IDE is free to use. For complex iFlows, troubleshooting or reviews, explore our SAP CPI consulting services.