Event-driven Process (Price Record)

This article describes how SAP Integration Suite can enable synchronization between Pricefx Price Records and SAP S/4HANA Price Conditions using event-driven approach.

Introduction

When a quote is approved and converted to a deal, each line item becomes one Price Record. One Price Record will become one or more Price Conditions in SAP S/4HANA. The Price Condition records to be exported to SAP S/4HANA are stored in an Acknowledgement Product Extension table in Pricefx and after the synchronization is completed, the results are written back to this table.

Price Parameters Storing Price Conditions Configuration in Pricefx

See .

Listen to Pricefx RabbitMQ Events

The integration flow listens to Price Record update events ('ITEM_UPDATE_PR') from Pricefx via Pricefx MQ Integration Adapter or RabbitMQ Adapter for SAP Integration Suite. This integration flow can be copied and modified from “Sample Artifacts for SAP S/4HANA Integration with Pricefx“ package. Remove any branches which are not relevant to your integration use case. For this use case, only Price Record local integration process is required.

Please raise a support ticket to obtain the RabbitMQ connection properties and enable the required Pricefx events.

rabbit mq listener.jpg

 

Below parameters have to be configured:

  1. Pricefx MQ Integration Adapter – Pricefx RabbitMQ connection properties and the name of the event queue.

 

Below parameters can be configured but default values are provided:

  1. Main receiver – The integration flow which processes the events.

  2. Transaction handling

Get Pricefx Quote by Price Record

The integration flow gets the quote from Pricefx by a Price Record event. It extracts the information from the quote and builds the formatted message for aggregation in the next step.

Below parameters have to be configured:

  1. Pricefx connection properties and Acknowledgement Product Extension table

 

Below parameters can be configured but default values are provided:

  1. Main receiver – The integration flow which aggregates the Price Records.

  2. Error receiver – The error handling integration flow.

  3. Mapping to extract quote information

  4. Transaction handling

  5. Error data store

Aggregate Price Record Events from Pricefx

The integration flow aggregates Price Record update events from Pricefx. The aggregated events are forwarded to the next integration flow to get the execute formula to create Price Condition records in Pricefx. Any events which cannot be processed successfully will be written to the log by email.

 

Below parameters can be configured but default values are provided:

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

  2. Main receiver – The integration flow which processes the aggregated events.

  3. Error receiver – The error handling integration flow.

  4. Transaction handling

  5. Aggregator properties – Defines how the product events should be aggregated.

Execute Pricefx Formula to Prepare Price Condition Records in Pricefx from Price Records

This integration flow executes a formula to create Price Condition records in the Acknowledgement Product Extension table in Pricefx. You should contact Pricefx project team to build the formula in Pricefx to transform Price Records to Price Condition records according to your business requirements.

Below parameters have to be configured:

  1. Pricefx connection properties and Acknowledgement Product Extension table

  2. Request to execute formula

 

Below parameters can be configured but default values are provided:

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

  2. Main receiver – The integration flow which processes the generated Price Condition records.

  3. Error receiver – The error handling integration flow.

  4. Transaction handling

  5. Error data store

  6. Page size of the formula

Get Price Condition Records from Pricefx and Create Price Conditions in SAP S/4HANA without Price Scales

This integration flow is in “Pricefx Price Management with SAP S/4HANA” package. For more details, see .

Write Records to SAP ACK Product Extension in Pricefx

This integration flow is in “Pricefx Price Management with SAP S/4HANA” package. For more details, see .

Logging

All the logs are forwarded to Send Log to email by default. You can configure your own log handling process by configuring the parameters of log receivers and error receivers in the integration flows.