Maintenance of the Distribution Model in Business Data Orchestration

The distribution model enables you to configure how master data is replicated from provider systems to consumer systems in Business Data Orchestration, including object selection filters and data scope settings. Use this to control which master data objects and attributes are distributed between connected systems, ensuring precise and efficient data replication across your landscape.

If not all objects or object-specific data are relevant for a consumer, replication filters on object-instance level and data scope ensure the precise distribution of master data.

The distribution model is configured in the Manage Distribution Model app of Business Data Orchestration. After subscription to Business Data Orchestration by following the steps described in Subscription Process for Business Data Orchestration, you can access the UI by clicking on Go to Application. This will navigate you to Business Data Orchestration and the app Manage Distribution Model on the SAP Fiori launchpad. In the app Manage Distribution Model, a list report page displays all maintained distribution models including active and inactive models and their draft versions. To select a model from this list and bring up its detail view, click in the corresponding table row. By clicking on Create, you can create a new distribution model. A draft version is created in which the entries are saved automatically. When you click on Save, the draft is saved as inactive version; this is only possible if all required fields have been filled correctly. Clicking on Activate will then activate the newly created distribution model.

The main entities of the distribution model are as follows:

Descriptions

Use the description to add any information you consider useful for administrators to understand which distribution model is meant for which use case. For example, indicate in a human-readable manner what data entities may be included, or from where data is distributed to which system.

Providers and Consumers

The provider and consumer destinations are maintained in the SAP BTP cockpit. The provider is the source from which objects are sent. The consumer is the target to which objects are sent. For further information, please see Connecting Applications.

When selecting the Application Category SAP S/4HANA Cloud in consumer applications, certain default filters are added to the data scope by Business Data Orchestration. It means that only the distributed data is reduced, and not the number of distributed instances or objects, which is the responsibility of the object selection

Description of SAP Master Data Integration filters based on consumer Application Category:

  1. When the application category SAP Cloud for Customer (C4C) is selected for the business object type Business Partner, only the standard address of the respective business partner (sap.odm.businesspartner.BusinessPartner) is sent to SAP Cloud for Customers.

  2. When the application category SAP S/4HANA Cloud (S/4) is selected for business object type Workforce Person (sap.odm.workforce.WorkforcePerson):

    1. These filters are applicable to WorkforcePerson.workAssignments.privateAddresses aggregation:

      • WorkforcePerson.privateAddresses and WorkforcePerson.workAssignments.privateAddresses included only if WorkforcePerson.workAssignments.paymentDetails.paymentType.code equals “MAIN” or “EXPENSES”

    1. These filters are applicable to WorkforcePerson.workAssignments.paymentDetails aggregation:

      • When WorkforcePerson.workAssignments.paymentDetails.paymentType.code “EXPENSES” exists then “MAIN” should be excluded

      • When WorkforcePerson.workAssignments.paymentDetails.paymentType.code “EXPENSES” does not exists but only “MAIN” then replicate only “MAIN”

      • When WorkforcePerson.workAssignments.paymentDetails.paymentType.code “MAIN” does not exists then do not replicate any paymentType

  3. When the application category SAP Commerce Cloud (HyC) is selected, it has currently no effect on any object type.

In a model, you can either specify a provider with one or more consumers, or you can specify a consumer with one or more providers.

Parameters

  • Business Object Type

    The business object type defined as SAP One Domain Model type specifies the business object which is used for distribution. The selection of the business object type restricts the further setup of the provider interface (API) selection. For different business object types, separate distribution models have to be maintained.

  • Version

    The version indicates which object type is in which version. It is recommended to use the newest available version supported by the provider and the consumer.

  • Provider Interface

    The provider interface determines the API to distribute the master data. It depends on the specified business object type and direction of replication. Please make sure to select the API which provides the correct protocol. If you want to replicate data to SAP Master Data Integration, the name of the API needs to contain CHANGE or SOAP. For replicating data from SAP Master Data Integration, the name of the API needs to contain LOG or SOAP.

  • Package Size

    The package size specifies up to how many objects are contained in a single message. Please note that for LOG API (Pull mode), only package size 1 is currently supported.

Mode

The mode determines which system triggers the data distribution. In Push mode, this is done by the provider who pushes data to the consumer. In Pull mode, the consumer regularly requests changes from the provider. In any case, the filtering of the data is done by the provider.

