Monday, December 10, 2007

How to use enhanced receiver determination?

In the standard receiver determination, we used to have the condition editor. But only XPaths can be given in the condition editor and so the functionalities are limited. Using Xpaths become complex in case we have to get substring, do arithmetic operations etc. Moreover, more than one node cannot be used in evaluating conditions.

All these features can be incorporated using the enhanced receiver determination. The list of receivers can be determined dynamically at runtime, using a message mapping. This allows us to evaluate any condition, since all the functionalities of message mapping can be used.

Screenshots of Input and Output files.
Input File:

Output File1:

Output File2:

Steps for using Enhanced Receiver Determination.

Integration Repository
1. Create the Data types, Message types and Message interfaces.
2. Now create the message mappings. In order to use the enhanced receiver determination, create a message mapping which has the target message as “Receiver Determination” in the SAP BASIS -->


3. For determining the receivers I have used a user defined function.

If there is at least one “name” starting with “Mr” then MrService is added to the receivers list. In a similar manner if there is a “name” starting with “Ms” then MsService is added to the receivers list. This is accomplished using the user defined function given below.

4. Other message mappings are created based on the scenario.

Similarly mapping for “Ms” is also created.

5. Create the Interface Mapping for the message mappings.


Integration Directory

1. Create the receiver determination. In that chose the “extended” option button. Now we can select the Interface Mapping that we created in Integration repository.


2. Other Interface determinations can be created and the original interface mappings for functionality can be chosen in these interface determinations.

3. The necessary sender and receiver agreements are created.

The activation of all the objects completes the scenario.

This Enhanced Receiver Determination feature is useful in many ways and can solve many complex things. Hope this blog helps you to understand the enhanced feature.

No comments:

Blog Archive