# Batching EDI Documents

**URL:** <https://techcommunity.softwareag.com/t/batching-edi-documents/108051>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [February 26, 2004, 6:05am UTC](https://techcommunity.softwareag.com/t/batching-edi-documents/108051 "2004-02-26T06:05:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [February 26, 2004, 6:05am UTC](https://techcommunity.softwareag.com/t/batching-edi-documents/108051/1 "2004-02-26T06:05:11Z")

</div>

Hi,

Iam working on Batching EDI Documents. I want to write a processing rule in Trading Networks which should be able to identify a document sent to Trading Networks by wm.b2b.editn.batch:batchProcess.The catch here is that the Trading Networks can get that same document type from a Trading Partner but this processing rule shouldn’t fire for such documents sent by partners.

Can anyone throw some light on how to do this.

Thank’s  
Giridhar

---

<div class="post-metadata">

**Author:** ![Chris\_L](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Chris\_L](https://techcommunity.softwareag.com/u/Chris_L)\
**Post date:** [February 26, 2004, 8:26am UTC](https://techcommunity.softwareag.com/t/batching-edi-documents/108051/2 "2004-02-26T08:26:13Z")

</div>

I wrote my own Batch process. Then you have control over what to do with the batch.  
Just a thought.

---

<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:** [February 26, 2004, 8:21pm UTC](https://techcommunity.softwareag.com/t/batching-edi-documents/108051/3 "2004-02-26T20:21:49Z")

</div>

The rule that you currently have for partners should be set up to fire only when certain partners are the senders. So if you send it to TN internal you can use a different user and set up another processing rule to fire for that same doc type but different user. You can set up rules to fire not only on doc type but on sender/receiver or other attributes extracted from the doc.

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [February 27, 2004, 12:19am UTC](https://techcommunity.softwareag.com/t/batching-edi-documents/108051/4 "2004-02-27T00:19:41Z")

</div>

Hi,

I was able to do it by setting the EDI Batch Attribute in the Processing rule. It is available in Extended Criteria. Its working fine now.  
Thanks for your suggestions.

Giridhar.

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [September 21, 2005, 8:15pm UTC](https://techcommunity.softwareag.com/t/batching-edi-documents/108051/5 "2005-09-21T20:15:33Z")

</div>

Hi,

the batchProcess service generates an envelope in Trading networks. When I receive this bizdoc in the developer it is not possible to perform a bizdocToRecord from the wmEDIforTN package. Because I don’t have the version and transaction information in this bizdoc. How could this be solved.

Pieter

---

<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:** [September 21, 2005, 8:53pm UTC](https://techcommunity.softwareag.com/t/batching-edi-documents/108051/6 "2005-09-21T20:53:57Z")

</div>

Pieter,

IF the envelope is routed to the processing service then editn\_env should be in the service pipeline.so that you can use envelopeProcess (EDIValues),convertToValues(passes IDATA Values)for doing further data mapping.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [September 22, 2005, 4:33pm UTC](https://techcommunity.softwareag.com/t/batching-edi-documents/108051/7 "2005-09-22T16:33:18Z")

</div>

Hi RMG,

I don’t have the editn\_env stucture. There is only a bizdoc and sender receiver. This bizdoc is generated by the batchProcess service. In TN this bizdoc has an UNEDIFACT envelope as document type and application/EDIstream as type.

Kind regards  
Pieter

---

<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:** [September 22, 2005, 7:09pm UTC](https://techcommunity.softwareag.com/t/batching-edi-documents/108051/8 "2005-09-22T19:09:43Z")

</div>

Are you seeing edidata in the pipeline?Actually when TN routes to a processing service if envelope then editn\_env,group then editn\_grp,transaction set editn\_txn…

If you use bizdocToRecord the transaction and version information will be in the envelope use envelopeProcess service to extract the information.

HTH,  
RMG

---

<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:05pm UTC](https://techcommunity.softwareag.com/t/batching-edi-documents/108051/9 "2021-04-02T15:05:03Z")

</div>


