Polling Process (Accruals Integration)
This article describes how SAP Integration Suite can enable accruals synchronization between S/4HANA and Pricefx. The accrual update process is not time-sensitive and typically relies on the update of billing documents in Pricefx, which also occurs in batches. Therefore, a polling approach has been chosen.
Steps:
Build Integration Flow to Poll Updates from Pricefx
You can either add a branch to an existing timer process or create another timer process for synchronizing Payout Records. This flow executes the integration flow to get the accruals from Pricefx.
Get Payout Records from Pricefx and Create Accruals in SAP S/4HANA
This integration flow gets Payout Records from Pricefx and creates accruals in SAP S/4HANA. The results are written back to Payout Records.
Major steps carried out by this integration flow include:
Initialize properties and SAP AIR key.
Get latest accrual records from Payout Records from Pricefx by batches.
Transform accrual records from Pricefx to accruals batch create request.
Write the results back to Payout Records in Pricefx.
Write the results to accrual history table in Pricefx.
Below parameters have to be configured:
Pricefx connection properties
S/4HANA HTTP connection properties
Below parameters can be configured but default values are provided:
Sender – The process direct incoming path of this integration flow.
Accrual history receiver – The integration flow which writes to the accrual history in Pricefx.
Payout update receiver – The integration flow which writes the updates to the Payout Records in Pricefx.
SOAP receiver – The integration flow which creates accruals in SAP S/4HANA.
Accrual Mapping – The message mapping which transforms accrual records in Pricefx to accrual create request of SAP S/4HANA.
The request message to fetch Payout Records from Pricefx.
Batch size of getting accrual records from Pricefx.
Log receiver – The logging integration flow.
Error receiver – The error handling integration flow.
AIR receiver – The integration flow which retrieves AIR from Pricefx.
Transaction handling
Extract payout ID receiver – The integration flow which extracts payout ID from accrual records in Pricefx.
Write Records to SAP Accrual ACK Customer Extension in Pricefx
The integration flow transforms the response from SAP S/4HANA and writes the records to accrual history table in Pricefx. It is copied from “Write records to Pricefx” from the “Sample artifacts for SAP S/4HANA Integration with Pricefx” package.
For explanation and configuration of this integration flow, see Write Records to Pricefx.
Update Payout Records in Pricefx
The integration flow transforms the response from SAP S/4HANA and updates the Payout Records to Pricefx. It is modified from “Write records to Pricefx” from the “Sample artifacts for SAP S/4HANA Integration with Pricefx” package.
Below parameters have to be configured:
Pricefx connection properties
Below parameters can be configured but default values are provided:
Sender – The process direct incoming path of this integration flow.
Error receiver – The error handling integration flow.
Transaction handling
Error data store
Message Mapping to build update request from the message
Element name that the update payout calculation logic requires