Recurrence Pattern

The recurrence pattern determines when replication takes place:
  • If you select Continuous Distribution, the objects will be replicated immediately when a new object is created or when an existing object is changed.

  • If you want to specify a replication schedule instead, select the corresponding entry from the dropdown list.

Object Selection and Data Scope Filters

These filters determine the business object instances and business object data that are replicated.

The attributes available for filtering depend on the SAP One Domain Model and how it is implemented by the provider. The attributes have to be selected in accordance with the respective business scenario.

Object Selection

The Object Selection determines to which object instances the distribution model applies. The selection made in this section includes or excludes objects from the distribution (for example, if you select Include and filter for business partners with the address attribute BP.Address.Country='DE', the complete data for all business partners who have at least a matching address will be replicated). If nothing is specified, all objects of the relevant business object type will be replicated.

To configure the Object Selection, one or several filters have to be created. An object is replicated if one of the valid filters applies to it. This means, if you specify multiple applicable filters, these filters are logically combined with OR. With the optional fields Valid From and Valid To, you can specify the date and time a filter should be applied. If several filters are valid at a specific point in time, an object only needs to fulfill the specifications of one of these filters to be replicated.

You can specify several conditions in a single filter by selecting the applicable attributes from the dropdown list. Please note that filter conditions using multiple different attributes will always be combined with AND, whereas filter conditions using the same attribute will result in an OR combination.

Examples:

  • PartnerType = 'Organization', Role.Code = 'Supplier', and Country = 'DE' uses three different attributes in one filter. Thus, there are only AND conditions and the resulting filter statement would look like this:

    PartnerType = 'Organization' AND Role.Code = 'Supplier' AND Country = 'DE'.

  • On the other hand, a combination of Country = 'DE', Country = 'AU', and Country = 'DK' in one filter would result in an OR condition (all partners from the three countries), as the same attribute is used with different valid values. Thus, the filter statement would look like this:

    Country = 'DE' OR Country = 'AU' OR Country = 'DK'.

Complex Filters

As described above, it can be required to create more than one single filter. This applies if you want to specify more complex filter statements.

It's necessary to create several filters in a distribution model, if:
  • The filter conditions are subject to change over time.

  • The conditions for selecting the objects to be replicated are independent from each other. By defining several filters for conditions independent from each other, the creation of a cross product of the independent filter conditions is avoided.

It's important to understand when you can use single filters and when you need to create several independent filters. The below examples show which criteria need to be separated into different filters and which don’t, following the combination rules explained above.

  • PartnerType = 'Organization' AND (Role.Code = 'Supplier' OR Role.Code = 'Customer'):

    In this example, you can use one filter to define the criteria. The result will include all organizations which are either supplier or customer. As mentioned above, filter criteria which use the same attribute for selection, in this case Role.Code, will always automatically be combined with OR.

  • PartnerType = 'Organization' OR (Country = 'DE' AND Role.Code = 'Supplier'):

    • In this example, you have to create two filters. The statement includes all business partners that are an organization and additionally partners that are from Germany and suppliers, independent from whether they are an organization or not.

    • The filter conditions are therefore independent from each other. Thus, two filters are required to prevent all criteria to be combined with AND (which would falsely result in a list of partners which fulfill all three attributes, i.e., are an organization, from Germany, and a supplier).

  • PartnerType = 'Organization' AND (Country = 'DE' OR Currency = 'EUR'):

    In this example, you have to create two independent filters for the logical statement. There are two different attributes in the brackets. If you maintained these conditions in the same filter, these would follow the general logic mentioned before (different attributes in one filter will always be logically combined with AND).

    The resulting filter statements need to be as follows:

    a) PartnerType = 'Organization' AND Country = 'DE'

    b) PartnerType = 'Organization' AND Currency = 'EUR'

Filter Configuration

The configuration of the filters is done on a subpage which opens when you click on the Create button in the table of the Object Selection section. Under Include and Exclude, you can specify the appropriate conditions. A filter condition consists of the attribute name (for example, Address/to_PostalAddress.Country) from the dropdown list, the operator (for example, equal to), and the value (for example, 'DE'). To add additional conditions to a filter, click on the + sign. When you create conditions, the resulting filter statement is displayed in the header. This information should be used to check if the specified conditions created the desired filter. If, as described above, you need to specify several filters for a distribution model that are independent from each other, add further filters by clicking on the Create button in the table of the Object Selection section again.

