# Creating flatfile from edi 856 x12

**URL:** <https://techcommunity.softwareag.com/t/creating-flatfile-from-edi-856-x12/107928>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [February 11, 2003, 1:22am UTC](https://techcommunity.softwareag.com/t/creating-flatfile-from-edi-856-x12/107928 "2003-02-11T01:22:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ab\_sambasivarao](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@ab\_sambasivarao](https://techcommunity.softwareag.com/u/ab_sambasivarao)\
**Post date:** [February 11, 2003, 1:22am UTC](https://techcommunity.softwareag.com/t/creating-flatfile-from-edi-856-x12/107928/1 "2003-02-11T01:22:51Z")

</div>

hello,  
i have input coming as 856 edi (x12) to my IS server.i have to convert it to character delimted falt file.in wm guide mostly it talks about edi conversion.i have 850 edi template installed in my server.i don’t have flatfile structure (template).can you please some body help me on how to create templaes for this output flatfile doc.and tell me what service i have to use for flatfile conversion.  
All your help is appreciated.  
Thanks,  
rao.

---

<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 11, 2003, 1:46am UTC](https://techcommunity.softwareag.com/t/creating-flatfile-from-edi-856-x12/107928/2 "2003-02-11T01:46:10Z")

</div>

the wmEDI user guide explains this in detail.  
If you read this you should have no problems… If you are using webMethods 4.6 and trading networks, you should take advantage of the wmEDIforTN package so you can use trading networks to store the edi records and convert them to the webMethods record strucutre.

---

<div class="post-metadata">

**Author:** ![ab\_sambasivarao](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@ab\_sambasivarao](https://techcommunity.softwareag.com/u/ab_sambasivarao)\
**Post date:** [February 11, 2003, 8:18pm UTC](https://techcommunity.softwareag.com/t/creating-flatfile-from-edi-856-x12/107928/3 "2003-02-11T20:18:54Z")

</div>

Hello ryan,  
Thanks for your quick response.  
i have 856 edi document is coming as input and i have used  
envelope process , and convertTOvalues services to create to idata object.  
then what is the next step i have to use to convert this idata to flatfile.  
i have to create positional flatfile.  
any help is appreicated.  
Thanks in advance,  
rao

---

<div class="post-metadata">

**Author:** ![joliveiraar](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@joliveiraar](https://techcommunity.softwareag.com/u/joliveiraar)\
**Post date:** [February 11, 2003, 8:39pm UTC](https://techcommunity.softwareag.com/t/creating-flatfile-from-edi-856-x12/107928/4 "2003-02-11T20:39:59Z")

</div>

Hi all

I´m new to the group and wm.

I´m working at a big proyect and have to send a Object from wm to a Ariba Marketplace.

The API say that is possible put an Object at IData, but doesn´t work I have :

java.lang.ClassCastException: java.lang.Integer

this are the line of my program…

// ---------------- program ------------------------------

IDataCursor pipelineCursor\_1 = pipeline.getCursor();

IDataUtil.put( pipelineCursor\_1, “custponumber”, “”+reqCreated.getCustponumber());

java.lang.Object objEC2 = (java.lang.Object) reqCreated ;

IDataUtil.put( pipelineCursor3, “createdReq2”, objEC2 ); —\> this is the line that not work

thanks in advanced

Julio Oliveira  
[jOliveiraAr@yahoo.com.ar](mailto:jOliveiraAr@yahoo.com.ar)

---

<div class="post-metadata">

**Author:** ![vinod.ravi.20798](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vinod.ravi.20798](https://techcommunity.softwareag.com/u/vinod.ravi.20798)\
**Post date:** [February 11, 2003, 8:49pm UTC](https://techcommunity.softwareag.com/t/creating-flatfile-from-edi-856-x12/107928/5 "2003-02-11T20:49:58Z")

</div>

Cant you send the customer PO number as a string?  
like  
String objEC2 = String.valueOf(reqCreated);  
This should solve the problem.

And you can be sure to get better solutions from the experts here.  
Best of Luck!

---

<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 19, 2003, 12:22am UTC](https://techcommunity.softwareag.com/t/creating-flatfile-from-edi-856-x12/107928/6 "2003-02-19T00:22:55Z")

</div>

Hi All,

I’m trying to figure out how this webmethod works. I’m trying to open an EDI flat file and convert to string so I can do some mapping. Can somebody give me some basic guidelines how this is done?

---

<div class="post-metadata">

**Author:** ![chris18](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@chris18](https://techcommunity.softwareag.com/u/chris18)\
**Post date:** [February 19, 2003, 12:50am UTC](https://techcommunity.softwareag.com/t/creating-flatfile-from-edi-856-x12/107928/7 "2003-02-19T00:50:15Z")

</div>

Derek, Rao,

This link may help.  
[url=“[wmusers.com](http://www.wmusers.com/wmusers/messages/117/966.shtml?)”][wmusers.com](http://www.wmusers.com/wmusers/messages/117/966.shtml?%5B/url%5D)

You can also search the archive for more info. Use keyword EDI.

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:04pm UTC](https://techcommunity.softwareag.com/t/creating-flatfile-from-edi-856-x12/107928/8 "2021-04-02T15:04:59Z")

</div>


