Replicating Subscriptions using SAP Event Mesh

Objective

After completing this lesson, you will be able to replicate subscriptions from SAP Subscription Billing using SAP Event Mesh

Subscription Replication using SAP Event Mesh

This section outlines the steps for replicating subscriptions from SAP Subscription Billing to SAP Entitlement Management using SAP Event Mesh.​

Prerequisites

  1. Create a Service Key

    1. In SAP BTP, create a service instance of SAP Entitlement Management OAuth service.
    2. Generate a service key.
    3. Note down the client ID, client secret, and OAuth token URL.​
  2. Activate Outbound Events

    1. In SAP Subscription Billing, navigate to Business Configuration.
    2. Select Integration Settings.
    3. Toggle Activate Outbound Events.​
  3. Define Queue and Subscribe to Events

    1. In SAP BTP, go to your subaccount.
    2. Open the Enterprise Messaging tile.
    3. Create a queue subscription for the topic: sap/billing/sb/ce/sap/billing/sb/subscription/.​

Integration Steps

  1. Add SAP Event Mesh Credentials

    1. In SAP Cloud Integration, go to Security Material.
    2. Add an OAuth2 credential using the details from the SAP Event Mesh service key.
  2. Add SAP Entitlement Management Credentials

    1. Add an OAuth2 credential for SAP Entitlement Management.
    2. Use the details from the service key created earlier.​
  3. Add SAP Subscription Billing Credentials

    1. Add an OAuth2 credential for SAP Subscription Billing.
    2. Use the service key details from SAP Subscription Billing.​
  4. Configure SAP Entitlement Management

    1. In SAP Entitlement Management, define a status model with the necessary status codes and transitions.
    2. Configure the entitlement generation rule: Query for Existence Before Creation.
    3. Set up background jobs for status changes.​
  5. Configure Value Mapping

    1. In SAP Cloud Integration, navigate to the SAP Entitlement Management with SAP Subscription Billing package.
    2. Configure value mapping between subscription parameters and entitlement attributes.​
  6. Replicate Subscription

    1. When a subscription is created or modified in SAP Subscription Billing, it triggers an event. This event is processed through SAP Event Mesh and forwarded to SAP Cloud Integration.
    2. SAP Cloud Integration then generates an entitlement for each subscription item in SAP Entitlement Management.
    3. The entitlement number is updated back to the subscription item in SAP Subscription Billing.​

Considerations

  • Ensure that the integration flow is designed to handle multiple entitlements for a single subscription item if required by the business model.​
  • Regularly monitor and maintain the integration to ensure data consistency and accuracy between SAP Subscription Billing and SAP Entitlement Management.​
  • Test the integration thoroughly to handle various scenarios, including subscription creation, modification, renewal, and expiration.​

Replicate subscriptions from SAP Subscription Billing using SAP Event Mesh

Configure SAP Event Mesh

Configure SAP Cloud Integration

Create Subscription Billing From SAP Subscription Billing System

Check Entitlement In The SAP Entitlement Management System

Extension Point Enhancement

Extension Point Enhancement

Summary

Subscribes to subscription events in SAP Subscription Billing and replicates each subscription item as a separate entitlement through SAP Event Mesh and Cloud Integration.