Maintain Distribution Model and Distribute Views

The applications that communicate with each other within an ALE business process are specified when you model the message flow.

You can define the message flow in the distribution model.

The distribution model consists of separate model views in which all the associated, cross-system message flows in your organization can be defined. These views must be distributed to the receiving systems.

In the individual message flows you can define filters to determine which data is to be transferred to which receiving systems. The distribution model controls this distribution.

You can model ALE business processes using or not using templates for the model views. Templates contain the description of a business process in the form of message types/BAPIs and filters.

If you do not want to use templates, choose Edit -> Model view -> Create.

If you do want to use templates, choose Edit -> Model view -> Create using templates.

Templates can be created by SAP or by customers. If you want to create your own templates, use the template editor.

If you use a template, the basic model view entries are generated. You can find out whether a template is available for a particular business process from the documentation.

Each model view is defined in a central system and distributed from here to the other systems.

You can transfer model views to other environments. If you use different names for logical systems in different environments, you have to create a local copy (Edit -> model view -> copy) and change the names of the logical systems so that they match those in the target environment. Then you can transfer the copy of the model view to the target environment.

You can use the following ways to distribute data:

To find out more about BAPIs and message types, see the section
Modelling and Implementing ALE Business Processes -> Predefined ALE Business Processes.

See the notes at the end of this section.

Example

In a 'master data' model view you can specify that material master data is sent from system PRODUCTION to system SALES. Using a filter you can also specify the material types to be sent.

Requirement

To set up the distribution model, you must have already specified the logical systems. Refer to:
Sending and Receiving Systems -> Logical Systems

Recommendation

One system should be defined as the central maintenance system for all the model views.

Activities

Execute the function and select the processing mode.

You can create, change and delete model views. You can work with or without templates.
You can enter a short text describing both the valid time period for the message flows and the maintenance system of this view.
When you create a new model view, the system in which the view is created is automatically entered as the maintenance system. The names of the model views must be unique to the whole distributed environment in your organization.
Choose 'Edit -> Model view', then choose the action you want to carry out.
To model a BAPI call, enter the method to be called in the distribution model. You must specify the model view in which the entry is to be made, the sending and receiving systems, the SAP business object and the method of this object to be called.
If you place the cursor within the distribution model list before you add the method, default values will be suggested in accordance to the position of the cursor.
To model a message flow without using BAPIs (IDoc communication), add the message type to the distribution model. You have to specify the model view in which the message flow is to be entered, the sending and receiving systems and the message type to be used.
If you place the cursor within the distribution model list before you add the message type, default values will be suggested.
Filters are conditions that BAPIs have to satisfy so that they can be distributed by ALE outbound processing.
The BAPIs and message types in a model view that are filtered contain a relevant sub-entry.
In the change mode you can define filter groups and values by selecting
Edit -> Display/edit details.
The following types of filtering are possible:

Prerequisite:
You have defined the filter objects for a specific BAPI and assigned them to the BAPI. For more information see the ALE Programming Guide under Filtering Data.

There are two types of filtering to choose from:

Interface Reduction:
Here optional BAPI parameters and/or BAPI fields are switched off.
You can choose the options:
- Reduce by fields
- Fully reduced
For example, the BAPI RetailMaterial.Clone is called with parameters containing basic data, production data, sales and distribution data, plant data, etc.
If the BAPI is called by a material reference system in a sales and distribution system, only the parameters containing basic data and sales and distribution data have to be transferred.

Content-Dependent Filtering
The rows of the BAPI table parameters which do not satisfy the distribution conditions are filtered out.
Developers can also use field references to define hierarchy relationships between table parameters. Such hierarchies are maintained in the ALE Development menu under BAPI -> Maintain hierarchy for BAPI table parameters.
You can also distribute data using classes. For more information see the section Master Data Distribution.

IDoc Segment Filtering
With message types the filter object type corresponds to a field name of an IDoc segment. When the data is filtered any IDoc segments and sub-segments that do not satisfy the conditions are not sent.
If a mandatory segment of an IDoc is not sent, neither is its parent segment of the IDoc structure.
If this parent segment happens to be the header segment of the IDoc, the whole IDoc is not sent.
To get to segment filtering choose:
Master Data Distribution
Scope of Data for Distribution
Filter IDoc Segments.
Distribution Using Classes
Message types can also be distribed using classes. For
more information see Distribution Using Object Classes.
The following sections describe how you create and combine filters.

Place the cursor on the required method/message type and choose Edit -> Display details . If there are several filtering options for one BAPI or message type, then choose the relevant option (e.g. receiver determination). Define thefilter object by assigning a value to the selected fitler object type in Display details (e.g. filter object type "material type", value "PROD").

For some filter object types you can only select Distribution using classes and no object value.

For some filter object types you can select one or more predefined dependencies.
If such a dependency exists in the ALE distribution model, the data and receiver are filtered in the referenced interface.
Dependencies describe the following relationships:
- between message types
- between a BAPI method and a message type
- between BAPI methods
If a dependency exists between BAPI methods in the distribution model, the data filtering and receiver filtering is carried out via the referenced interface.

Individual filters can be linked with logical operators. Filter groups are used for this purpose. An 'OR' operator links filters in different filter groups.
Each filter group is evaluated independently of other filter groups.
Within a filter group the filter object types (for example, material type and plant) are linked by an 'AND' operator. On the other hand, if there are several filter object types in one filter group (for example, Plant 0001 and 0002), they are linked by an 'OR'.
If no filter has been specified for a method or for a message type, the appropriate link operator for all possible objects is used.

Further Notes