Understanding Message Flow in XI - SAP Blogs PDF
Understanding Message Flow in XI - SAP Blogs PDF
Products
Products Industries
Industries Services and Support
Services Support Training
Training Community
Community Developer
Developer
Partner
Partner About
About
Ask a Question Write a Blog Post Login
Former Member
May 25, 2005 5 minute read
Understanding message ow in XI
Follow RSS feed Like
The life cycle of the message is explained in detail by taking an example scenario. The le is picked up by the
Sender File adapter and the data is inserted into DB table by Receiver DB Adapter.
The adapter engine uses the messaging system to log the messages at every stage. This log is called the
Audit Log. The audit log can be viewed from the runtime work bench (RWB) to look into the details of the
lifecycle of the message. During our journey we will also have a look at the messages that are logged at di erent
stages.
Note: This article is targeted for the newbie’s who want to understand the message ow in Adapter Engine. So
the insight into the message lifecycle is provided here by taking only the Technical adapters (File/ JDBC/ JMS/
Mail) into consideration. It doesn’t delve into the lifecycle of the messages that have reached XI Adapter Engine
using RNIF/ BC/ CIDX adapters.
ONWARD JOURNEY:
https://blogs.sap.com/2005/05/25/understanding-message-flow-in-xi/ 1/10
8/9/2019 Understanding message flow in XI | SAP Blogs
1.
2. For the message to be picked up by the communication channel, the channel should be associated with a
sender agreement. Mere creation of a communication channel doesn’t ensure the message to be polled and
picked up by the adapter. The message reaches the adapter in its native message format. As the
communication in SAP XI happens in XI message format, a module inside the adapter converts the message
in native format into XI message format.
3.
4. During this process, a message ID is generated for the message. To build the XI header (sender agreement
details like the sender system, sender message interface and the interface namespace) the details are
fetched by performing a CPA lookup(collaboration-partner-agreement are the con guration object details
that have been created using the con guration time. The details are updated into the runtime cache when
you activate the Con guration objects in Integration builder –Con guration time. This cache is referred to as
CPA cache).
5.
6. This message is then sent to module processor for further processing. During the process of sending the
message to module processor, the message “Application attempting to send an XI message asynchronously
using connection AFW” is logged.
7.
8. The module processor performs steps like structure conversion, communication channel speci c
conversions (that have been speci ed in the “module tab” of the adapter channel). These conversion
modules are executed in the same sequence as mention in the communication channel.
9.
10. After the successful execution of the conversion modules, the appropriate module (call SAP adapter
module) of the module processor is called which will send this message for persistent storage. This message
is put into the Send Queue of the messaging system for further processing. Messages like “Message trying to
https://blogs.sap.com/2005/05/25/understanding-message-flow-in-xi/ 2/10
8/9/2019 Understanding message flow in XI | SAP Blogs
put into the send Queue” and “Message successfully put into the queue” are logged during this process. A
con rmation message (success/ failure) is sent back to the sender application at this stage. This
con rmation message is used by the channel to perform various steps like deleting the le that has a
processing mode as delete.
11.
12. The message that has been put in the Send Queue has to be picked up and sent to the Integration Engine.
The Adapter Engine and XI Integration server use XI Adapter for internal communication purposes. So the XI
Adapter picks up message from the send queue and parses the XI message. In this process, the status of the
message is set to DLNG and. Messages like “The message was successfully retrieved from the send queue
and message status set to DLNG”are logged.
13.
14. The XI adapter performs a SLD look up (System landscape Directory) to nd the Integration server with
which the Adapter framework has register itself.
15.
16. On successful SLD look up, the message is sent via HTTP to the XI IS pipeline, using the pipeline URL
(http://hostname:abap-httpport/sap/xi/engine?type=entry). . If this is successful, a message “The
message was successfully transmitted to endpoint http://hostname:8000/sap/xi/engine?type=entry using
connection AFW” is logged and the message statues is set to DLVD means message has been successfully
delivered to the endpoint( XI IS in this case)
17.
RETURN JOURNEY:
The return journey commences when the IS has successfully processed the message and delivers it to the
Messaging system using the URL “http://hostname:50000/MessagingSystem/receive/AFW/XI”
https://blogs.sap.com/2005/05/25/understanding-message-flow-in-xi/ 3/10
8/9/2019 Understanding message flow in XI | SAP Blogs
1. br>
https://blogs.sap.com/2005/05/25/understanding-message-flow-in-xi/ 4/10
8/9/2019 Understanding message flow in XI | SAP Blogs
12. The message is forwarded to the module processor where additional steps like structure conversions and
extra modules speci ed in the adapter are performed.
13.
14. The exit module is called and the message is sent to the appropriate adapter (DB Adapter in this case). The
format conversion will be executed within the speci c adapter and sent to the Receiving system (DB in this
case) using the channel that has been determined by the AFWListenerBean and the required action is
reformed (select statement is performed in this case). On successful processing of the message the status is
set to DLVD.
15.
RESULT:
This blog should help you in understanding the complete life cycle of the message in XI.
I thank my team members Mr. Varun Joshi & Mr. Arpit seth, for helping me in the collaborative study and also
Mr. Sudhir Porumamilla for his excellent architectural inputs.
https://blogs.sap.com/2005/05/25/understanding-message-flow-in-xi/ 5/10
8/9/2019 Understanding message flow in XI | SAP Blogs
Alert Moderator
Assigned tags
Related Questions
16 Comments
Former Member
Like (0)
Former Member
https://blogs.sap.com/2005/05/25/understanding-message-flow-in-xi/ 6/10
8/9/2019 Understanding message flow in XI | SAP Blogs
ram
Like (0)
Former Member
Regards,
Amit
Like (0)
Former Member
Like (0)
Former Member
Like (0)
Prabhu S
Like (0)
https://blogs.sap.com/2005/05/25/understanding-message-flow-in-xi/ 7/10
8/9/2019 Understanding message flow in XI | SAP Blogs
Former Member
Like (0)
Former Member
Like (0)
Former Member
Like (0)
Former Member
Like (0)
https://blogs.sap.com/2005/05/25/understanding-message-flow-in-xi/ 8/10
8/9/2019 Understanding message flow in XI | SAP Blogs
Former Member
Like (0)
Former Member
Like (0)
Former Member
Like (0)
Former Member
Thanks in Advance,
Shweta.
Like (0)
Former Member
Like (0)
Hari Sonnenahalli
Thanks
HS
Like (0)
Sitemap Newsletter
https://blogs.sap.com/2005/05/25/understanding-message-flow-in-xi/ 10/10