Set up Integration Flows - Polling

This article describes how SAP Integration Suite can enable data synchronization from S/4HANA to Pricefx by polling. These steps apply to all entities, such as Products, Customers, Product Extensions, Customer Extensions, Price Parameters and Data Feeds.

In this section:

Step 0: Set up Polling Schedule in Pricefx Price Parameter

The integration flows read the polling schedule from a Price Parameter table in Pricefx. Add an entry of the entity which requires polling to the table.

poll schedule.jpg

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

A sample integration flow Get latest updated data by polling at intervals is included in the package “Sample artifacts for SAP S/4HANA Integration with Pricefx”.

The sample integration flow runs periodically to synchronize Billing Documents. You can either duplicate this flow if you have to synchronize other entities or simply duplicate the branches if the schedule is the same.

polling process.jpg

Sub-steps:

  1. Configure the Start Timer.

     

  2. Force run the refresh token process if required. Polling process can take long time to finish. Refreshing token in advance might reduce the chance of refreshing token during the process execution. Using a separate token of a different Pricefx integration user as other real time processes is recommended.

  3. “Update polling schedule” calls Update polling schedule process from “Reusable Artifacts for SAP S/4HANA Integration with Pricefx” package. You should deploy all utilities from this package as well.

  4. “Sync billing document” calls the main integration flow of billing document data synchronization. For other entities, a similar flow can be found in the package used for synchronizing the entities. See the next step “Get Latest Updated Entities from SAP S/4HANA“.

Step 2: Get Latest Updated Entities from SAP S/4HANA

One flow is needed for each Pricefx entity. For example:

  • Get Latest Updated Products from SAP S/4HANA and write to Product Master

  • Get Latest Updated Customers from SAP S/4HANA and write to Customer Master

  • Get Latest Updated Sales Orders from SAP S/4HANA and write to Price Parameter

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

These integration flows are duplicated or modified from Get Latest Updated Entities from SAP S/4HANA and write to Pricefx from the “Sample artifacts for SAP S/4HANA Integration with Pricefx” package. You can copy and modify your own flows to another package if you have a different set of entities, such as Price Parameters.

A loop is required to fetch all updated entities from SAP S/4HANA OData API by pages. If there are records returned from the API, the message will be sent to the next integration flow for further processing.

Configure the SAP S/4HANA OData connection properties and queries. You can update the filter and selected fields in query options. Copy the default query options from the integration flow and paste them to the configuration if you do not have your own.

For explanation and configuration of this integration flow, see Get Latest Updated Entities from SAP S/4HANA and write to Pricefx.

Step 3: Multicast Response to All Entities in Pricefx

You should build your own integration flow to multicast the SAP S/4HANA response message to every integration flow which writes records to Pricefx tables. You should build this integration flow to either point it to the “end” if there is no other table to be updated, or multicast to multiple tables with one branch per Pricefx table.

A sample “Multicast Customer response from SAP S/4HANA to processing flows” is provided in the “SAP S/4HANA Customer Master Integration with Pricefx” package. The customer updates would be written to two Customer Extension tables.

Step 4: Write Records to Pricefx

One flow is needed for each Pricefx entity:

  • Write Records to Product Master in Pricefx

  • Write Records to Customer Master in Pricefx

  • Write Records to Product Sales Data Product Extension in Pricefx

  • Write Sales Order Records to Price Parameter in Pricefx

  • Write Records to Sales Org Data Customer Extension in Pricefx

These integration flows are copied from Write records to Pricefx from the “Sample artifacts for SAP S/4HANA Integration with Pricefx” package. You can copy and modify your own flows to another package if you have a different set of entities.

For explanation and configuration of this integration flow, see Write records to 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.