Cloud Integration Groovy Examples

Groovy scripting is an integral and important feature of SAP Cloud Platform Integration(CPI). The goals of this repository are:

  • Providing templates when you are implementing a new script
  • Easily finding Groovy functions related to the CPI topic at hand
  • Minimizing search engine time for common tasks
  • Providing educational content for beginners
  • Script examples are provided with context, explanation, and input/output examples.


    Go to GitHub Repository for contributions

    Adding UTF-8 BOM to Any Payload

    Open Example

    Basic Script Example for Beginners

    Open Example

    CSV to XML Example (Manual)

    Open Example

    EDI Segment Counter

    Open Example

    Excel XLS to XML Conversion

    Open Example

    Filename MPL Custom Header Property

    Open Example

    Getting HTTP Error Body

    Open Example

    Getting SOAP Error Body

    Open Example

    Handle Large Input/Output Data with Groovy IDE

    Open Example

    Log All the HTTP Headers as JSON

    Open Example

    Merge Two XML Documents

    Open Example

    Merge Two XML Documents v2

    Open Example

    MPL Custom Header Property

    Open Example

    MPL Payload Log

    Open Example

    MPL Logging Based on Flow log level

    Open Example

    Reading Credentials

    Open Example

    Getting a specific file from SFTP

    Open Example

    Use External JAR Library with Groovy IDE

    Open Example

    Convert XML to CSV (Manual)

    Open Example