Creating flatfile from edi 856 x12

i have input coming as 856 edi (x12) to my IS server.i have to convert it to character delimted falt 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.

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.

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,

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

Cant you send the customer PO number as a string?
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!

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?

Derek, Rao,

This link may help.

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