In my previous blog Transforming message 1..N using ABAP class I had explained how to do message transformation 1..N using ABAP mapping. Here I will explain how to test ABAP mapping when you are transforming one message to multiple messages.
We use transaction SXI_MAPPING_TEST to test or debug ABAP mapping. I will reuse the example in the previous blog to illustrate this.
Run the transaction SXI_MAPPING_TEST and give the parameters. Here please note that the Receiver Interface namespace is given as http://sap.com/xi/XI/System and the Receiver Interface Name is given as InterfaceCollection. Press the execute button.
Give the input payload in the editor and press execute (Find the screenshot below). You can find the editor going to the screen where the debug point (debug point set in the code you have written in SE24) is set. There you can check for all values and make corrections in the ABAP code if needed.
You will get a Success message if the ABAP mapping was processed without any errors.
You can find the given input XML payload in Payload Before Service:
You can find the trace results:
Hope you will find this helpful when using ABAP mapping to perform 1..N transformation