Menu

#5 UNB/recipient reference parsed incorrectly

open
nobody
None
5
2007-09-21
2007-09-21
Anonymous
No

When parsing an EDIFACT interchange, in the UNB segment all data elements after 0020 (interchange control reference)are handled as simple.
However, S005 (recipient reference, password) is defined by the standard as a composite one, having an optional qualifyer.
So if I have the following input:

UNB+UNOD:3+TANF2+TANF1+070920:0941+17+RECREF:122+INVOIC'

the following XML is generated:

<interchange Standard="EDIFACT" SyntaxId="UNOD" SyntaxVersion="3" Date="070920" Time="0941" Control="17" Priority="INVOIC" Decimal=".">
<sender><address Id="TANF2" Qual=""/></sender>
<receiver><address Id="TANF1" Qual=""/></receiver>

Whereas INVOIC should go into the ApplRef attribute, and "RECREF:122" should appear somewhere.
Probably there should be a "ReceiverRef" and a "ReceiverRefQual" attribute in the interchange element.

regards
Simon Laszlo
simi6934@t-online.hu

Discussion


Log in to post a comment.

MongoDB Logo MongoDB