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.
- 1 Introduction
- 2 Listen to Pricefx RabbitMQ Events
- 3 Get Pricefx Quote by Price Record
- 4 Aggregate Price Record Events from Pricefx
- 5 Execute Pricefx Formula to Prepare Price Condition Records in Pricefx from Price Records
- 6 Get Price Condition Records from Pricefx and Create Price Conditions in SAP S/4HANA without Price Scales
- 7 Write Records to SAP ACK Product Extension in Pricefx
- 8 Logging
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
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.
Below parameters have to be configured:
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:
Main receiver – The integration flow which processes the events.
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:
Pricefx connection properties and Acknowledgement Product Extension table
Below parameters can be configured but default values are provided:
Main receiver – The integration flow which aggregates the Price Records.
Error receiver – The error handling integration flow.
Mapping to extract quote information
Transaction handling
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:
Sender – The process direct incoming path of this integration flow.
Main receiver – The integration flow which processes the aggregated events.
Error receiver – The error handling integration flow.
Transaction handling
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:
Pricefx connection properties and Acknowledgement Product Extension table
Request to execute formula
Below parameters can be configured but default values are provided:
Sender – The process direct incoming path of this integration flow.
Main receiver – The integration flow which processes the generated Price Condition records.
Error receiver – The error handling integration flow.
Transaction handling
Error data store
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 Event-driven Process (Price Condition Management) | Get Price Condition Records from Pricefx and Create Price Conditions in SAP S4H....
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 Event-driven Process (Price Condition Management) | Write Records to SAP ACK Product Extension in Pricefx.
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.