PDA

View Full Version : Creating STSE EDI segments


aehret
03-13-2003, 07:05
I am relatively new to the webMethods world. I have performed all the mappings for an ANSI x12 outbound 810 and would like to wrap it with the ST/SE segments. It is my understanding that I can call validate then convertToString for this but for some reason after calling this service I don't have a valid ST/SE structure. Am I missing something? Thanks in advance

Arc
03-13-2003, 07:09
It would be helpful if you could paste your sample edi file here.
Thanks

Arc
03-13-2003, 07:31
Did you do an envelope process at the beginning? I tried to recreate your issue and was successful. I got the record structure until GE and then there was undefData.

I think it could be something about setting the delimiters for the EDI file.

Good Luck and if we dont find out the solution soon, the experts will help us for sure.
Thanks

reamon
03-13-2003, 09:59
ST/SE isn't considered part of the envelope. It's part of the transaction set. Therefore it is part of the 810 record definition. You need to set a value for ST01 (in this case, to 810). Set SE01 to an empty string and convertToString will plug-in the segment count. You can either set ST02 and SE02 yourself, using wm.b2b.edi.util:controlNumber, or set them as an empty string and convertToString will add in the control number.

HTH

aehret
03-13-2003, 10:18
Worked like a charm Rob. Thanks for your help!!!!

reamon
03-13-2003, 10:47
Glad to be of help. Perhaps you can "Pay It Forward". :-)

mcarlson
03-13-2003, 11:38
"Pay It Forward"... great concept, depressing movie. My daughter has it on her list of "movies I will never see again".

;-)

Mark

suda1234
08-21-2003, 12:04
Hi,
i am doing mapping from delimited flatfile to 835 EDI mapping in 6.0.1.
i am done with segment mapping , and when i do converttoString service i am getting NullPointer exception.
i am passing the EDI document as input and ns record as actual EDI document.
what could be the problem here?
when i look into the EDI document from my mapping , only i see ST01 as 835 and ST02, SE01 and SE02 all are blanks.
any help is appreciated.its some what urgent.

Thanks,
Rao.

RMG (Unregistered Guest)
08-21-2003, 13:27
Make sure your mapping of segments are perfect(IData Values).

And Instead of giving nsRecord,try with passing the ffschema param(EDIFFSchema.X12.V4010:T835)of convertToString,This should work.


Above mentioned schema will be stored in EDIforTN Package.


HTH.

500chill
04-20-2005, 16:32
Version 6.1 My 850 SE is not counting my records correctly. Consistantly I have 4 extra items in my se count. I am sending a group of ST/SEs in one ISA envelope. It seems like it is counting my ISA GS IEA and GE in every ST Loop.

I am using
wm.b2b.editn.TAP:getEDITPAData
Looping over the values
wm.b2b.edi:convertToString
wm.b2b.edi.util:addGroupEnvelope
wm.b2b.edi.util:addICEnvelope
wm.tn.doc.xml:routeXML

Any suggestions.
Below an example of 850 Outbound

