value mapping
Author : Himesh Rashi
This tutorial shows a very simple path on how to test them with two scenarios:
a) if you're not using BPM
b) if you're using BPM
When you send the data to XI you might see that your mapping program doesn't always work the way
you'd like it to work. Very often it's because either your Data Type or your inbound message
does not have a correct format. Your mapping program works when you test it from the Test Tab
(inside Integration Repository) but you wonder why is shows mapping errors when you send a real message.
The best (and only?) way to resolve such errors is to use the REAL inbound message.
Testing mapping programs without BPM.
Step 1
- go to TCODE - SXMB_MONI
- choose you message
- choose the payload of the inbound message
image
Step 2
- copy the source XML of your message
image
Step 3
- paste the source of your message into your mapping program
image
Now you can be sure that you test a correct message.
Testing mapping programs with the use of BPM.
Step 1
- open the Technical workflow log of your BPM
- choose Show container option (from your mapping step)
- choose your inbound message
image
Step 2
- open your message and now follow the same steps as for testing without BPM
image
With these few steps you can be sure that the message you test has a correct format - exactly the one that was sent to your adapter, so you can debug it easily inside your mapping program.
SAP XI tutorials, SAP XI resources and SAP XI certification, TBIT 40,41,42,43,44,51 and other resources for SAP XI/PI certification and self study..