Article: Creating Segments – JS

Index

Creating Segments

Segments contains data elements. Once loops are created segments can be added.

Example

const edi = require(‘rdpcrystal-edi-library’);
 
let doc = new edi.EDILightWeightDocument();
 
let interchangeLoop = doc.createLoop(“Interchange header”);
let isa = interchangeLoop.createSegment(“ISA”);

Now elements can be added to the isa segment

Related Articles

Main Categories