Creating STSE EDI segments

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

It would be helpful if you could paste your sample edi file here.
Thanks

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

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

Worked like a charm Rob. Thanks for your help!!!

Glad to be of help. Perhaps you can “Pay It Forward”. :slight_smile:

“Pay It Forward”… great concept, depressing movie. My daughter has it on her list of “movies I will never see again”.

:wink:

Mark

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.

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.

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

ISA00 00 ZZMAN 121111875441 0504201606U004012016061700T|
GSPOMAN1111875441200504201606201606169004010
ST85050114100
BEG00SA*36-50114100
20050114
PERBDPURCHASING DEPARTMENTEMMaryjo.Holman@man.com
PERBDPURCHASING DEPARTMENTFX918/461-5376
PERBDPURCHASING DEPARTMENTTE918/250-8541
DTM00220050117
TD5ZZFULL FRT ALLWD
N9
PO
36-50114100
MSG
BOX & TAG MIDLANDSHIP W/35-50114-107 TO ODESSA
N1STMAN PIPE AND SUPPLY CO.0805929670001
N32206 GARDEN CITY HIGHWAY
N4
MIDLANDTX79702
N1BTMAN PIPE AND SUPPLY
0805929670001
N3P.O.BOX 35632PURCHASING DEPARTMENT
N4TULSAOK74153
N1
VNOKLAHOMA RIG & SUPPLY CO.
N3
2348 EAST SHAWNEE
N4MUSKOGEEOK
PO100136.0EA1.65BP3723445
PID
F0947-12 GOJO NATURAL ORANGE HAND CLEANER14 OZ GRIPPIT BTL W/NAIL BRUSH
PO1
002
12.0
EA
8.08
BP3726455
PID
F422.072 ROUGH TOUGH SCRUBS IN A BUCKET(72/BUCKET)
PO1
003
24.0
EA
0.57BP3728940
PID
F1/2 X 520 ROLL TFE THD TAPE
PO1
004
72.0
EA
2.23
BP3729010
PID
F1 X 1296 ROLL TFE THD TAPE
PO1
005
20.0
EA
0.5BP3843330
PID
F025-1627-B ALEMITE HYD FTG STR 7/8X 1/4 PT
PO1
006
6.0
EA
8.46
BP3921080
PID
F197-K437 CORBIN SESAMEE LG SHANK KEYLESSPADLOCK
PO1
007
10.0
EA
0.87BP3990300
PID
F1-3/16 X 150 FT HIGH VISIBILITY ORANGLOVINYL FLAGGING TAPE
PO1
008
100.0
EA
0.01
BP4107150
PID
FCT-4B 4 BLK TYWRAP (PKG/100)
PO1
009
3.0
EA
7.43BP4296403
PID
F278G PROTO PLIERS
PO1
010
1.0
EA
8.38
BP4296430
PID
F292R PROTO 10 LEV WRENCH PLIERS W/QUICKRELEASE
PO1
011
1.0
EA
19.17BP4378830
PID
F023-56026 ALLEN HEX KEY SET
PO1
012
3.0
EA
3.86
BP4381170
PID
F4103 1-1/2 RED DEVIL STIFF PUTTY KNIFE630-4103
PO1
013
2.0
EA
11.4BP4446100
PID
F8 RIDGID HD PIPE WRENCH 31005
PO1
014
1.0
EA
44.4
BP4446150
PID
F24 RIDGID HD PIPE WRENCH 31030
PO1
015
3.0
EA
9.26BP4451247
PID
F708 PROTO 8 ADJ CR WRENCH
PO1
016
3.0
EA
11.79
BP4451250
PID
F710 PROTO 10 ADJ WRENCH FULL FINISH
PO1
017
12.0
EA
2.89BP5278710
PID
F
*&

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

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

Sorry i mentioned wrong in the previous post.
Set the ST01 to 850 for your case.

Ramesh

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.

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,