Skip to Content

I am Receiving Whole XML In Single Field

Hi All,

I hve a scenario like this WMS->PI->SAP.

I am receiving the whole xml in single field from sender side ,so i need to map target structure(IDOC).

How can i achieve this scenario?

Thanks in advance.

Sandeep

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 05, 2017 at 03:32 PM

    Hi Sandeep,

    Use an XSLT transformation that takes the content from the XML field and place it unescaped as a target message.

    Example:

    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:stylesheet version="1.0" xmlns:ns0="http://www.w3.org/1999/XSL/Transform">
       <ns0:output method="xml" indent="yes"/>
       <ns0:template match="node() | @*">
          <ns0:copy>
             <ns0:value-of select="XXXXXXXXXXXXXXX" disable-output-escaping="yes"/>
          </ns0:copy>
       </ns0:template>
    </ns0:stylesheet>

    Replace the "XXXXXXXXXXX" with the Xpath route to your field.

    Best,

    Ariel Bravo Ayala

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 08, 2017 at 01:41 PM

    Thank you for replay Ariel Bravo Ayala

    Add comment
    10|10000 characters needed characters exceeded