Polling Process (Billing Document Integration)

This article describes how SAP Integration Suite can enable billing document synchronization between S/4HANA and Pricefx. In Pricefx, billing documents are stored as transaction data in a Data Source in Analytics.

As billing documents update is not time sensitive and is usually done by batches, polling approach is selected.

Steps:

Step 0: Pricefx Setup

  1. Set up polling schedule for billing document: .

  2. Set up Data Feed and Data Source. As the volume of transaction data is bigger than other master data, and is mainly to be used in Analytics, it is more appropriate to store it in the Analytics module in Pricefx. In the sample, many Price Condition types are defined. You should only define those you need in your scenario. Values of these “headers” fields are the same as the columns in the Data Feed.

    headers.jpg

     

    data source sample.jpg

You can make use of “expression” in the Data Source to manipulate some data. For more details on setting up Analytics, refer to Pricefx documentation or discuss with Pricefx project implementation team.

  1. Flush data logic to flush the data from the Data Feed to Data Source (optional). To reduce business logic in integration layer, load data operation is able to only upload all data to Data Feed without validation and transformation. The business logic can be put into the flush data calculation logic in Pricefx layer if required. Without this logic, the default flush data operation in Pricefx will copy all data from the Data Feed to Data Source and then truncate the Data Feed.

Step 1: Build Integration Flow to Poll Updates from SAP S/4HANA

You can either add a branch to existing timer process or create another timer process for synchronizing billing documents. See .

Step 2: Get Latest Updated Billing Documents from SAP S/4HANA and write to Transactions Data Feed in Pricefx

This integration is duplicated and modified from “Get Latest Updated Entities from SAP S/4HANA and write to Pricefx” from “Sample Artifacts for SAP S/4HANA Integration with Pricefx“ package.

Major steps carried out by this integration flow include:

  1. Initialize properties and SAP AIR key.

  2. Update next polling schedule in Pricefx.

  3. Get updated billing documents by batches and write to Data Feed in Pricefx. See .

  4. Flush data from the Data Feed to Data Source in Pricefx.