IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Sending EDI to TN

  • 1.  Sending EDI to TN

    Posted Thu August 14, 2003 08:35 PM

    I’m looking for some guidance in sending EDI documents to TN 6.01. Should EDI docs be sent in EDI format or should they be transformed to XML and submitted that way? When I transform an EDI 850, TN throws an exception stating the envelope does not exist. I feel like I’m missing some trick here. The EDI documentation says to extract the needed data from the byte string and use it to determine the documents type and attributes. Is that really how it works?

    I have serveral more questions, but lets see where this goes first. Thanks for your help.

    Jim Palmer


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 2.  RE: Sending EDI to TN

    Posted Thu August 14, 2003 09:17 PM

    EDI(eg:X12/EDIFACT) Documents should be sent in EDI format(mandatory).

    It seems you are sending out EDI X12 850 as outbound transaction.

    Steps to follow:

    I believe you have the final 850 (IDATA values)with mapped data .Once you have IDATA values these services should be invoked before pushing it to TN:

    1.wm.b2b.edi:convertToString(it creates ST transactionSet)2.wm.b2b.edi.util:addICEnvelope (it will add ISAEnvelope)
    3.wm.b2b.edi.util:addGroupEnvelope(it will add GSEnvelope)

    At the end the edi string must have (ISA,GS,ST,SE,IEA).

    And finally route this final string using wm.tn:receive or wm.tn.doc.xml:routeXML to TN.

    Hope you got it clear.If not some body will chim on it.


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 3.  RE: Sending EDI to TN

    Posted Thu August 14, 2003 09:36 PM

    Sorry,Forgot to mention in my previous post:

    pls make sure the final edi 850 document string have the appropriate delimiters,generally used delimiters are($,~,},+,{,*,>,')etc…

    Pls specify these delimiters shown below,

    Delimiters for example:

    Set these in converToString service
    Segment_terminator=$
    Field_separator=*
    Subfield_separator=:

    And also fill it in wm.b2b.edi.util:addICEnvelope,wm.b2b.edi.util:addGroupEnvelope services
    (in delimiters field section)

    If you don’t set up delimiters,edi document will be messed up and TN will end up with Exceptions and won’t recognizing the document.

    HTH.


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Sending EDI to TN

    Posted Thu August 14, 2003 10:21 PM

    Actually, I’m receiving an EDI 850 from a VAN. I need to receive it in TN. I’ve seen posts where they talk about getting the outer envelope as a received documents. That would be what I expected when I received the EDI . The EDI I’m receiving has multiple 850’s inside. I’m not sure how to handle that either.


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 5.  RE: Sending EDI to TN

    Posted Thu August 14, 2003 10:35 PM

    OOps,i assumed you are sending edi 850 via TN to outside world according to your message.


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Sending EDI to TN

    Posted Thu August 14, 2003 11:09 PM

    Review the docs for the WmEDIforTN package. TN will do the de-enveloping for you. You set up rules for the interchange, group and transaction sets. Normally, your rule for the interchange will be to invoke a service to create and send a 997. Group envelopes can usually be ignored. For each transaction set, your rule will invoke a service. This service will be invoked for each individual transaction set (1 at a time). Your service then just does a bizdocToRecord and then you’re set for mapping from that record to whatever you need.

    HTH


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: Sending EDI to TN

    Posted Fri August 15, 2003 02:11 PM

    Hi,

    When can one find information about names to be used for delimiters, and the values needed for ISA/EDIFACT?


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 8.  RE: Sending EDI to TN

    Posted Fri August 15, 2003 04:17 PM

    Check the user guides for WmEDI and WmEDIforTN.


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 9.  RE: Sending EDI to TN

    Posted Fri August 15, 2003 04:24 PM

    Take a look of EDI_Module_Core_Component_Users_Guide.pdf

    you will find this Advantagesite/Bookshelf/webMethods eStandards/webMmethods EDI Module.

    or in wmEDI package/Doc

    HTH.


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 10.  RE: Sending EDI to TN

    Posted Fri August 15, 2003 09:02 PM

    I have reviewed the EDI for TN documents but I haven’t gotten much farther. I’ll start at the beginning.

    I am receiving EDI through the getFile service as a stream. I specify the SenderID, ReceiverID, and the DoctypeName and I then I call routeFlatFile. When I review the results I see an error which reads: >>>BasicData:EntryTimestamp=2003-08-15 14:43:27.06,EntryType=2,EntryClass=Processing,BriefMessage=Routing rule 850 selected,FullMessage=null,RelatedDocID=0ag08400us3emk6a0000002s,RelatedPartnerID=null,RelatedInstanceID=null,RelatedStepID=null,B2BUser=null<<<

    The routing rule is selected and called but when I run bizDocTorecord I get the following error returned : An error occurred invoking the processing service jimp.test:process3M850 for this document. The original error was com.wm.app.b2b.server.ServiceException: [ISS.0086.9091] Parameters xmldata, $filestream and $filedata are all missing. One of these must not be null.

    Did I miss something? I have the default TPA setup and all the doc types are seen in the TN console. The default TPA splitOption is set to transaction but I only see one document. I also don’t see any Envelope entries.


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 11.  RE: Sending EDI to TN

    Posted Fri August 15, 2003 09:52 PM

    I’m not familiar with routeFlatFile (haven’t used 6 yet) but TN normally requires that EDI data var in the pipeline be named edidata, whether it is a string or a stream. You might give that a shot.


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 12.  RE: Sending EDI to TN

    Posted Fri August 15, 2003 11:02 PM

    I tried both the string and stream and still get the same missing parameter error. Is anybody else receiving EDI in TN? If so, what are your basic steps to get the data in? The gateway service I’m using is almost the same as the sample. Do I need more?


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 13.  RE: Sending EDI to TN

    Posted Fri August 15, 2003 11:27 PM

    We’re using it extensively (TN is our core component, acting as a document broker). We have no issues when we have a string var named edidata in the pipeline when invoking wm.tn:receive or wm.tn.doc.xml:routeXml.


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 14.  RE: Sending EDI to TN

    Posted Fri August 15, 2003 11:44 PM

    Jim,

    First thing, have you loaded the EDI Doc types into TN?
    If this is inbound EDI then make sure you have pur Sender/Receiver pair for your partner is setup in TN as an External Id Type. So 01~123456789
    should be setup as an External UID Type of DUNS with the value 123456789 and that goes for you Receiver ID as well

    Then verify that you have the appropriate Trading Partner Agreement specifying the correct direction flow of the document.

    HTH


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 15.  RE: Sending EDI to TN

    Posted Sat August 16, 2003 12:02 AM

    oops forgot
    you need a rule to point to your service set usually at the Envelope level. in your service the input should be contentStream and you will invoke streamToBytes and byteToString and you should know have your document. After you have the EDI Doc types loaded you can view the schema in the WmEDIforTN packager under the EDIFFSchema.X12.V4010:T850
    Edit the schema and on the Flat File Structure tab click on the blue document icon to create the 850 document structure which will be named T850DT.
    You may need to load EDI ID types if you have qualifiers like phone or pas code.
    The loading for the EDI doc types and EDI ID types are done from the wmEDIforTN home page.

    You could use this to validate the documents.


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 16.  RE: Sending EDI to TN

    Posted Mon August 18, 2003 05:46 PM

    I have the EDI Doc Types loaded. I see all the Doc Types needed. I see the X12 4010 850 and the X12 Envelope Doc Types.

    When I execute routeFlatFile, I pass in TN_Parms of SenderID, ReceiverID, DoctypeName. When I send in the canned doc type “X12 4010 850”, TN recognizes the doc type but not the Sender and ReceiverID. When I use the same Sender and Receiver ID’s but use a FlatFileSchema Doc Type I created and set the parsing option to refer to the EDIFFSchema.X12.V4010:T850. The results are different. TN recognizes the Sender, Receiver and the Doc Type. But I get an error when I being my rules processing. The bizDocToRecord service fails.

    Is there another way to receive the data?

    I added the X12 Envelope processing rule but that doc type is never recognized.


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 17.  RE: Sending EDI to TN

    Posted Mon August 18, 2003 10:50 PM

    I used wm.tn.doc:recognize for finding the Sender/Receiver profiles in edidata and it created the X12 Envelope, X12 Group and X12 4010 850 in TN. Is there anyway I can submit the edidata with any option such that I get only X12 Envelope entry in my TN transaction Analysis.

    Thanks for your help


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 18.  RE: Sending EDI to TN

    Posted Mon August 18, 2003 11:15 PM

    you have to force with EDI TPA (in TN6.0)to process ISA level,so that you will see only X12 envelope entry in transaction analysis view.

    HTH.


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 19.  RE: Sending EDI to TN

    Posted Mon August 18, 2003 11:56 PM

    Jim,

    I thinking your problem has to do with routeFlatFile. In 6.01 there are similar services in the wmEDI package and the wmFlatFiles package but they behave differently. ie. convertToString in the wmEDI packager works on EDI files but not flat files and similarly for convertToString in the wmFlatFile package.

    I would re-read the wmEDI manual and get away from using routeFlatFile.
    Review the sample in the wmEDISamples package. If you follow that example you can’t go wrong.

    Good Luck!


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 20.  RE: Sending EDI to TN

    Posted Tue August 19, 2003 12:04 AM

    Is this EDI TPA feature available in TN4.6 (or similar) as we’re not upgraded to 6.0 yet???

    Thanks


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 21.  RE: Sending EDI to TN

    Posted Tue August 19, 2003 12:05 AM

    Afroz,

    In EDITPA (default or your own TPA) make change the splitOption to “Interchange” this will show up only the Interchange Evelope along with group segments,transactionset.

    Pls look into EDI Module Usersguide.pdf(6.0version)for better understaning about TPA’s

    HTH.


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 22.  RE: Sending EDI to TN

    Posted Tue August 19, 2003 12:43 AM

    Afroz,

    EDITPA is not available in 4.6


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 23.  RE: Sending EDI to TN

    Posted Tue August 19, 2003 12:43 AM

    Afroz: TPAs were introduced in 6. You cannot configure things to omit the group envelope from the transaction logs, but you can configure a rule to not save the content. This will save some space but the group envelope “clutter” cannot be avoided.


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 24.  RE: Sending EDI to TN

    Posted Tue August 19, 2003 01:21 AM

    sorry Afroz,

    i assumed that you are using 6.0,since you posted the message along with Jim Palmer thread,so this causes confusing about the version.


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 25.  RE: Sending EDI to TN

    Posted Thu May 27, 2004 01:30 PM

    I want to send an 855 acknowledgement to the sender via TN from IS when the receiver gets 850 document from TN.how can i create EDI ANSI X12 855 document in IS and send it to TN.


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 26.  RE: Sending EDI to TN

    Posted Thu May 27, 2004 02:11 PM

    Shina,

    This topic has been discussed to the nth degree.
    Please use the search feature.
    Read the EDI docs, look at the wmEDISamples.
    If you get stuck post your problem then.


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 27.  RE: Sending EDI to TN

    Posted Tue June 01, 2004 04:12 PM

    hi chris,
    i have tried to use wMEdiSamples. I even used the process850 followed by an send855 service. But i am getting following error:

    2004-06-01 19:42:41 GMT+05:30 [ISC.0050.0019V2] Copy failed: No source data avai
    lable: to=/ffIterator, from=/ediObject
    2004-06-01 19:42:41 GMT+05:30 [ISC.0050.0019V2] Copy failed: No source data avai
    lable: to=/iterate, from=/iterator
    2004-06-01 19:42:45 GMT+05:30 [ISS.0098.0006V2] Consumer:RUN.IS:trigger received
    1 Documents from Broker
    2004-06-01 19:42:45 GMT+05:30 [PRT.0101.0374V2] (T2) *** SERVICE EXECUTION FAILE
    D ***
    2004-06-01 19:42:45 GMT+05:30 [PRT.0101.0375V2] (T2) (RUN) RUN.IS:newStep
    2004-06-01 19:42:45 GMT+05:30 [PRT.0101.0376V1] *** Error invoking step N3 (RUN.
    IS:newStep): [FFP.0012.0004] Found no valid records
    2004-06-01 19:42:46 GMT+05:30 [PRT.0101.0378D] PROCESS T2 TERMINATED ABNORMALLY;
    step 27dde385418e46b8fc82dfeef0:1 died with no error handler
    2004-06-01 19:42:46 GMT+05:30 [ISS.0098.0051V2] DefaultProducer sending document
    to Broker.

    can you please help me out of this problem…i searched wMUsers but could not find satisfying solution.


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 28.  RE: Sending EDI to TN

    Posted Tue June 01, 2004 06:36 PM

    The samples are there as an example and are not meant to be used but are there to show how you can perform certain functions. Specifically you need to look at the XMLtoEDI sample. Although you’ll be mapping EDI to EDI the process is still the same.

    Try this link
    [url=“wmusers.com”]wmusers.com

    Read the wmEDI documentation.
    Once you have moved forward, post again.

    Good luck!


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 29.  RE: Sending EDI to TN

    Posted Tue June 08, 2004 11:18 AM

    Hi all

    Can anyone tell me what are the procedures to send an EDI document from the Integration Server to the Trading networks…and also tell me the Tradin Network configuration…

    Thanks in advance
    Alexander


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 30.  RE: Sending EDI to TN

    Posted Tue June 08, 2004 02:37 PM

    Alexander,

    Please kindly use the search functionality provided in this site,there are lot of discussions done on this procedure.Even this thread have this procedure.

    For Trading Network configuration,go thru the documentation of
    wMTN_BuildingYourNetwork.pdf located in TNConsole/doc folder.

    Thanks,


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 31.  RE: Sending EDI to TN

    Posted Sun April 12, 2020 08:09 AM

    HI all,

    Anyone please help me to make out of same POC as above in the quote

    i am facing an issue of Invalid envelop while i am route to TN.

    please find below the attachment and help me to solve the issue



    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 32.  RE: Sending EDI to TN

    Posted Mon April 13, 2020 06:04 PM

    Hi,

    It looks like the edidata you are using may not be in the expected format and thus invalid data while processing in-flight.

    Can you upload the EDI 855 sample that you are trying to POC? So we can introspect it.

    HTH,
    RMG


    #edi
    #webMethods
    #Integration-Server-and-ESB