Condition Records Flows (Upload, Status, Error Handling)

Direction: Pricefx → SAP S/4HANA.

Upload flow (verified)

Artifact

Description

Listen to Pricefx Rabbit MQ Events - Using Condition Record Events

Entry point (in the Sample artifacts for SAP S4HANA Integration with Pricefx package). Listens to Pricefx RabbitMQ and posts the event into the Aggregate flow.

Aggregate Condition Record Events from Pricefx

Debounces/batches incoming condition-record events, then forwards to the Process flow.

Process Condition Record Events from Pricefx

Reads the condition record set, then hands off to the Multicast flow.

Get Pricefx Condition Record Set by ID

Fetches the full condition record set from Pricefx by its ID.

Multicast condition record updates from Pricefx to create and update price conditions

Fans out the record table; publishes table fetch requests to JMS.

Publish condition record table fetch requests to JMS

Places fetch requests on the JMS queue (decoupling point).

Consume fetch condition record requests from JMS

Consumes the fetch queue and triggers the Get sales / purchasing record flows.

Get sales price condition records from Pricefx

Sales branch: sets status, fetches records, publishes create requests to JMS.

Get purchasing price condition records from Pricefx

Purchasing branch: same as the sales branch for purchasing conditions.

Update Processing Condition Records Status in Pricefx

Marks the records as processing in Pricefx before they are sent to SAP.

Fetch condition records from Pricefx

Retrieves the actual condition record data from Pricefx (via the Pricefx-SAP adapter).

Publish sales condition record create requests to JMS

Queues the SAP sales-create requests (decoupling point).

Publish purchasing condition record create requests to JMS

Purchasing equivalent of the above.

Consume sales condition record create requests from JMS

Consumes the sales create queue and triggers the sales SAP create flow.

Consume purchasing condition record create requests from JMS

Purchasing equivalent of the above.

Create sales price condition records in SAP S4HANA

Builds the batch request (Mapping pkg), calls the SAP Condition API, extracts the result, publishes result update to JMS.

Create purchasing price condition records in SAP S4HANA

Same as the sales create flow for purchasing conditions.

Publish Pricefx Condition Records Result Update to JMS

Places the SAP create result on the JMS queue (decoupling point).

Consume Pricefx Condition Records Result Update from JMS

Consumes the result queue and triggers the result write-back flow.

Update S4HANA Condition Records Results to Pricefx Condition Records

Writes the SAP outcome and final status back to Pricefx (calls the status-update flows).

Update integration status

Artifact

Description

Update Processing Condition Records Status in Pricefx

Marks the condition records as processing in Pricefx before they are sent to SAP, so they are not picked up again while a batch is in flight.

Update S4HANA Condition Records Results to Pricefx Condition Records

Receives the SAP create/update result and writes the outcome plus the final integration status back onto the Pricefx condition records.

Update condition records to Pricefx

Performs the actual update call against Pricefx; invoked by the two status-update flows above to persist the status/result.

Request payloads use the Mapping pkg: Message Mapping Build Pricefx Condition Record Status Update Request / Message Mapping Build Pricefx Condition Record Status Reset Request, and Extract SAP S4HANA Price Condition Batch Create Result.

Error handling

Artifact

Description

Pricefx Price Condition Status Update Error Handling

Catches failures of the status-update calls, logs them and routes to the fallback handler; called by both status-update flows.

Write errored price condition messages to error queue

Parks failed price-condition create messages onto a dedicated JMS error queue for later reprocessing.

Rerun errored price condition messages from error queue

Re-reads parked messages from the error queue and re-submits them through the create flow.

DEPRECATED - Rerun Errored Price record events from Pricefx

(Deprecated in tenant) Reprocesses failed Pricefx price-record events.

DEPRECATED - Rerun Errored Pricelist events from Pricefx

(Deprecated in tenant) Reprocesses failed Pricefx price-list events.

Extract Error Message from Condition Record Response from SAP S4HANA

Mapping (Mapping pkg) that extracts the human-readable error text from the SAP condition-record response.

Execute a process with default error handling

Reusable artifacts pkg — generic default error handler invoked by the flows on an unhandled exception.

Send Log to email

Price Management pkg — sends a log/notification email; the common fallback used across the flows.

Notes

  • Direction is Pricefx → SAP. The reverse (S/4HANA condition events → Pricefx) uses Listen SAP S4HANA Sales condition events from SAP Event Mesh / Listen SAP S4HANA Purchasing condition events from SAP Event Mesh and Process sales condition updates from SAP S4HANA / Process purchasing condition updates from SAP S4HANA.

  • Auth/connection resolved via Get AIR key from Pricefx and SAP Connection Properties (Price Management pkg) and Get Pricefx connection properties by environment (Reusable artifacts pkg).

Source: pricefx-sap-integration-flows repo, package SAP S/4HANA Price Condition Integration with Pricefx. Names match the published SAP Business Accelerator Hub display names.