About Inbound Processing Of Edi With Tn

Hi Techi’s,

Can anyone please help me out, i am new to webmethods and i am trying to Perform the Inbound processing of EDI 850(PO), and the problem what i am facing is when i try to send the EDIDoc850 from the EDI HOme page i.e thru Submit Test EDI Data option i am getting this error

$contentTypeapplication/x-www-form-urlencoded
hasErrorpathNameerrorCodeerrorMessageInvalid data - [Unexpected segment: 00]InvalidDataInvalid data - [Unexpected segment: 00]

so please tell me what migth be the problem… and is there any other way to send the EDI doc to TN.

I am using EDI 4010 version and 850 transaction and X12 is the standard, and this is sample data

ISA00 00 01123456789 01987654321 0306271304U0040110P>
GSPO1234567899876543212003062713041X004010
ST85001403001
BEG00SA548177**20030627
REF
AN547794
PER
BDJOHNJONESTE5552225555
FOB
PB
DTM00220030705
DTM11820030704
PKG01
TD5
H
OUR CR/T
N9
AH548177
MSG
THIS PURCHASE ORDER IS SUBJECT TO THE SAME TERMS AND
MSGCONDITIONS AS SAFEWAY PURCHASE ORDER FORM 1030
MSG
PICKUP NO. E450562
N1STSAFEWAY INC90091372092527
N2Tracy Produce
N3
16900 West Schulte Road
N4TracyCA95376
N1
BTSAFEWAY INC90091372091700
N2
NATIONAL SERVICES CENTER
N3P.O. BOX 29093
N4
PHOENIXAZ85038
N1VNBEST SUPPLIER INC.91234567890000
N3P.O. BOX 11111
N4
LOS ALAMITOSCA90001
PO110CA12.5UA042040304101IN20403041VN22222
CTP
RSFCP12.5
PIDF08ITEM DESCRIPTION 1/10LB
SAC
A
B280
20.002.0002
CTT
1**120
LB
SE
3001403001
GE
11
IEA
1*1

Thnaks in advance

-aNiL

Anil,

“so please tell me what migth be the problem… and is there any other way to send the EDI doc to TN.”

Thru flow you can use thses steps for sending EDI doc to TN
Use map step set edidata variable(insert edicontent in this var called edidata)
Invoke pub.tn.doc.xml:routeXML(map edidata variable to node input)–this will route directly to TN.

Also before submitting to TN make sure the segment/record delimiters in the edidata are correct you can check via any hex tool like ultraedit or EDIFECSSpecbuilder tool or use envelopeProcess or convertToValues WmEDI wM services for validation and fix the validation/compliance issues if any before routing it to TN to make it work.

HTH,
RMG

Hi RMG,

Thnx a lot for the valid inputs, i tried with routexml method it’s working fine and i can able to send doc to TN and DOC is recognizing in TN . But i have one concern, In TN there are three doctypes are coming(X12 envelope,X12 Group, X12 4010 850) when i click the Transaction analysis is this is a error or is this doctypes are suppose to come when ever the EDI doc reaches Tn.

Thanks once again

-aNiL

“coming (X12 envelope,X12 Group, X12 4010 850)”

This is the standard behaviour X12 will be shown for each X12Envelopee(ISA segment),X12 Group (GS segment),X12 4010 850 (ST segment) and depends on your usage you create your processingrule action(execute a service) with respect to Documenttype selection (Enveloper or Group or Transaction) level.

What error are you getting??Are you able to open these documents in the Transaction Analysis section when you click any of these?

HTH,
RMG

This shouldn’t be a surprise to you if you have read the documentation…

Hi RMG,

Thnx once again for your continous Help, I am not getting any error when i click on any of these documenttypes(X12 envelope,X12 Group, X12 4010 850) in the Transaction Analysis and in the content part i am getting the full data of a document. i am now trying to convert the EDI to Cannonical.

                Thnx a lot

-aNiL