0 System
Applies to:
SAP SRM 7.0. For more information, visit the Supplier Relationship Management homepage.
Summary
The article describes the procedure to monitor as well as debug the failed XML messages in SAP SRM system. In this scenario, data migration is from SAP R/3 (ECC 6.0) to SAP SRM 7.0 via SAP XI. Author: Saba Sayed
Created on: 12 September 2009
Author Bio
Saba Sayed is a SAP certified NetWeaver ABAP Consultant. She has approximately four years of SAP experience and has worked extensively in ABAP, OO ABAP, Workflow and ALE/IDoc. She has worked on SAP R/3 as well as SAP SRM systems.
SAP COMMUNITY NETWORK © 2009 SAP AG
SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 1
....... 4 Debugging failed XML messages .....................com | BPX ................................................................ 3 Issue ......................... 3 Transactions ..........Monitoring and Debugging XML Messages in SAP SRM 7...................................... 12 SAP COMMUNITY NETWORK © 2009 SAP AG SDN ..................................................................................................................................................... 3 Definition ........................................... 6 Related Content ... 3 Navigation ............sap............................ 2............................................... 4 Monitoring XML messages ....................................................... 4 Step by step procedure................com | BOC ...... 11 Disclaimer and Liability Notice ...... 6............................boc......................sap...........................................1 6... 4.......................0 system Table of Contents 1..........................................sdn...............................................................................................................................................................................................................................bpx.............................sap... 6......................................................................................................................................................................................................2 Business Requirement............................................................................... 3..........................................com 2 ........................................ 5.....................
Monitoring and Debugging XML Messages in SAP SRM 7.sap. The structure of a message is determined by the interface data structure that is used. SAP SRM 7.sdn. Both systems are connected to SAP XI by means of special classes called proxies.sap.sap. Business content is transferred in the form of eXtensible Markup Language (XML) messages.com | BOC . so. Exchanging XML Messages The core of the SAP XI infrastructure is a message-oriented communication based on Hyper Text Transfer Protocol (HTTP).com 3 .) 2.boc. Navigation SAP NetWeaver > Process Integration > SAP Exchange Infrastructure > Runtime > Integration Engine > Monitoring > Monitor for Processed XML Messages. Transactions Monitoring XML Messages . we will have to monitor and debug its cause in SRM system.SXMB_MONI ABAP Proxy generation – SPROXY SAP COMMUNITY NETWORK © 2009 SAP AG SDN . for example between an SRM document and a Document Builder document. SAP R/3 is the sending system and SAP XI is a middleware that connects both the system.0 is the receiving system.0 system 1. Business Requirement i) Monitor XML message flow between the sender and the receiver systems via SAP XI. ii) Track and debug failed XML messages (Please note: In this case.com | BPX . 4. Failure is at receiving end.bpx. For detailed information please check the below link: SAP Exchange Infrastructure 3. Definition SAP Exchange Infrastructure The SAP Exchange Infrastructure (SAP XI) is a middleware that enables you to connect SAP and non SAP systems with each other in a heterogeneous system landscape and transform message content between sender and receiver systems.
It will navigate to the following screen: b. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .Monitoring and Debugging XML Messages in SAP SRM 7.1 Monitoring XML messages a.sap. Step by step procedure 6. Click on execute button. Go to transaction ‘SXMB_MONI’ to monitor XML messages. Red flag means there is an error in XML message.sap. 6.com 4 .bpx.e.com | BPX .0 system 5. We will have to analyze the error and its cause by monitoring and then debugging the failed XML message at the receiving end i. SRM system.sdn.sap. Issue Data migration failed at the receiving end.boc.com | BOC .
Following screen will appear: d.boc.com | BOC .Monitoring and Debugging XML Messages in SAP SRM 7. to display the entire message in detail.0 system Select the message and click on ‘Error Information’ pushbutton (as shown in the above picture) to check the error message only. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .sap.com | BPX .sap.bpx. c. either double click on the message or click on ‘Display’ pushbutton as shown below.sap. Now.com 5 . Select ‘Trace’ (Call Inbound Proxy -> SOAP Header -> Trace) to check the error description on the right-hand side.sdn.
sap. posted from IDOC). you will get the main record detail (i.boc.sdn. g.2 Debugging failed XML messages a.bpx.com | BPX .sap. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . Select the respective node and interface (from 7.sap. Go to transaction ‘SPROXY’ to check the service details. Under Payloads Main Document.e. You can reprocess the error message by clicking on ‘Restart’ button as shown in figure ‘e’.0 system e. Get the Receiver namespace and interface details.1 point ‘f’) on the left-hand side.com | BOC . f.com 6 .Monitoring and Debugging XML Messages in SAP SRM 7. 6.
On double clicking the method name (under ‘Methods’ tab).sdn.Monitoring and Debugging XML Messages in SAP SRM 7. c.com 7 .sap. You can debug the message from SPROXY transaction by clicking on ‘Test (F8)’ button on Application toolbar (first screen).com | BPX .com | BOC .sap. you will get the executing code where you could place a breakpoint.sap.boc. in order to debug the message.bpx.0 system On the right-hand side. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . double click the Provider Class name. It will navigate you to the class interface screen as seen below: b.
sap.boc.0 system d.sdn.sap. SAP COMMUNITY NETWORK © 2009 SAP AG SDN .com | BOC .Monitoring and Debugging XML Messages in SAP SRM 7.sap.com 8 .bpx. Following dialog screen will appear: e.com | BPX . Select the respective inputs and execute. It will navigate you to the XML message screen.
Copy the message from ‘Main Document’ (SXMB_MONI transaction code) and paste it here.com 9 .com | BPX .bpx.sdn. Since you have set a breakpoint in the code (step ‘b’). Accordingly.Monitoring and Debugging XML Messages in SAP SRM 7. following debugging screen will appear.boc.sap. you are ready to debug that particular record.0 system f. This will save your time and efforts.) th g.sap. you can take necessary actions for its resolution. Click on ‘XML Editor’ from application toolbar (4 button from left). Save the data and then execute the record.sap. SAP COMMUNITY NETWORK © 2009 SAP AG SDN . (By copying the failed message directly in your editor. Now you can debug the code and analyze the error and its cause.com | BOC .
sap.Monitoring and Debugging XML Messages in SAP SRM 7.com | BOC .boc.bpx.com | BPX .sap.com 10 .sap.sdn.0 system SAP COMMUNITY NETWORK © 2009 SAP AG SDN .
sap.com | BPX .sdn.com | BOC .boc.sap.bpx.com 11 .Monitoring and Debugging XML Messages in SAP SRM 7.0 system Related Content SAP Exchange Infrastructure Sending an IDoc through XI Failed Problem Description SAP Exchange Infrastructure SAP COMMUNITY NETWORK © 2009 SAP AG SDN .sap.
Changes made based on this information are not supported and can be overwritten during an upgrade.com | BPX . code or methods suggested in this document. including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP.0 system Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP.sap.bpx. You agree that you will not hold.Monitoring and Debugging XML Messages in SAP SRM 7.com 12 . and anyone using these methods does so at his/her own risk.sdn. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample.boc. SAP responsible or liable with respect to the content of this document. or seek to hold.com | BOC . SAP COMMUNITY NETWORK © 2009 SAP AG SDN .sap. SAP will not be held liable for any damages caused by using or misusing the information.sap.