Query on EDI X12 4010

In a EDI X12 file , can ISA13(Interchange Control Number ) and the ST02 (Transaction Set Control Number) have the same value?


yes they can be… ST02 (transaction set control number), it should be unique per transaction set in a single interchange.


Thank u so much !!!

A common convention for ST control numbers is to always start at 1 within a group and increment by 1 for each ST. The enveloping services within IS can do that for you.

Reamon, could you please help with the following…
What enveloping services were you referring to? The services wm.b2b.edi.util:addICEnvelope and wm.b2b.edi.util:addGroupEnvelope only generate ISA and GS control numbers but NOT ST control number.

Is there any service to autogenerate the ST control number starting with 1 for each group? I use the wm.b2b.edi:convertToString service without passing a value for ST02 in input EDI document and it outputs an EDI string with autogenerated number for ST02. Any idea how this autonumber is generated as I want to use the same number for BGN02?


Sorry there is no built-in service for auto generate ST level control number and unless you use the EDI batching feature for the outbound documents and so depends on the GS/ST’s the control numbers starts with 0001 for ST02 and SE02


ok. Thank you, RMG.

Your welcome.:slight_smile: