Calculating Sourcing

Objective

After completing this lesson, you will be able to analyze the mechanics behind how SAP Order Management sourcing and availability calculates sourcing

Calculate Sourcing

As a reminder from the SAP Order Management for sourcing and availability Overall Architecture picture, the sourcing request generally takes place at the time a Shopping Cart moves to Check out.

In a typical Click and Ship Scenario, the sourcing request checks the availability of the products in the cart and at the same time will select the best possible source (Site) for each of the products in the cart, considering the sourcing rules in the applicable Sourcing strategy. The Webshop then uses the information given by SAP Order Management for sourcing and availability to create the final order.

SAP Order Management for sourcing and availability sourcing supports both Click&Ship and Click&Collect order management scenarios.

SAP Order Management for sourcing and availability provides the possibility (It is optional) to create a Temporary reservation at the time of sourcing request for the selected Source. That means that any immediate availability or sourcing request will consider that reservation and that stock will not be offered until the reservation is released.

Finally, in the SAP Order Management for sourcing and availability/OMF road map a new API is being developed to cover a scenario where an order in OMF requires a resourcing.

Flowchart illustrating an e-commerce system, showing B2B and B2C interactions with inventory and order management processes.

Calculating Sourcing Results

To calculate Sourcing Results or to use the Sourcing API, it is a prerequisite to define a Sourcing Strategy where SAP Order Management for sourcing and availability defines the Sourcing rules (Goals) and the Sites assigned to the Sourcing Strategy (Sourcing Network or Eligible Sources).

Table displaying a review strategy with sourcing configuration and site selection options, including weights, goals, and site details.

Sourcing API

The Sourcing API enables you to calculate a sourcing result for a shopping cart (for example in a webshop). The calculation is based on product availability information and optimizes the result towards a sourcing strategy.

The Sourcing APIs support both CLICK_AND_COLLECT and CLICK_AND_SHIP order management scenarios. A property in the Sourcing API request indicates the fulfillment mode (Default is CLICK_AND_SHIP).

In a CLICK_AND_SHIP scenario, the Sourcing request contains no Sites. It is SAP Order Management for sourcing and availability through the Sourcing algorithms who select and provides the best eligible Site for an order.

In a CLICK_AND_COLLECT scenario, the Sourcing request contains the pickup site.

API reference screen for SAP Order Management, displaying a sourcing strategy JSON structure and details for sourcing calculations.

The sourcing API request contains the following attributes:

  • Strategy - It is mandatory and defines the Strategy to be used to calculate the Sourcing results.
  • Reservation - It is optional and contains Reservation ID and Reservation Status. Typically reservation Status will be set as "Temporary" but it could also be set as "Pending"
  • Destination - Attributes identifying the destination of a shipment for CLICK_AND_SHIP scenarios. This field is ignored in case of CLICK_AND_COLLECT.
  • Delivery Filter - Typically filter by Service Code and latest Available to Customer.
  • Sites - only applicable for CLICK_AND_COLLECT
  • Items - Products of a shopping cart
  • Trace - Sourcing results and additional information relevant for understanding or debugging the sourcing response
  • Fulfillment - Defines the intended method to receive the ordered products
Three panels displaying an API request for a shopping cart sourcing strategy, showing examples and schema details.
Map of Germany highlighting its states, labeled with names like Bavaria, Brandenburg, and North Rhine-Westphalia.

If the customer is SOUTHGER - Sourcing Result C100.

If the customer is MIDGER - Sourcing Result C121.

If the customer is NORTHER - Sourcing Result C122.

Map of German states showing store locations, delivery times, and costs for three regions: North, Mid, and South.

Log in to track your progress & complete quizzes