2

One of our trading partners requires an IMD+F segment per item in their EDI invoice, even if it's empty. They want it to look like this:

IMD+F++:::'

In the XSLT that maps to the EDIFACT (D96A) Invoice, I have the following:

<ns0:IMD_2>
  <IMD01>F</IMD01>
  <IMD02></IMD02>
  <ns0:C273_2>
    <C27301></C27301>
    <C27302></C27302>
    <C27303></C27303>
    <C27304> </C27304>
  </ns0:C273_2>
</ns0:IMD_2>

Notice the space in the C27304 segment. BizTalk assembles this into the following EDI:

IMD+F'

How can I get the full segment with separators?

MarioDS
  • 12,895
  • 15
  • 65
  • 121
  • well, maybe the easiest way out is to provide a description? Most cases there is a description... – eppye Sep 18 '14 at 15:57

2 Answers2

0

On the Validation section of the YOU->THEM tab of the Agreement, you can adjust the Leading & Trailing Spaces and Trailing Separator values.

Johns-305
  • 10,908
  • 12
  • 21
  • That didn't help, unfortunately. I tried setting it both to optional and mandatory and restarted the host instance. – MarioDS Sep 16 '14 at 11:14
0

Space is considered a character, thus you should able to get this

'IMD+F++::: ' segment based on

    <ns0:IMD_2>
  <IMD01>F</IMD01>
  <IMD02></IMD02>
  <ns0:C273_2>
    <C27301></C27301>
    <C27302></C27302>
    <C27303></C27303>
    <C27304> </C27304>
  </ns0:C273_2>
</ns0:IMD_2>

If you are using any maps, make sure to remove these empty spaces.

Ed Bangga
  • 12,879
  • 4
  • 16
  • 30