ISA*00* *00* *ZZ*MAN *12*1111875441 *050420*1606*U*00401*201606170*0*T*|
GS*PO*MAN*1111875441*20050420*1606*201606169**004010
ST*850*50114100
BEG*00*SA*36-50114100**20050114
PER*BD*PURCHASING DEPARTMENT*EM*Maryjo.Holman@man.com
PER*BD*PURCHASING DEPARTMENT*FX*918/461-5376
PER*BD*PURCHASING DEPARTMENT*TE*918/250-8541
DTM*002*20050117
TD5****ZZ*FULL FRT ALLWD
N9*PO*36-50114100
MSG*BOX & TAG MIDLANDSHIP W/35-50114-107 TO ODESSA
N1*ST*MAN PIPE AND SUPPLY CO.**0805929670001
N3*2206 GARDEN CITY HIGHWAY
N4*MIDLAND*TX*79702
N1*BT*MAN PIPE AND SUPPLY**0805929670001
N3*P.O.BOX 35632*PURCHASING DEPARTMENT
N4*TULSA*OK*74153
N1*VN*OKLAHOMA RIG & SUPPLY CO.
N3*2348 EAST SHAWNEE
N4*MUSKOGEE*OK
PO1*001*36.0*EA*1.65**BP*3723445
PID*F****0947-12 GOJO NATURAL ORANGE HAND CLEANER14 OZ GRIPPIT BTL W/NAIL BRUSH
PO1*002*12.0*EA*8.08**BP*3726455
PID*F****422.072 ROUGH TOUGH SCRUBS IN A BUCKET(72/BUCKET)
PO1*003*24.0*EA*0.57**BP*3728940
PID*F****1/2 X 520 ROLL TFE THD TAPE
PO1*004*72.0*EA*2.23**BP*3729010
PID*F****1 X 1296 ROLL TFE THD TAPE
PO1*005*20.0*EA*0.5**BP*3843330
PID*F****025-1627-B ALEMITE HYD FTG STR 7/8X 1/4 PT
PO1*006*6.0*EA*8.46**BP*3921080
PID*F****197-K437 CORBIN SESAMEE LG SHANK KEYLESSPADLOCK
PO1*007*10.0*EA*0.87**BP*3990300
PID*F****1-3/16 X 150 FT HIGH VISIBILITY ORANGLOVINYL FLAGGING TAPE
PO1*008*100.0*EA*0.01**BP*4107150
PID*F****CT-4B 4 BLK TYWRAP (PKG/100)
PO1*009*3.0*EA*7.43**BP*4296403
PID*F****278G PROTO PLIERS
PO1*010*1.0*EA*8.38**BP*4296430
PID*F****292R PROTO 10 LEV WRENCH PLIERS W/QUICKRELEASE
PO1*011*1.0*EA*19.17**BP*4378830
PID*F****023-56026 ALLEN HEX KEY SET
PO1*012*3.0*EA*3.86**BP*4381170
PID*F****4103 1-1/2 RED DEVIL STIFF PUTTY KNIFE630-4103
PO1*013*2.0*EA*11.4**BP*4446100
PID*F****8 RIDGID HD PIPE WRENCH 31005
PO1*014*1.0*EA*44.4**BP*4446150
PID*F****24 RIDGID HD PIPE WRENCH 31030
PO1*015*3.0*EA*9.26**BP*4451247
PID*F****708 PROTO 8 ADJ CR WRENCH
PO1*016*3.0*EA*11.79**BP*4451250
PID*F****710 PROTO 10 ADJ WRENCH FULL FINISH
PO1*017*12.0*EA*2.89**BP*5278710
PID*F***&

ybedu
04-20-2005, 16:54
Hello,
What exactly is happening in your "Looping over the values " section? And, are you manually setting the segment count or letting convertToString do it for you? Have you tried it with only less than or greater four transaction sets? Have you tried to set this up with a minimal amount of data like 1 shipping request on one transaction? Good day.

Yemi Bedu

rsamban
04-20-2005, 17:45
Hi Cheryl,

ST/SE isn't considered part of the envelope. It's part of the transaction set. Therefore it is part of the 810 record definition. You need to set a value for ST01 (in this case, to 810). Set SE01 to an empty string and convertToString will plug-in the segment count. You can either set ST02 and SE02 yourself, using wm.b2b.edi.util:controlNumber, or set them as an empty string and convertToString will add in the control number.
Hope This helps

rsamban
04-20-2005, 17:47
Sorry i mentioned wrong in the previous post.
Set the ST01 to 850 for your case.

Ramesh

rmg
04-20-2005, 19:25
Cheryll,

Please follow as Ramesh suggested,just set empty value to SE01 using setValue and convertToString will do all the rest gives exact count of segments.

HTH,
RMG.

rmg
04-20-2005, 19:31
Cheryll,

One small suggesstion please do not disclose your EDI document data to outsiders,its always advised to maintain data confidential.Even if you put also just put some xyz test data etc....


Regards,