EDIFACT (rule)

Settings

(1) Test setting: See section Testing a file (rule).

(2) Data type: Example: "EDIfact".

(3) Message type: Example: "INVOIC".

(4) Version: Example: "D".

(5) Release: Example: ""07A.

(6) F0057: Value of field "F0057" in the "UNH" segment (Association assigned code. Code, assigned by the association responsible for the design and maintenance of the message type concerned, which further identifies the message). Example: "GAVA10".

Example file


UNA:+.? '
UNB+UNOC:3+CHANNEL001+CHANNEL003+140128:0100+44++++++1'
UNH+1+INVOIC:D:07A:UN:GAVA10'
BGM+380+14603435+9'
DTM+137:20140127:102'
DTM+1:20140127:102'
GEI+PM+::272'
RFF+IV:14603435'
NAD+BY+14850::91++Mustermann GmbH+HPC R520:Postfach 1111+Ort++89087+DE'
RFF+VA:DE147032272'
NAD+IV+14850::91++Mustermann GmbH+HPC R520:Postfach 1111+Ort++89087+DE'
NAD+ST+14850::91++Mustermann GmbH+Werk 1 / Lager 11:Ortsstrasse+Ort++89231+DE'
NAD+SE+11735230::92++Example Limited+5th evenue+NY++54321+US'
RFF+VA:DE811254447'
CUX+2:EUR:4'
LIN+1++EAN_QUALIF0002:IN'
PIA+1+180000B:SA'
IMD+++:::Werkzeugkosten für CNC-Programme::DE'
QTY+47:1.0000:C62'
DTM+1:20140127:102'
MOA+203:1140.00:EUR'
PRI+AAA:1140.00:::1:C62'
RFF+ON:4501359804'
RFF+AAU'
TAX+7+VAT+++:::19.00+S'
UNS+S'
MOA+77:1356.60:EUR'
MOA+125:1140.00:EUR'
MOA+176:216.60:EUR'
TAX+7+VAT+++:::19.00+S'
MOA+124:216.60:EUR'
MOA+125:1140.00:EUR'
UNT+31+1'
UNZ+1+44'

Split


The file is split after each further occurrence of the "UNA" and "UNB" segments. The "UNA" segment must exist for this.

Important note: Please note that the recipient is read from the file only once (i.e. the first value that is found). Both splits are then sent to this one recipient!