[EDI-L Mailing List Archive Home] [Message List] [Reply To This Message]

RE: Amount fields to be empty if they are zero?

From: Bill Chessman <bill.chessman@...>
Date: Thu May 8, 2003  11:46 pm
Subject: RE: [EDI-L] 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/




 
EDI to XML Mapping for EDIFACT/X12 Convert EDIFACT/X12 Schemas to XML Schema Legacy Data Conversion Tools Access Relational Data as XML Visual XSLT and XQuery Mapping Tools Simplify EDI Data Integration with Stylus Studio XML Enterprise Suite - Free Download!
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.