ReleaseOwl Docs
  • ReleaseOwl Admin Guide
    • General Administration
      • User & Role Management
      • Project Management
      • Landscape Registration
      • Global Credential Management
      • Settings
      • Landscape Connectors
      • Parallel Landscape Configuration
      • Static Code Analysis
      • RO Agents
    • ALM Integrations
      • Jira
        • Jira Cloud
        • Jira On-Premise
        • Jira Automation Rules
      • Azure DevOps
      • ServiceNow
      • Freshservice Integration
    • Other Integrations
      • ReleaseOwl Callout Feature
      • DocuSign
    • Landscape Mapping
  • ReleaseOwl User Guide
    • Change Management
      • Backlog
      • Sprints
      • User Stories
      • Release Versions
      • User Story Dependency
    • Transport Management
      • On-Prem Environment Registration
      • Creation of Transports
      • Transport Validation and Analysis Reports
      • Transport Promotion and Pipeline Activity
      • Transport Management Actions
      • Transport of Copies
      • Retrofit & Conflict Resolution
      • gCTS
        • Build pipeline support for onPrem Fiori
    • SAP BTP
      • Administration
        • Credential Management
        • Cloud Environment Registration
      • Working with Build Pipelines
        • Static Code Analysis
        • Change Log Analysis
        • Download Artifact
        • Labels
      • GIT Ops
    • SAP API
      • Adminstration
        • Credential Management
        • Cloud Environment Registration
      • API Management
    • SAP CPI
      • SAP CPI Integration with ReleaseOwl
      • CPI Test Generator
      • CPI Management
        • Synchronize CPI Artifacts
        • Artifact Versions
        • CPI Artifact Comparison
        • Backup & Rollback
        • CPI Validation - CPILint
        • iFlow Unit Testing
        • Integration Advisor
    • SAP Analytics Cloud
    • SAP Datasphere
    • Working with Release Packages
      • Create Release Package with User Stories
      • Create Release Package with Transports
      • Release Package Validation with Transports
    • Working with Release Pipelines
      • Pipeline Tasks
        • Approval Task
        • Callout Task
        • Manual Task
        • User Story Status Task
        • Test Execution Task
        • Message Listener Task
        • GCTS Merge Task
        • GCTS Activate Task
        • GCTS Switch Task
        • Import via Toc Task
        • Transport Retrofit Task
        • Release Transport Task
        • DocuSign Approval
        • Validation Task
      • Use Cases
        • Automated Transport import along with Transport Promotion
        • Automated MTAR Deployments
        • Automated CPI Deployments
    • Test Automation
      • HCL OneTest
        • Test Configurations
        • Running Automated Tests with Release Pipelines
      • Tosca Integration
      • Integrating UiPath with ReleaseOwl
    • My Tasks
    • Multiverse
    • Utilities
      • ABAP Version Compare
      • gCTS Merge
Powered by GitBook
On this page
  • Step 1: Create Process Integration Runtime (PIR) Instances in SAP BTP
  • A. Create a PIR Instance with Plan: api
  • Assign Required Roles
  • Create Service Key (for api plan)
  • B. Create a PIR Instance with Plan: IFLOW
  • Create Service Key (for IFLOW plan)
  • Step 2: Register Credentials in ReleaseOwl
  • CPI Environment Registration
  • Custom Identity Provider (IDP) Setup and Configuration
  • Assign Role Collections (Choose One of the Methods Below)
  • Create a Project
  • Adding Environments to the Project
  • Managing CPI Packages
  • Creating a Release Pipeline
  1. ReleaseOwl User Guide
  2. SAP CPI

SAP CPI Integration with ReleaseOwl

PreviousSAP CPINextCPI Test Generator

Last updated 21 days ago

ReleaseOwl seamlessly integrates with SAP Cloud Integration (CPI) to enable continuous integration and delivery of integration artifacts. Through secure credential management and environment registration, ReleaseOwl connects directly with the CPI tenant to manage, deploy, and monitor artifacts across development, quality, and production landscapes.

