Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Routing Messages Through Adapter for SAP | Overview | Components of a Routing Notification | Sender, Receiver, and Message Type
 
Sender, Receiver, and Message Type
This information uniquely identifies a routing notification. The routing listener matches incoming messages to these fields to locate the routing notification to process the incoming message.
When a message is submitted, it must provide the routing listener with sender, receiver, and message type values. The sender, receiver, and message type values contain the following information:
Value
Description
sender
An arbitrary string that indicates who sent the message.
receiver
An arbitrary string that indicates the message's destination.
message type
Identifies the type of information the message contains (for example: a purchase order, a credit memo, an invoice, and so forth).
Note:
For the Message types ORDERS and ORDRSP, a sample content based routing service is shipped with Adapter for SAP.
This replaces the sender/receiver information from the IDoc control record (SNDPRN and RCVPRN) by partner information from the E1EDKA1 segment. If this is not desired, disable this Content Based Routing from Adapters \> Adapter for SAP \> Routing/Mapping.
You can write your own service for routing based on the fields which are used in your environment. You can use Content Based Routing for this purpose.
Refer to Constructing an IDoc with the SAP Java IDoc Class Library and Built-in Services for the APIs to parse the IDoc.