Event-driven Process (Sales Contract Integration)

This article describes how SAP Integration Suite can enable synchronization between S/4HANA sales contract and Pricefx quote using event-driven approach.

Introduction

When a quote is approved in Pricefx, a sales contract can be created in S/4HANA. The contract number is written back to the same quote in Pricefx for easy reference and to indicate that the contract is created in S/4HANA successfully.

quotesmain.jpg

Listen to Pricefx Rabbit MQ Events

The integration flow listens to quote approval events ('ITEM_APPROVED_Q') from Pricefx via Pricefx MQ Integration Adapter or RabbitMQ Adapter for SAP Integration Suite. Please raise a support ticket to obtain the RabbitMQ connection properties and enable the required Pricefx events. Duplicate “Listen to Pricefx Rabbit MQ Events” from “Sample Artifacts for SAP S/4HANA Integration with Pricefx” package to your package and modify it. The quote branch and its local process show a sample of how a quote approved event can be listened to and processed.

quote event.jpg

 

Process Quote Events from Pricefx

The integration flow gets the quote details from Pricefx by quote ID. The Quote Type from the quote details determines the next action. Duplicate “Process Quote Events from Pricefx” from “Sample Artifacts for SAP S/4HANA Integration with Pricefx” package to your package and modify it if you have different Quote Types or conditions.

Get Quote from Pricefx and Create Sales Contract in SAP S/4HANA

This integration flow creates a sales contract in S/4HANA from Pricefx quote and writes the sales contract ID back to the quote.

Below parameters have to be configured:

  1. Pricefx connection properties

  2. S/4HANA connection properties

  3. Attribute of Pricefx quote to store sales contract ID

  4. Table name in Pricefx to store error log

 

Below parameters can be configured but default values are provided:

  1. Sender – The process direct incoming path of this integration flow.

  2. AIR receiver – The integration flow which retrieves AIR from Pricefx.

  3. Error receiver – The error handling integration flow.

  4. Transaction handling

  5. Process to build create sales contract request