You are on page 1of 6

6/18/2020 Debugging XML from ECC to SRM | SAP Blogs

Follow RSS feed Like


Community

Ask a Question Write a Blog Post

Mateus Moura
November 24, 2016 2 minute read

Debugging XML from ECC to SRM


0 Likes 867 Views 0 Comments

This blog will show how to debug XML that are transferred from ECC to SRM in the below scenarios:

XML is successfully transferred to SRM but some data information is not correctly mapped
XML is in error and you need to know what is the error/cause/solution

Scenario 1:

To start here, let’s imagine the rst scenario where a Purchase Requisition is transferred to SRM and the XML is
successfully transmitted. Then, you want to check what is being created and mapped from the XML to the cart.

1- Go to tx SXMB_MONI in SRM system


2- Go to Monitor for Processed XML Messages
3- Look for the time frame and open the XML correspondent (Take note of the sender interface and sender
namespace which should be http://sap.com/xi/SRM/SE/Global – PurchaseRequestERPSourcingRequest_In)
4- Go to the main document (under Inbound -> Payload) and right click in the XML (lower right window) ->

https://blogs.sap.com/2016/11/24/xml-debugging-from-ecc-to-srm/ 1/6
6/18/2020 Debugging XML from ECC to SRM | SAP Blogs

select view source


Follow RSS feed Like

5- Copy the XML that will open in notepad


6- Go to tx SPROXY
7- Look for the interface you want to debug (In this example: PurchaseRequestERPSourcingRequest_In) and run
it

https://blogs.sap.com/2016/11/24/xml-debugging-from-ecc-to-srm/ 2/6
6/18/2020 Debugging XML from ECC to SRM | SAP Blogs

8- Run again
Follow RSS feed Like

9- Click on XML editor and paste the XML captured in SXMB_MONI (view source)
10- Click on pretty printer and check the form (F9) – It shall give you a positive message saying that XML is well-
formed

11- Change the XML content that you pasted in the XML editor in this eld: <ID> PR NUMBER </ID> to another
PR number (E.g. <ID>11656092 </ID>)

https://blogs.sap.com/2016/11/24/xml-debugging-from-ecc-to-srm/ 3/6
6/18/2020 Debugging XML from ECC to SRM | SAP Blogs

IMPORTANT: make sure this PR does not exist in SRM yet. You can look on BBP_PD to ensure that
Follow RSS feed Like

12- Put a BP in methods from class /SAPSRM/CL_SOA_PUR_REQ (Suggestion:


/SAPSRM/IF_SOA_PUR_REQ~PROCESS and /SAPSRM/IF_SOA_PUR_REQ~CREATE)
13- Execute the XML (F8) and start debugging it.

Scenario 2:

Now, let’s imagine the second scenario where a Purchase Requisition is transferred to SRM and the XML is in
error at SRM side. Then, you want to check which/why error is happening in SRM side.

Follow all the steps above, except step 11. There is no need to change the PR number since the original
document has not been created in SRM.

Some relevant class/methods that you can put a BP to debug are listed below:

XML not updating the Shopping Cart Status:


Class: /SAPSRM/CL_CH_SOA_BO_MAPPER_PO
Method: UPDATE_STATUS_FROM_TRANSFER
Updating Shopping Cart from Purchase Requisition:
Class: /SAPSRM/CL_CH_SOA_BO_MAPPER_PO
Method: UPDATE_STATUS_FROM_TRANSFER
Purchase Requisition Mapping:
Class: /SAPSRM/CL_CH_SOA_DO_PR_ITM~MAP_TO_PDO
Method: /SAPSRM/IF_CH_SOA_DO_PR_ITM~CHANGE

Additional debugging hints are also found in this KBA here.

https://blogs.sap.com/2016/11/24/xml-debugging-from-ecc-to-srm/ 4/6
6/18/2020 Debugging XML from ECC to SRM | SAP Blogs

Follow RSS feed Like

Alert Moderator

Assigned tags

SAP Supplier Relationship Management | SAP enhancement package for SAP Supplier Relationship Management | abap

debugging | abap troubleshooting | debug |

View more...

Related Blog Posts

PDP Issue – PR is not getting Transfer from ECC to SRM


By Former Member , Feb 23, 2013

Commonly used ESOA Services related to Central contracts in SRM


By Former Member , Nov 13, 2015

Postprocessing Desktop – Edit Order


By Former Member , Jan 28, 2014

Related Questions

Distribution of Contract from SRM to ERP - Screen output without connection to user.
By Former Member , Dec 24, 2012
SRM PO IDOC Creation
By M M , Oct 07, 2015
Plant name missing in PO line item details (Delivery address tab)
By Former Member , Nov 15, 2010

Be the rst to leave a comment

Add Comment

https://blogs.sap.com/2016/11/24/xml-debugging-from-ecc-to-srm/ 5/6
6/18/2020 Debugging XML from ECC to SRM | SAP Blogs

Follow RSS feedus


Find on Like

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

https://blogs.sap.com/2016/11/24/xml-debugging-from-ecc-to-srm/ 6/6

You might also like