Step 1: Create Process Integration Runtime (PIR) Instances in SAP BTP

A Process Integration Runtime (PIR) instance is required in SAP BTP for ReleaseOwl to securely manage and deploy CPI artifacts across environments.

A. Create a PIR Instance with Plan: api

This instance enables programmatic access via API for integration tasks.

Steps:

  1. Log in to your SAP BTP Cockpit.

  2. Navigate to your Global Account > Subaccount.

  3. Go to Instances and Subscriptions from the left menu.

  1. Click on Create.

  2. In the "New Instance or Subscription" wizard:

  • Service: SAP Process Integration Runtime

  • Plan: api

  • Runtime Environment: Cloud Foundry

  • Space: Select your development space (e.g., dev)

  • Instance Name: Choose a name like CPI_API_Instance

  1. Click Next, then Create.

Note: The api plan provides programmatic access to the SAP Process Integration Runtime, allowing you to connect via APIs for integration tasks.

Assign Required Roles

In the Parameters step, assign the following roles to allow artifact management:

Role

Description

MessagePayloadsRead

Read message payloads in the integration runtime.

MonitoringDataRead

View monitoring data for integration flows.

TraceConfigurationEdit

Edit tracing configurations.

TraceConfigurationRead

View current tracing configuration.

WorkspaceArtifactsDeploy

Deploy artifacts from workspace to runtime.

WorkspacePackagesConfigure

Configure packages, parameters, and dependencies.

WorkspacePackagesRead

Read-only access to integration packages.

WorkspacePackagesEdit

Modify and configure integration packages.

Create Service Key (for api plan)

After instance creation:

  1. Go to Instances and Subscriptions.

  2. Expand your newly created api instance.

  3. Click Create Service Key.

  4. Enter a name (e.g., cpi-api-key) and leave parameters blank.

  5. Click Create.

  1. Click View Credentials to retrieve:

  • Client ID

  • Client Secret

  • Token URL

B. Create a PIR Instance with Plan: IFLOW

This is used for managing and deploying integration artifacts (iFlows).

✅ Steps:

  1. Go to your SAP BTP Cockpit.

  2. Select your subaccount that hosts SAP CPI.

  3. Go to Services > Service Marketplace.

  4. Select SAP Process Integration Runtime → Click Create.

  5. Fill in the following:

    • Service: SAP Process Integration Runtime

    • Plan: IFLOW

    • Runtime Environment: Cloud Foundry

    • Space: Provide the appropriate space (e.g., dev)

    • Instance Name: (e.g., CPI_IFLOW_Instance)

  1. Click Next and then Create.

Create Service Key (for IFLOW plan)

  1. Navigate to Instances and Subscriptions.

  2. Locate the IFLOW instance.

  3. Click Actions > Create Service Key.

  4. Enter a name for the key (e.g., cpi-iflow-key) → Click Create.

  1. Click on the service key name to view the key details.

  2. You will need these values when setting up ReleaseOwl credentials.

Step 2: Register Credentials in ReleaseOwl

Credential registration enables secure communication between ReleaseOwl and SAP CPI environments.

A. Register SAP CPI Credential (API Access)

✅ Steps:

  1. Log in to the ReleaseOwl Platform.

  2. Go to Administration > Credential Manager.

  1. Click Register Credential.

  2. Fill in the details:

    • Credential Name: Any identifiable name for the credential.

    • Authentication Type: Select OAuth2

    • Client ID: Provide the details from the above created API service key.

    • Client Secret: Provide the details from the above created API service key.

    • Token URL: Provide the details from the above created API service key.

  3. Click Save.

The credential will now appear in your list and can be used in pipelines and deployments.

B. Register SAP CPI Credential (IFLOW Access)

