Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Former Member
Former Member replied

Hi Michael,

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.

Regards,

Udo

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question