# EDI Flat File Monitoring

**URL:** <https://techcommunity.softwareag.com/t/edi-flat-file-monitoring/108126>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [March 18, 2004, 11:19am UTC](https://techcommunity.softwareag.com/t/edi-flat-file-monitoring/108126 "2004-03-18T11:19:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![schung888](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@schung888](https://techcommunity.softwareag.com/u/schung888)\
**Post date:** [March 18, 2004, 11:19am UTC](https://techcommunity.softwareag.com/t/edi-flat-file-monitoring/108126/1 "2004-03-18T11:19:49Z")

</div>

Peers

Currently, I am developing a flow services to process inbound EDI files (ftp by trading partner as flat file)

1. Read the flat file content
2. Convert the EDI data into back-end system format (envelope process  
(), convertToValues, etc)
3. generate FA using generateFA flow service and deliver via  
wm.tn.receive
4. Call back-end system APIs to process the transaction
5. In case of error  
5.1 Move the EDI files into an error folder  
5.2 Send an email to EDI Administrator with the file name of  
the EDI file with error

Question

1. Since the FA is routed to TN, while the original EDI files is not,  
Is there any way I can presist the original EDI documents into  
TN, so that I can have a proper trail showing the Inbound EDI  
Transaction, with their outbound FA Status.

2. Due to the requirement for me to send an email to EDI Adminsitrator on the name of the files in error (due to back end system APIs), is there anyway if I route the EDI file to TN first, then get TN to call my service using processing rules, and have the name of the file (like using / creating an additional attributes

Thanks for any idea in advance

---

<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:** [March 19, 2004, 8:03am UTC](https://techcommunity.softwareag.com/t/edi-flat-file-monitoring/108126/2 "2004-03-19T08:03:33Z")

</div>

You should be sending you EDI documents into TN and let TN persist them for you. You can set rules on either the the Envelope, Group or Transaction Set to invoke you custom service on how to process the data.

As for question 2 you may be able to use the file name as the document ID and send that in you email.

---

<div class="post-metadata">

**Author:** ![schung888](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@schung888](https://techcommunity.softwareag.com/u/schung888)\
**Post date:** [March 19, 2004, 9:23am UTC](https://techcommunity.softwareag.com/t/edi-flat-file-monitoring/108126/3 "2004-03-19T09:23:18Z")

</div>

Chris

That is a good idea.

If you don’t mind (1st project in EDI and TN),can you point me to the flow services / direction / or even documentation where I can find out how to supply the document ID on a tranasction set level (using X.12)

I try post EDI to TN, TN seperates the EDI into 3 documents (X.12 Envelope, X.12 Gruop and X.12 4010 990). The X.12 Envelope and X.12 Group document does have document ID (I assume it is updated by the AddGroupEnvelope and AddICEnvelope flow services). But I see no document ID in the X.12 4010 990 (Transaction set level document)

Thanks in advance

---

<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:** [March 19, 2004, 7:16pm UTC](https://techcommunity.softwareag.com/t/edi-flat-file-monitoring/108126/4 "2004-03-19T19:16:20Z")

</div>

The TN documentID of X12 transactionset will be grabbed from ST/ST02 element.

In your mapping logic set this anything unique like filename\_datetimestamp or ordernumber etc…

HTH.

---

<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/edi-flat-file-monitoring/108126/5 "2021-04-02T15:05:04Z")

</div>


