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

wm.b2b.edi:convertToString segment Terminator issue

  • 1.  wm.b2b.edi:convertToString segment Terminator issue

    Posted Tue March 05, 2013 07:02 AM

    Hi Experts,

    I am facing an issue while converting my EDI document into String output.
    When I am not setting any value for Segment terminator in “convertToString” service then output string is coming like

    UNH+1234567+IFTMIN:D:01B:UN
    BGM+220++9
    CTA+EB+test.oe
    DTM+4:20130304010705
    DTM+63:20130406010000

    but when i am using segment Terminator as ’ then output is like
    UNH+1234567+IFTMIN:D:001B:UN’BGM+2200++9’CTA+EB+test.oe’DTM+4:20013003004001007005’DTM+63:2001300400600100000000’

    There is no line feed when using Segment Terminator as '.
    I need to have segment terminator in my output along with line feed.

    Same issue is with addICEnvelopeEDIFACT , when i using record delimeter as line feed only then next segment is coming on next line else not.
    e.g.
    UNB+UNOA:1+OOOE:ZZZ+RRRE:ZZZ+130304:2238+17928’UNH+1234567+IFTMIN:D:01B:UN
    Could you please help me out.

    Thanks,
    Amit


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


  • 2.  RE: wm.b2b.edi:convertToString segment Terminator issue

    Posted Tue March 05, 2013 05:06 PM

    Segment terminators are single characters (normally). Use LF or something else but not both.

    There is a common notion of placing CRLF or LF characters after the segment delimiter but this is not part of the standard. It is just a common convention.

    I’m not aware of a way to have the built-in facilities of IS/TN add LF after the segment delimiter. Using only LF (the default delimiter) should be sufficient if you want each segment on its own line.


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


  • 3.  RE: wm.b2b.edi:convertToString segment Terminator issue

    Posted Tue March 05, 2013 05:37 PM

    May be try this when you set the segment Terminator as ’ in the setValue box hit enter along with ’ + enter cursor and save it…if that works?

    I beleive by default you wont see both custom record terminator and LF and some times you cannot accomplish both terminators to send in via TN.

    HTH,
    RMG


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