Skip to main content
Version: v0.0.2

Function: missingSe()

missingSe(position): X12ParseWarning

Build an X12_MISSING_SE warning. Emitted when an ST opened a transaction set but no matching SE appeared before the next ST, GE, or IEA. The parser returns the transaction with se: undefined and the segments it managed to collect.

Parameters

position

X12Position

Returns

X12ParseWarning

Example

import { missingSe } from "@cosyte/x12";
const w = missingSe({
segmentIndex: 2,
interchangeIndex: 0,
groupIndex: 0,
transactionIndex: 0,
});