AnsweredAssumed Answered

XML field outputs are repeating and breaking into segments

Question asked by urvashi.patel0525 on Jun 4, 2018
Latest reply on Jun 5, 2018 by urvashi.patel0525

Hi,

 

I am trying to map D96 DESADV to XML but the output is repeating and breaking into two segments. Can someone please advise on this? I tried to work with Max Occurrence and Looping options but nothing seems to be working. Below is the example

 

<Document>
    <Receipt>
      <RctNum>123456</RctNum>
      <LocCode>TEST</LocCode>
      <RcvCode>7689</RcvCode>
      <DeliveryDate>20180525</DeliveryDate>
      <HPORef>789012345</HPORef>
      <RctComment>0071234567</RctComment>
      <Rctlin>
        <Line>900001</Line>
        <ItemCode>413273</ItemCode>
        <ItemEAN>5012345678912</ItemEAN>
        <PallEAN>0662000000000</PallEAN>
        <StatusCode>U</StatusCode>
      </Rctlin>
      <Rctlin>
        <PallEAN>0662000000000</PallEAN>
        <StatusCode>U</StatusCode>
      </Rctlin>
    </Receipt>
  </Document>

 

Expected Output

 

<Document>
    <Receipt>
      <RctNum>123456</RctNum>
      <LocCode>TEST</LocCode>
      <RcvCode>7689</RcvCode>
      <DeliveryDate>20180525</DeliveryDate>
      <HPORef>789012345</HPORef>
      <RctComment>0071234567</RctComment>
      <Rctlin>
        <Line>900001</Line>
        <ItemCode>413273</ItemCode>
        <ItemEAN>5012345678912</ItemEAN>
        <PallEAN>0662000000000</PallEAN>
        <StatusCode>U</StatusCode>
      </Rctlin>
    </Receipt>
  </Document>

 

I would appreciate any help on this.

 

Thanks

Urvashi

Outcomes