Posted on Apr. 21, 2010 at 04.40 PM - Chennai, India
In what situation do we use this feature?
You use an enhanced receiver determination to have a mapping program determine the receivers of the message dynamically at runtime. Instead of creating the receivers in the receiver determination manually, you assign a mapping to the receiver determination and this returns a list of receivers at runtime.
A typical usage case is if you do not yet know the names of the receivers at configuration time. In this case, you can define a mapping program, for example, which reads a list of receivers from a table or from the payload of the message at runtime.
Step by step
The step by step will just point out the steps required for enhanced receiver determination to work, and does not cover the whole design and configuration objects step.
1. Message Mapping
Define message mapping between outbound message type and abstract SAP standard message type “Receivers” which is as Inbound message type and which is in the SAP BASIS --> http://sap.com/xi/XI/System. Over here, you have to populate the receivers list dynamically based on the source message.
The following instance of the data type Receivers contains two receivers. The first receiver comprises a party and service and is identified by a DUNS number; the second receiver comprises a service without a party.
<Receivers>
<Receiver>
<Party agency=“016“ scheme=“DUNS“>123456789</Party>
<Service>MyService</Service>
</Receiver>
<Receiver>
<Party agency=“http://sap.com/xi/XI“ scheme=“XIParty“></Party>
<Service>ABC_200</Service>
</Receiver>
</Receivers>
2. Interface/Operation Mapping
During the definition of the interface mapping, you assign the abstract message interface ReceiverDetermination as the target interface. The message interface ReceiverDetermination is in the Integration Repository in the software component SAP BASIS (namespace http://sap.com/xi/XI/System).
3. Receiver Determination
While defining receiver determination, chose the “extended” option button. Now we can select the Interface Mapping that we created in Integration repository.
If you need further step by step to implement this feature, please visit the links below: http://www.saptechnical.com/Tutorials/XI/RecvDetermination/Enhancement.htm or http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3343
Life is beautiful! Let's make it meaningful and colorful!