# wm.b2b.edi:convertToString segment Terminator issue

**URL:** <https://techcommunity.softwareag.com/t/wm-b2b-edi-converttostring-segment-terminator-issue/110475>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [March 5, 2013, 12:02pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-converttostring-segment-terminator-issue/110475 "2013-03-05T12:02:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Aggarwal](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/amit_aggarwal/32/643_2.png) [@Amit\_Aggarwal](https://techcommunity.softwareag.com/u/Amit_Aggarwal)\
**Post date:** [March 5, 2013, 12:02pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-converttostring-segment-terminator-issue/110475/1 "2013-03-05T12:02:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [March 5, 2013, 10:06pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-converttostring-segment-terminator-issue/110475/2 "2013-03-05T22:06:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [March 5, 2013, 10:36pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-converttostring-segment-terminator-issue/110475/3 "2013-03-05T22:36:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:06pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-converttostring-segment-terminator-issue/110475/4 "2021-04-02T15:06:12Z")

</div>


