SeanHoppe.com > CLEO Tips > Cleo EDI Integrator EDI 846 - Mapping Zero to QTY02 Element
EDI 846 - Mapping Zero to QTY02 Element
3rd July 2019
in Cleo EDI Integrator, it is almost IMPOSSIBLE to map a 0 (zero) to a numeric element, in an outbound EDI (x12 / EDIFACT) document
The outbound EDI 846 is a great example of where we need to map Zero (’0′) to QTY02 element. In the example below, we will show how
- send a positive quantity on hand
- a zero quantity on hand
1. QTY segment
We create duplicate QTY segments for each of the qualifiers – 29 and 33
Note: Although this is an outbound document, we still qualify the segments, to help us identify each QTY segment2. QTY*33 Segment 1
To determine if we send the 1st QTY*33 segment is by making QTY02 element Mandatory
3. QTY*33 Segment 2
If we need to send the 2nd QTY*33 segment where the quantity is Zero, we will make QTY02 element Mandatory and apply a formula
The BIG difference here is the quantity element; it is alphanumic
4. Create Formula
The formula (below) will be applied to the 2nd QTY*33 to test against the Current Qty Available field. If the field is 0, then an alphanumeric ZERO (’0′) is passed back to the QTY02 element.
By: Sean Hoppe on