Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
How To…
Handle
Acknowledg-
ments for IDoc
Version 1.00 – Sept 2006
Applicable Releases:
SAP NetWeaver 2004s
End-to-End Process Integration
Enabling Application-to-Application Processes
© Copyright 2006 SAP AG. All rights reserved. contained in this document serves informational
purposes only. National product specifications may vary.
No part of this publication may be reproduced or
transmitted in any form or for any purpose without the These materials are subject to change without notice.
express permission of SAP AG. The information These materials are provided by SAP AG and its affiliated
contained herein may be changed without prior notice. companies ("SAP Group") for informational purposes
only, without representation or warranty of any
Some software products marketed by SAP AG and its kind, and SAP Group shall not be liable for errors or
distributors contain proprietary software components of omissions with respect to the materials. The only
other software vendors. warranties for SAP Group products and services are those
that are set forth in the express warranty statements
Microsoft, Windows, Outlook, and PowerPoint are accompanying such products and services, if any.
registered trademarks of Microsoft Corporation. Nothing herein should be construed as constituting an
additional warranty.
IBM, DB2, DB2 Universal Database, OS/2, Parallel
Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, These materials are provided “as is” without a warranty
iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent of any kind, either express or implied, including but not
Miner, WebSphere, Netfinity, Tivoli, and Informix are limited to, the implied warranties of merchantability,
trademarks or registered trademarks of IBM Corporation fitness for a particular purpose, or non-infringement.
in the United States and/or other countries. SAP shall not be liable for damages of any kind including
without limitation direct, special, indirect, or
Oracle is a registered trademark of Oracle Corporation. consequential damages that may result from the use of
these materials.
UNIX, X/Open, OSF/1, and Motif are registered SAP does not warrant the accuracy or completeness of
trademarks of the Open Group. the information, text, graphics, links or other items
contained within these materials. SAP has no control
Citrix, ICA, Program Neighborhood, MetaFrame, over the information that you may access through the
WinFrame, VideoFrame, and MultiWin are trademarks use of hot links contained in these materials and does not
or registered trademarks of Citrix Systems, Inc. endorse your use of third party web pages nor provide
any warranty whatsoever relating to third party web
HTML, XML, XHTML and W3C are trademarks or pages.
®
registered trademarks of W3C , World Wide Web SAP NetWeaver “How-to” Guides are intended to
Consortium, Massachusetts Institute of Technology. simplify the product implementation. While specific
product features and procedures typically are explained
Java is a registered trademark of Sun Microsystems, Inc. in a practical business context, it is not implied that those
features and procedures are the only approach in solving
JavaScript is a registered trademark of Sun Microsystems, a specific business problem using SAP NetWeaver. Should
Inc., used under license for technology invented and you wish to receive additional information, clarification
implemented by Netscape. or support, please refer to SAP Consulting.
Any software coding and/or code lines / strings (“Code”)
MaxDB is a trademark of MySQL AB, Sweden. included in this documentation are only examples and
are not intended to be used in a productive system
SAP, R/3, mySAP, mySAP.com, xApps, xApp, and other environment. The Code is only intended better explain
SAP products and services mentioned herein as well as and visualize the syntax and phrasing rules of certain
their respective logos are trademarks or registered coding. SAP does not warrant the correctness and
trademarks of SAP AG in Germany and in several other completeness of the Code given herein, and SAP shall
countries all over the world. All other product and not be liable for errors or damages caused by the usage of
service names mentioned are the trademarks of their the Code, except if such damages were caused by SAP
respective companies. Data intentionally or grossly negligent.
1 Scenarios
This guide deals with the processing of acknowledgment messages for IDoc scenarios
via SAP XI. The following scenarios are considered:
IDOC
XID_112
IDoc Adapter
IDoc Adapter
IDOC ALEAUD
Integration
Server
IDOC
B6M_000 ALEAUD U6D_700
ALEAUD
XID_113
A sender SAP system sends an IDoc message to SAP XI. SAP XI passes the message
to a receiver SAP system via IDoc adapter. Once the IDoc has been received, an
ALEAUDIT IDoc is generated, and sent back to SAP XI. In SAP XI, the ALEAUDIT IDoc
is converted into an acknowledgment. SAP XI sends back the acknowledgment to the
sender system via IDoc adapter where it is converted into an ALEAUDIT IDoc.
IDoc Adapter
http IDOC/tRFC
Integration
3rd Party Adapter Server
Application Engine
http XIA_100 ALEAUD XIA_113
An external sender system sends a message to SAP XI via its adapter engine. SAP XI
passes the message to a receiver SAP system via IDoc adapter. Once the IDoc has
been received, an ALEAUDIT IDoc is generated, and sent back to SAP XI. In general,
technical sender adapters are not able to request acknowledgments (except for industry
speak adapters). So, the acknowledgment won't be passed back to the sender system.
Instead, the ALEAUDIT IDoc has to be converted into an XI request message in order to
be accepted by the sender system.
2 Introduction
For asynchronous messages, an acknowledgment informs the sender about the status of
message processing. There are four types of acknowledgment:
• System acknowledgment: sent back when the request arrives at the final
receiver.
-1-
• System error acknowledgment: sent back when a system error occurs during
message processing within SAP XI.
• Application acknowledgment: sent back when the message is successfully
processed within the receiver application.
• Application error acknowledgment: sent back when an error occurs during
message processing within the receiver application.
To change the default request setting, the corresponding message type has to be
maintained in an exception table. Prior to SAP NetWeaver '04s Exchange
Infrastructure SPS09, the exception table has to be explicitly edited. As of SAP
NetWeaver '04s Exchange Infrastructure SPS09, a program is provided to configure
the acknowledgment requests (see chapter 3.4).
As stated above, technical sender adapters do not request any acknowledgments. In this
case, the ALEAUDIT IDoc has to be converted to an XI request message before sent
back to the sender of the original message. The sending of acknowledgments as XI
request messages is supported as of SAP NetWeaver '04s Exchange Infrastructure
SPS09 (see chapter 6).
Note that the resulting XI request message is a new message, and does not refer to
the original request message sent by the external sender system. The message
monitoring is not able to determine the link to the original message.
IDocs only return acknowledgments if the receiver is configured for using ALE audit (see
chapter 3.1).
ALE audit is only possible for IDocs of type logical system (LS).
-2-
3 Configure Scenario 1: IDoc - XI - IDoc
-3-
4. Call transaction WE21 to create the
tRFC Port SAPU6D using the
corresponding RFC destination.
-4-
7. Configure sending of confirmations.
-5-
3.2 Configure Routing for Acknowledgments
-6-
3.3 Configure the Integration Server (Optional)
-7-
3.4 Configure Acknowledgment Requests (Optional)
-8-
4. Call transaction SXMB_MONI to
display the XI messages.
-9-
4 Message Monitoring Aspects
- 10 -
4. The HopList message header
section records the path from the
original sender to the final receiver in
order to route acknowledgement
messages back. The request
message hop list is copied to the
header of the acknowledgment
message.
- 11 -
5 Scenario 1: Case Studies
- 12 -
4. Sender – Inbound:
5. Sender – Outbound:
- 13 -
7. Message monitoring on the
Integration Server:
8. Receiver – Inbound:
9. Receiver – Outbound:
- 14 -
11. Sender – Outbound:
- 15 -
5.2 Case Study 2: System Error in Receiver System
2. Sender – Outbound:
3. Receiver – Inbound:
- 16 -
4. Receiver – Outbound:
6. Sender – Outbound:
- 17 -
8. Receiver – Inbound:
9. Receiver – Outbound:
- 18 -
12. Receiver:
- 19 -
5.3 Case Study 3: Application Error
1. Receiver – Inbound:
2. Receiver – Outbound:
- 20 -
4. Sender – Outbound:
5. Receiver – Outbound:
7. Sender – Outbound:
- 21 -
5.4 Case Study 4: Multiple Receivers (Branching)
- 22 -
4. Message monitoring on the
Integration Server:
5. Sender – Outbound:
- 23 -
6 Configure Scenario 2: ALEAUDIT as request message
- 24 -
3. Call transaction SXMB_MONI to
display the XI message.
- 25 -
7 Appendix
The IDoc status are categorized into status groups (qualifications). The status of the IDoc
at the outbound side is updated depending on the status group that the IDoc status at
the inbound side belongs to. You can call transaction WE47 (Status Maintenance) to
change the assignment between status and status group.
The mapping table below shows how the IDoc status (inbound and outbound) and the XI
acknowledgment status are related to each other. It is assumed that the IDoc status is
assigned to the status groups according to the SAP default settings. The mapping table
is valid unless this assignment is changed.
Legend:
39 IDoc is in the target system
40 Application document is not created in target system
41 Application document is created in target system
50 IDoc is added
51 Application document is not posted
52 Application document is not fully posted
53 Application document is posted
56 IDoc with errors is added
68 Error – No further processing
- 26 -
www.sdn.sap.com/irj/sdn/howtoguides