Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 05, 2006 at 01:01 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Michael,

      if ur IDoc doesn't come in the right way (cant be validated against loaded schema), then you have to reload the right version from R/3 system.

      What is about ur english? If i look 2 ur name, i guess u should have learned it as mother language. But it is really hard 2 understand...

      Regards,

      Udo