# Query on EDI X12 4010

**URL:** <https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [June 9, 2010, 9:40am UTC](https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138 "2010-06-09T09:40:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MariPrabha\_C](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@MariPrabha\_C](https://techcommunity.softwareag.com/u/MariPrabha_C)\
**Post date:** [June 9, 2010, 9:40am UTC](https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138/1 "2010-06-09T09:40:17Z")

</div>

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

Thanks,  
Prabha

---

<div class="post-metadata">

**Author:** ![devexpert](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@devexpert](https://techcommunity.softwareag.com/u/devexpert)\
**Post date:** [June 9, 2010, 11:23am UTC](https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138/2 "2010-06-09T11:23:34Z")

</div>

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

-nD

---

<div class="post-metadata">

**Author:** ![MariPrabha\_C](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@MariPrabha\_C](https://techcommunity.softwareag.com/u/MariPrabha_C)\
**Post date:** [June 9, 2010, 12:47pm UTC](https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138/3 "2010-06-09T12:47:18Z")

</div>

Thank u so much !!!

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [June 10, 2010, 12:01am UTC](https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138/4 "2010-06-10T00:01:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Suresh\_V](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Suresh\_V](https://techcommunity.softwareag.com/u/Suresh_V)\
**Post date:** [June 24, 2014, 1:12am UTC](https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138/5 "2014-06-24T01:12:54Z")

</div>

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?

Thanks,  
Suresh

---

<div class="post-metadata">

**Author:** ![rmg](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@rmg](https://techcommunity.softwareag.com/u/rmg)\
**Post date:** [June 24, 2014, 4:13pm UTC](https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138/6 "2014-06-24T16:13:13Z")

</div>

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

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Suresh\_V](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Suresh\_V](https://techcommunity.softwareag.com/u/Suresh_V)\
**Post date:** [June 24, 2014, 7:43pm UTC](https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138/7 "2014-06-24T19:43:12Z")

</div>

ok. Thank you, RMG.

---

<div class="post-metadata">

**Author:** ![rmg](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@rmg](https://techcommunity.softwareag.com/u/rmg)\
**Post date:** [June 24, 2014, 8:57pm UTC](https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138/8 "2014-06-24T20:57:36Z")

</div>

Your welcome.🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:06pm UTC](https://techcommunity.softwareag.com/t/query-on-edi-x12-4010/110138/9 "2021-04-02T15:06:02Z")

</div>