This step allows ReleaseOwl to securely interact with CPI for artifact deployment and management via the IFLOW plan.

✅ Steps:

  1. Navigate to Credential Manager from the Administration menu in the ReleaseOwl Platform.

  2. Click Register Credential.

  3. Set the Credential Type to SAP Cloud Environment.

  4. Fill in the following details:

    • Credential Name: Enter a meaningful name (e.g., CPI IFLOW Credential)

    • Authentication Type: Select OAuth2

    • Client ID: Provide the details from the above created IFLOW service key.

    • Client Secret: Provide the details from the above created IFLOW service key.

    • Token URL: Provide the details from the above created IFLOW service key.

  5. Click Save.

  6. The new credential will now appear in the List of Credentials and can be used in Release Pipelines for IFLOW deployments.

CPI Environment Registration

  1. Navigate to Environments from the Administration menu.

  2. Select CPI environment and click on register CPI environment.

  3. Provide the following details:

Field

Description

Name

Enter a unique name for the SAP CPI Environment.

Auth Type

Select the authentication type: Basic Auth or OAuth2.

API URL

Provide the API URL for connecting to the SAP CPI Environment.

Enable Test Automation (Optional)

Toggle to enable or disable test automation capabilities.

IFLOW OAuth Credential

Select the OAuth credentials used for IFLOW authentication.

IFLOW URL

Enter the IFLOW URL from the service key.

Use Custom IdP

Enable this option to set up a custom Identity Provider (IdP). Note: The setup process is outlined in the section below.

SSO URL

Provide the Single Sign-On (SSO) URL for authentication. Note: The setup process is outlined in the section below.

IDP Auth Email Address / Group Name

The group name or email address configured in the 'Value' section under User Groups or Attribute Mappings should also match the corresponding group or email configuration in the IDP Auth Email Address/Group Name within the ReleaseOwl CPI environment registration page.

Integration Advisor

Enable Integration Advisor to provide the Host URL.

Host URL

