AN EDIFACT/X12 file viewer, formatter, converter.
It's a VSCode Extension, search this extension and install it.
- Open a cXML (OrderConfirmation, ASN, Invoice)
- Make sure there is no xml syntax and DTD validation error. (Recommend you to install other extension to check XML)
- Use menu "View->Command Palette", then find command "EDI Cat: Convert to ..."
- Then use menu cXML_to_X12 or cXML_to_EDIFACT_D96A
Make sure document version correctly recognized and there is no validation error. Use menu "view->Command Palette..." and search for "Parse Document".
after executing this command, the structure of the file displays. You still can hover to key element to see details.
Extention can detect file version automatically and display it on right-bottom of window. Usually the color is normal white, but if it's yellow, it means user need to click there to help it decide the version.
It can do Control Number check
Or Syntax Check, below is example when NTE segment is deliberately put before BIG segment, which caused an error.
For .xml or .x12 .edi .edifact File, right click on the content, There is a context menu "Format Document" to help you format this document.
Mouse hover to some fields like Currency, Country, UoM, Timezone, it will show you the detail meaning of the value.
Some fields need a list to explore, you can click the the link for details
Use menu "view->Command Palette..." and search for "Open Code List",
after executing this command, you have option to select the code list you want to view
Code List display:
Make sure document version correctly selected and there is no syntax error. Use menu "view->Command Palette..." and search for "Toggle Codelens".
after executing this command, the group of every segment is shown in Codelens. No group means it's under ROOT group.
If you feel it's disturbing, re-run this command to disable Codelens.
Make sure the file extension is .x12, .edi or .edifact. For .txt, it will detect the file type and apply syntax color.
-
Delimiter like '~', '*', '+', '>' is hard-coded to recognize x12 and EDIFACT structure. Please make sure you are using delimiters shown in screenshots of this README.
-
The purpose of this product is to reduce workload on creating Supplier side EDI documents. So it may lack of functions for Buyer to use.
Add more formats and more conversion functions
Enjoy!