Data Scope

The Data Scope determines the data that will be replicated. This filter specifies which segments will be included in or excluded from the replication with this model. If nothing is specified, all data of the relevant object will be replicated.

Example:

If you exclude the address data for a business partner, this applies to the complete address data for the relevant object, but for example not to the business partner's bank details. Hence, the bank details of this business partner will be included in the replication. Please note that filters need to be defined for the segment of data they are to be applied to, e.g. addresses can only be filtered by conditions applied to address attributes. To exclude e.g. German address data, you have to specify a data scope like Exclude BP.Address.Country='DE'. Please note that filter conditions using multiple different attributes will always be combined with AND, whereas filter conditions using the same attribute will result in an OR combination.

The Cutoff Date specifies the date for filtering time-dependent entities of a dataset, for example address and bank details of an employee. Time-dependent data will not be included in the distribution if its validity ends before the specified cutoff date. This date is always in the past and serves to prevent the distribution of outdated data to the consumers. Data which is not time-dependent is still distributed, e.g. if all time-dependent data of an employee is not valid and thus not distributed anymore, the employee's central dataset will still be included in the distribution.

For further information on the different Object Selection filters and Data Scope filters for business partners, refer to the below section:

Key Mapping

When the Distribute Key Mapping checkbox is selected, the Key Mapping Filter is shown. With this filter, you can restrict the key mapping information to be distributed by specifying the Business System, Business Object Type or Object Identifier Type.

If the Distribute Key Mapping checkbox is selected, key mapping information will be sent together with the object to the consumer. If it is not selected, no key mapping information is sent out. Please note that key mapping is currently only supported for SOAP messages.

Activation, Deactivation, and Editing of the Distribution Model

Activation

To start the distribution of master data, the distribution model needs to be activated. After activation, the status of the model is set to active, and the active model is replicated to the providers and, if the selected Mode is Pull, also to the consumers.

Deactivation

If a model is deactivated, its status is set to inactive. The deactivation is distributed to the providers and, if the selected Mode is Pull, also to the consumers. Thereupon the distribution of data is stopped. When you activate the model again, the reactivation will be distributed to the providers and, if applicable, consumers.

For information about possible errors that may occur during activation or deactivation, see 3723258 - Error during Distribution Model Activation or DeactivationInformation published on SAP site.

Editing

Once a model is or has been active, providers can no longer be edited. This means you cannot add, remove, or modify any provider entry. To use different providers, create a new model. For example, by using the Copy button.

Trigger the Replication of Master Data

Once you have selected the distribution model, you can use Replicate to trigger data replication between clients. You have two options when performing a replication:
  • Initial Replication: Immediately replicate all modified objects. All objects contained in this replication, would have been contained in the next scheduled replication run..

  • Delta Replication: Replicate all qualified objects from the provider to the consumer. This operation can inflict heavy load on provider and consumer.

Tags

You can now assign tags to distribution models and use them to filter and organize your distribution models. The system uses these tags to assign multiple models to a business scenario, and you can also create and assign your own tags.

You can either create your models via the Wizard or manually.

Models created via the Wizard
  • When you create models using the Wizard, the system automatically creates a tag with the same name as the business scenario.

  • This tag is assigned to all models created within that wizard.

  • System-generated scenario tags cannot be removed.

Manually created models
  • Models created without the Wizard are automatically assigned the tag “Manual.”

  • The “Manual” tag cannot be removed.

Edit Tags

Click on Edit Tags, to open the dialog box. Under General Tag Creation you can create new tags. Newly created tags are immediately assigned to the model and are created as general tags.

In the field Business Scenario Tags, you can either assign the model to one or more existing business scenarios, assign the model to an existing general tag, or remove a tag from a model.

Business Scenarios created via wizard: When models are created using the wizard, the corresponding business scenario tag is automatically assigned. These models are marked as “Managed by SAP” = Yes. In this case, the business scenario tag cannot be removed.

Business Scenarios created manually: If a model is created manually and later assigned to a business scenario, it is marked as “Managed by SAP” = No. In this case, the business scenario tag can be removed.

As long as the manually added model carries the business scenario tag, it is treated like all other models in that scenario.