|
[EDI-L Mailing List Archive Home]
[Message List]
[Reply To This Message]
RE: Amount fields to be empty if they are zero?

*sigh* We've run into this. I think the point here is the distinction
between value=0 and value is not used. If the sender is trying to indicate
that the value is zero then "0" would be appropriate. According to X12.6
section 3.5.1.1 which describes the numeric data type, "Leading Zeros should
be suppressed unless necessary to satisfy a minimum length requirement."
Therefore, an entry of "0" says, "the amount is zero". If the entire
element is suppressed, the sender is effectively saying "we're not sending
an amount." Also, "0" is appropriate as opposed to "000" since the element
in question is min 1, max 15. "000" does not suppress all the leading
zeros. "0" suppresses all the leading zeros except those necessary to
satistfy that minimum length requirement.
Does that help?
Best regards,
Bill Chessman
Inovis(tm), Inc.
-----Original Message-----
From: Andrew BK [mailto:
Sent: Thursday, May 08, 2003 4:19 PM
To:
Subject: [EDI-L] Amount fields to be empty if they are zero?
I have a supplier who thinks an amount field, such as SAC05, must be
null if its value is zero.
For example, if you're using SAC to represent a shipping charge, and
the line item had free shipping, and you still needed to state that
charge of zero, I would expect to see:
SAC*C*G830***0**********Free shipping*EN~
or possibly
SAC*C*G830***000**********Free shipping*EN~
(SAC05 is N2)
But this supplier thinks that putting a value of 0 in the numeric
element is against the X12 004010 standard.
A value specified to be zero is not unknown.
Am I missing something here?
Thanks,
Andrew
To unsubscribe from this group, send an email to:
Message Identifiers: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>,
<OFF-TOPIC>
Access the list online at: http://groups.yahoo.com/group/EDI-L
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|
|
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|