# using built-in EDI batch: SOLUTION

**URL:** <https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [November 16, 2010, 10:31pm UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218 "2010-11-16T22:31:46Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Will\_Kriski](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@Will\_Kriski](https://techcommunity.softwareag.com/u/Will_Kriski)\
**Post date:** [November 16, 2010, 10:31pm UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/1 "2010-11-16T22:31:46Z")

</div>

Okay I’ve been asking a few times about using the built-in EDI batching services but it seems no one’s really used it, so with a bit of tinkering I believe I have figured it out.

First I added the ISA/GS headers to the individual ST segment (for PO). Then I send the PO to TN with ISA/GS so that it has the sender/receiver. This is split in TN into 3 separate docs, one for X12, Group and 850. I have a rule on the 850 which puts it into a public queue. The queue calls the built-in EDI batch scheduled delivery service.  
For the inputs to this batch service I could only get it to work by providing the sender and receiver ID (duns with qualifier 01). Based on the docs it should get it from the ISA header but it’s not doing that at this point.  
The batch is sent to TN. Then I have a second rule on the batched X12 envelope, but the key is to use Extended criteria field ‘EDI Batch’ so put ‘EDI Batch equals none’. This is how TN differentiates between the individual envelopes for each txn and the actual batch. When the X12 is sent as a batch it will have the attribute EDI Batch set to ‘Interchange’.

Hope that helps someone.

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [November 16, 2010, 11:13pm UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/2 "2010-11-16T23:13:32Z")

</div>

Hello,  
We were trying to say you this thing only…  
but its good that you researched it, and came to know…you will never forget its concept now…🙂

---

<div class="post-metadata">

**Author:** ![Will\_Kriski](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@Will\_Kriski](https://techcommunity.softwareag.com/u/Will_Kriski)\
**Post date:** [November 16, 2010, 11:57pm UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/3 "2010-11-16T23:57:27Z")

</div>

nobody mentioned the edi batch variable, etc

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [November 17, 2010, 12:12am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/4 "2010-11-17T00:12:08Z")

</div>

Hello,

On my personal experience, I have rules, which have none of the Extended criteria for the EDI Batch, then also it is working…  
Thats why, it is not mentioned, otherwise would have done.  
Regards.

---

<div class="post-metadata">

**Author:** ![Will\_Kriski](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@Will\_Kriski](https://techcommunity.softwareag.com/u/Will_Kriski)\
**Post date:** [November 17, 2010, 12:27am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/5 "2010-11-17T00:27:58Z")

</div>

how did you get it to work without the extended criteria? did you use a custom flat file for each individual transaction?

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [November 17, 2010, 12:38am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/6 "2010-11-17T00:38:59Z")

</div>

Hello,  
Yes, have used custom logic for that…so that it works same as EDI Batch.

But you are on right track Sir…🙂  
Regards.

---

<div class="post-metadata">

**Author:** ![Will\_Kriski](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@Will\_Kriski](https://techcommunity.softwareag.com/u/Will_Kriski)\
**Post date:** [November 17, 2010, 12:41am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/7 "2010-11-17T00:41:38Z")

</div>

Yes my post was for people wanting to use BUILT IN services not custom. If you send the txn with an ISA/GS then you have to differentiate between the individual txn envelope and the batch envelope using the extended criteria I mentioned.

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [November 17, 2010, 12:44am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/8 "2010-11-17T00:44:04Z")

</div>

Yes…could you help in one thing,  
[url][wmusers.com](http://www.wmusers.com/forum/showthread.php?p=76304#post76304%5B/url%5D)  
In this, buddy said to delete or archive the data…  
What should be done…??

---

<div class="post-metadata">

**Author:** ![Will\_Kriski](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@Will\_Kriski](https://techcommunity.softwareag.com/u/Will_Kriski)\
**Post date:** [November 17, 2010, 12:51am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/9 "2010-11-17T00:51:23Z")

</div>

please don’t hijack this thread but maybe this will help [url][wmusers.com](http://www.wmusers.com/forum/showthread.php?p=72557%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![Suvigya](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Suvigya](https://techcommunity.softwareag.com/u/Suvigya)\
**Post date:** [November 17, 2010, 12:57am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/10 "2010-11-17T00:57:44Z")

</div>

Sure sir…dont worry…will read it take idea…  
Thanks for helping…  
🙂

---

<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:** [November 17, 2010, 1:10am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/11 "2010-11-17T01:10:06Z")

</div>

> [@wkriski;76305](#):
>
> nobody mentioned the edi batch variable, etc

For those coming upon the thread in the future, the wm EDI for TN docs mention this variable in describing how to do batching. :happy:

I have used the built-in batch service successfully on multiple projects. It’s really the only option for batching.

---

<div class="post-metadata">

**Author:** ![Will\_Kriski](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@Will\_Kriski](https://techcommunity.softwareag.com/u/Will_Kriski)\
**Post date:** [November 18, 2010, 1:08am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/12 "2010-11-18T01:08:04Z")

</div>

yes i meant on this site 🙂 I had asked how to differentiate between X12 batch and X12 transaction since they would look basically the same. Sorry I’m under extreme time pressures on this project and I feel the docs aren’t the greatest as I like to see a step by step process versus scattered explanations.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [November 18, 2010, 3:53am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/13 "2010-11-18T03:53:15Z")

</div>

What all steps you did so far Batching setup (handler/registering services,TN rules,Pub Queues) and where you are stuck at?

So that forum users can assist your accordingly.

HTH,  
RMG

---

<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:** [November 18, 2010, 4:07am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/14 "2010-11-18T04:07:48Z")

</div>

I did mention it in my first post to your original message:

“4. The batch process adds an attribute to the batch document that can be used to identify the batch X12. Keep in mind, the rules will be looking at X12 envelope, not 850s.”

Sorry I didn’t have the exact name listed nor did I describe how to use it in the rule. Next time I’ll try to provide a bit more guidance on how to gather the needed info. In any case, I’m glad you were able to work it out.

---

<div class="post-metadata">

**Author:** ![Will\_Kriski](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@Will\_Kriski](https://techcommunity.softwareag.com/u/Will_Kriski)\
**Post date:** [November 18, 2010, 4:19am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/15 "2010-11-18T04:19:38Z")

</div>

I have it working. Thanks for everyone’s help.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [November 18, 2010, 7:24am UTC](https://techcommunity.softwareag.com/t/using-built-in-edi-batch-solution/110218/16 "2010-11-18T07:24:48Z")

</div>

Glad to hear you got it working…

---

<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/using-built-in-edi-batch-solution/110218/17 "2021-04-02T15:06:04Z")

</div>


