IDOC to XML
I am trying to do the mapping of DEBMAS to JDBC XML. Mapping works fine in Test in IR but I get run time exception. I copied XML payload from SXMB_MONI and tried to test with it after taking out dashes I get an error saying XML not well formed.
The problem is because of the tags that have zero occurrences and the pay load does not have empty tags for IDOC nodes that can occur zero times as there is no data.
Any body has similar problem let me know.
Udo Martens replied
i suppose you r using a message mapping?
And u have a problem if the source field is empty?
Use function "exist" to ask if field exist and may be ask for the string lenght > 0. Only in that case (function if) map the field. Or use a XSLT mapping.