EDI X12 and EDIFACT Viewer and Editor
Make raw purchase orders, invoices and ship notices readable, find the segment that breaks a trading partner's import, correct it and save a clean EDI file.
Εκτελείται στο πρόγραμμα περιήγησής σας. Τα αρχεία σας δεν φεύγουν ποτέ από τη συσκευή. Δείτε πώς να το ελέγξετε
…
Πώς γίνεται
- 1Load the file
Paste the interchange, open an .edi, .x12 or .txt file, or load a sample.
- 2Read the structure
Check the detected standard and separators, and the list of messages.
- 3Find segments
Use the filter to show segments by id or text and tap one to open it.
- 4Edit
Change element values, duplicate, delete or extend segments; undo is available.
- 5Run the checks
Read failed checks, tap Fix for one or Fix all counts and references.
- 6Export
Download JSON, a CSV of segments, or the EDI file with one segment per line or on one line.
Σχετικά με αυτό το εργαλείο
Electronic data interchange still carries a large share of business documents between retailers, suppliers, carriers, banks and health insurers. In North America the format is ASC X12, with transaction sets such as 850 purchase orders, 810 invoices, 856 ship notices and 997 acknowledgements. Elsewhere UN/EDIFACT messages such as ORDERS, INVOIC and DESADV are common. Both are dense: one long line of segments separated by a tilde or an apostrophe, elements separated by asterisks or plus signs, and no labels. When a partner rejects a file, the message is often only a segment count error or a control number mismatch, and finding the cause by eye is slow. This viewer splits the interchange into segments, one per row, labels each one with its name, such as BEG Beginning Segment for Purchase Order or NAD Name and Address, and lets you open any segment to see and edit its elements and components. Separators are detected from the file itself, so files with unusual delimiters work too.
How separators are found
In X12 the ISA segment has a fixed length of 106 characters: the fourth character is the element separator, ISA16 holds the component separator, the character after ISA16 ends the segment, and ISA11 holds the repetition separator in version 00402 and later. In EDIFACT an optional UNA service string advice defines the component, element, decimal, release, repetition and segment characters; without it the defaults colon, plus, full stop, question mark and apostrophe apply. The release character is honoured, so PO?+1 is read as the text PO+1 and not as two elements.
Envelope checks
For X12 the tool checks that SE01 equals the number of segments from ST to SE, that SE02 matches ST02, that GE01 counts the transaction sets in the group and GE02 matches GS06, and that IEA01 counts the groups and IEA02 matches ISA13. For EDIFACT it checks UNT against the segments from UNH, the UNT reference against UNH, UNE against the messages in a group, and UNZ against the messages or groups and the interchange reference in UNB. Unclosed envelopes are reported too. Every failed check has a Fix button, and Fix all counts and references corrects them in one step, which is exactly what is needed after you add or delete a line item.
Editing and export
Segments can be edited element by element, duplicated, deleted or given an extra element, with undo and redo. The messages list shows each transaction set or message with its type name and control number. Exports include a JSON file with element positions as keys such as BEG03 or NAD02.1, a CSV with one row per segment, and the EDI file written either with one segment per line or as a single line.
Limits
This tool checks syntax and envelopes, not the business rules of an implementation guide: it does not know which segments a partner requires, code lists, or element lengths of a specific version. Segment names cover the common segments of retail, logistics and health care sets. It does not send, receive or acknowledge files, and it does not create a 997 for you.
Λυμένο παράδειγμα
A supplier's 850 purchase order PO-88213 has 17 segments: ISA, GS, ST, BEG, REF, DTM, N1, N3, N4, two PO1 lines with their PID descriptions, CTT, SE, GE and IEA. All checks pass, with SE01 = 13. A buyer then asks to drop the mug line, so the second PO1 and its PID are deleted. The checks now show SE01 says 13 segments but ST to SE has 11, and CTT still says 2 lines. Pressing Fix all counts and references sets SE01 to 11; CTT01 is a business total, so it is edited to 1 by hand. The saved file passes every check.
Με μια ματιά
- Κατηγορία: Προγραμματισμός & δεδομένα
- Εκτελείται στο πρόγραμμα περιήγησης, χωρίς εγγραφή, χωρίς μεταφόρτωση.
- Τα στοιχεία που εισάγετε μένουν στη συσκευή σας.
- Διαθέσιμο στα αγγλικά.
- Τελευταία αναθεώρηση περιεχομένου:
- Επίσημη πηγή: ASC X12 interchange envelope (ISA, GS, ST) and UN/EDIFACT syntax rules ISO 9735
Συχνές ερωτήσεις
Which EDI standards does it read?
ASC X12, starting with an ISA segment, and UN/EDIFACT, starting with UNA or UNB. Versions such as 004010, 005010 or D96A all use the same syntax and open fine.
Why can't I edit the ISA elements in the form?
ISA has fixed-width elements and defines the separators, so changing its length breaks the file. Edit it carefully in the text box, keeping the padding.
Does Fix all also correct totals like CTT or CNT?
No. It fixes envelope counts and control references only. Business totals such as line counts or amounts belong to the message content and should be checked by you.
Can it validate against my partner's implementation guide?
No. It checks structure, separators and envelopes. Mandatory segments, code values and element lengths depend on the guide and are not tested.
What does the JSON export look like?
One object per segment with the segment id and keys such as PO102 for the second element or NAD02.1 for the first component of the second element.
Are my EDI files uploaded?
No. They are parsed in your browser and the current text is kept in local storage on this device only.