The host URL is the base address of your SAP Integration Suite instance. (Example: https://<subdomain>.integrationsuite-<region>.cfapps.<domain>.hana.ondemand.com)

Enable Git (Optional)

Enable this option to integrate Git with the environment.

Git Credential

Select the credential for accessing the Git repository.

Repository URL

Provide the Git repository URL.

Branch

Specify the branch to be used for the integration.

Environment Type

Select the environment type (e.g., Dev, QA, Prod).

  1. After clicking the Save button, a Test button will appear. This button is used to verify whether the entered credentials are correct. Click on the Test button to validate the connection.

  1. Upon successful validation, a Download option will be available to download the tenant-specific metadata and the SAP CPI environment descriptor file.

Custom Identity Provider (IDP) Setup and Configuration

A Custom IDP (Identity Provider) must be configured to allow secure authentication and authorization for users who interact with the Integration Suite (CPI) instance through ReleaseOwl.

Use Case: This is particularly useful for executing test cases, simulation testing and updating value mappings as part of the pipeline.

Steps to Configure a Custom Identity Provider (IDP)

A Custom Identity Provider (IDP) is required for deploying certain artifact types—such as Value Mapping, REST, SOAP, and OData APIs—as well as for executing test cases associated with these artifacts via ReleaseOwl.

1. Download SAP BTP SAML Metadata

  • Navigate to the Security section of your SAP BTP Subaccount.

  • Go to Trust Configuration.

  • Click Download SAML Metadata to download the BTP metadata file.

2. Extract the SAP BTP SSO URL

  • Open the downloaded SAML metadata XML file in a text editor (e.g., Notepad++, VS Code, or a browser).

  • Search for the <AssertionConsumerService> tag.

  • Locate the Location attribute inside the tag. The value of this attribute is your SAP BTP SSO URL.

3. Download the ReleaseOwl Metadata Descriptor

  • In ReleaseOwl, click Download Entity Descriptor to download the tenant-specific metadata and SAP CPI environment descriptor.

4. Create Trust Configuration in SAP BTP

  • Return to Trust Configuration in the SAP BTP Cockpit.

  • Click New Trust Configuration and select New SAML Trust Configuration.

  • Upload the ReleaseOwl CPI Environment metadata XML file.

  • Uncheck the option "Available for User Logon" to prevent this IDP from appearing on the SAP login screen.

  • Click Save.

Assign Role Collections (Choose One of the Methods Below)

Note:

To assign role collections, you can choose either of the following methods:

  • User Group Mapping, or

  • Attribute Mapping (Email-based) Choose the one that matches your Identity Provider setup.

5. Assign Role Collections using User Groups

  • Open the newly created Custom IDP and click Edit.

  • Go to the User Groups section and Click the "+" button to add a new mapping.

  • Configure the mappings like the example below:

Role Collection
Attribute
Operator
Value

Integration_Provisioner

Groups

equals

group name ( Replace <group_name> with actual group names from your Identity Provider.)

PI_Business_Expert

Groups

equals

group name

PI_Integration_Developer

Groups

equals

group name

PI_Administrator

Groups

equals

group name

6. Assign Role Collections using Attribute Mapping (Email-Based)

  • In the same Trust Configuration screen, scroll to Attribute Mappings.

  • Click the "+" button to add a new mapping.

  • Define mappings like this:

Role Collection
Attribute
Operator
Value

Integration_Provisioner

emailAddress

equals

The email ID of the service user

PI_Administrator

emailAddress

equals

The email ID of the service user

PI_Business_Expert

emailAddress

equals

The email ID of the service user

PI_Integration_Developer

emailAddress

equals

The email ID of the service user

Note :

To enable Integration Advisor capabilities, assign the following role collections to the IDP:

  • iadv-content-read

  • iadv-content-administrator

  1. The group name or email address configured in the 'Value' section under User Groups or Attribute Mappings should match the corresponding group or email configuration in the IDP Auth Email Address/Group Name on the ReleaseOwl CPI environment registration page.

Create a Project

  1. Go to the projects in the adminstation view.

  2. Click on the "Create New Project"

  1. Fill in the necessary details, select the project type as 'SAP CPI', and click the Save button

Adding Environments to the Project

For artifacts to load in SAP CPI Management page, the Integration Suite environments must be registered in Project Settings in ReleaseOwl.

To register SAP Integration Suite environment:

1. Go to Projects drop down at the top right corner and click Project Settings.

2. In Project Settings, go to Environment.

3. The following screen is displayed.

4. Click +Add button to add a new environment in ReleaseOwl.

5. In the subsequent screen, choose the required environment from the list displayed by selecting Source. Only the artifacts with source are synced to ReleaseOwl.

6. The environment is added to the corresponding project in ReleaseOwl.

7. Click Permissions (under Users tab in Project Settings), to add users that can access (read or deploy to) the registered CPI environment.

  1. Click Permissions. The roles that are assigned to the selected user are seen.

Note : On clicking Permissions in the above screen, one can know the actions that the user role can perform each for the available features such as Transport Management, Change Management, Pipelines, Release Management.

Managing CPI Packages

1. Access SAP CPI Management:

  • Switch to the Project view.

  • Click on SAP CPI Management in the Build section.

2. Add and Sync Packages:

  • Click the Add Packages button in the CPI Packages section.

  • Select Package: Use the search bar to find a package, then check the box next to the desired package(s).

  • Sync Package: Click Sync to add and synchronize the selected package(s).

A pop-up screen will display the sync history. Use the Refresh button to update the sync status and view the latest details. Click Close when done.

3. Configure Artifacts:

  • Click the arrow next to the package name.

  • In the "Artifacts" list, click the three dots in the "Actions" column for the desired artifact.

  • Select "Configure" from the list.

4. Save Changes:

  • Modify the required values in the configuration screen.

  • Save: Update the existing artifact directly.

  • Save as Artifact: Create a new version of the artifact with the modified values.

  • After selecting "Save as Artifact", a new artifact is created with the updated values.

  • To view more details about the new artifact, click the three dots (Actions) next to it.

  • Click on Edit Configuration to open the artifact configuration.

  • Verify or modify the updated values by clicking on the pencil icon (Modify Values button), then click the Save button to apply the changes.

  • A newly created artifact will be displayed with its specified name and the associated configuration settings.

  • Editing timer configuration parameters (such as start time, recurrence, etc.) is not supported directly from ReleaseOwl.

Creating a Release Pipeline

Release Pipelines in ReleaseOwl manage approvals, validations, deployments, automated tests, task assignments, and user story updates for SAP systems.

1. Create a New Release Pipeline:

  • Switch to the Project view and select the Release section.

  • Navigate to Release Pipelines and click on Create New Release Pipeline.

  • Provide a Pipeline Name.

  • Add stages (e.g., QA, Prod) and assign tasks to each stage.

2. Add Deployment Tasks:

  • Click the Add button in a task stage to include deployment tasks.

  • Fill in the required details:

    • Name: Enter a preferred name for the deployment task.

    • Deploy Type: Select the type of deployment.

    • Select CPI Environment: Select the target CPI environment where the deployment will take place.

    • Deployment Action: Choose between:

      • Upload Only: Uploads the deployment package without executing the deployment.

      • Upload and Deploy: Uploads the deployment package and executes the deployment.

  • Notify Users: Sends a notification to selected users when the task is created or when pipeline execution reaches this stage

  • Notify Promotion User: Sends a notification to the user who promoted the artifact or initiated the deployment to this stage.

  • Notify to Button : It has three options — User, Role, and Custom — to specify the recipients of the notification based on individual users, assigned roles, or custom groups.

Option
Definition

User

Sends the notification directly to a specific individual user.

Role

Sends the notification to all users who belong to a specific predefined role (such as Developer, Tester, Release Manager). Every user in the role will receive the notification.

Custom

Sends the notification based on a custom mapping between components and roles. Different components can notify different roles, depending on your configuration.

3. Save and Configure Notifications:

  • Add notification emails if needed.

  • Save the pipeline configuration.

Managing Sprints and User Stories

1. Create a Sprint:

  • In the Project View, navigate to Change Management and click Create Sprint.

  • Enter the sprint name and click Save.

  • Click the three dots (Actions) button and select Start Sprint.

2. Create a User Story:

  • Go to User Stories and click Create User Story.

  • Fill in the required details:

    • Summary: Provide a summary of the user story.

    • Type: Select the type of story.

  • Click Save.

3. Edit and Promote User Story:

  • After creating the user story, click the three dots (Actions) and select Edit.

  • Select the release pipeline and associated component.

  • Add the artifact in CPI Artifacts and click Save.

  • To promote the user story, click the three dots (Actions) and select Promote.

You can view the Deploy Logs under the SAP CPI Deploy Logs window after promoting the user story.

  • Upload Status: Indicates whether the artifact was successfully uploaded.

  • Config Status: Confirms if the configuration for new or updated artifacts was successful.

  • Deploy Status: Reflects the final deployment status of the artifact.

  • Already Deployed: Indicates that the artifact was previously deployed, either during a retry operation or through manual completion. This status helps avoid duplicate deployments and provides clarity during re-runs.

  • Manual Completion: If a deployment fails or times out, users can use the Manual Completion option in ReleaseOwl to resolve the issue manually and continue the pipeline execution.

  • Refresh Button Fetches the CPI runtime artifact deployment status and updates the runtime status in the deployment log.

  • Retry Button Allows you to reattempt a failed deployment or pipeline stage.

  • Status Button If the status is shown as "Suspended", it usually indicates that the pipeline or task has been paused or is awaiting a manual action.