Skip to main content

Control Number Generation and Mapping

For X12 EDI, the control numbers (ISA13/IEA02, GS06/GE02, ST02/SE02) are automatically generated if they are not otherwise mapped. The automatic generation is handled for each element separately. So, for example, you can map the interchange control numbers (ISA/IEA) and use the automatic generation for the functional group (GS/GE) and transaction set (ST/SE) control numbers.

The interchange control number (ISA13/IEA02) is generated using the same logic as the GetSequenceFromLocalFile function and using the path ${user.home}/odtEdiControl.txt which is used to store the next sequence number in the local file system. If you wish, you can map the control number to another function, like DatabaseLookupAndUpdate to have more control over its generation.

The functional group control number (GS06/GE02) is generated by prepending the interchange control number multiplied by 100 and adding the sequence number of the group, starting with zero. So if the interchange control number is 17, the first group would have a control number of 1700. This is done because the X12 functional acknowledgment transaction (997) requires acknowledgment by uniquely identifying the functional group.

The transaction set control number is generated starting with one for the first set and increasing by one for each set in the group.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!