# Creating EDIFACT messages

**URL:** <https://techcommunity.softwareag.com/t/creating-edifact-messages/107868>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [May 19, 2003, 1:54pm UTC](https://techcommunity.softwareag.com/t/creating-edifact-messages/107868 "2003-05-19T13:54:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelr](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@michaelr](https://techcommunity.softwareag.com/u/michaelr)\
**Post date:** [May 19, 2003, 1:54pm UTC](https://techcommunity.softwareag.com/t/creating-edifact-messages/107868/1 "2003-05-19T13:54:41Z")

</div>

I’m struggeling with the task of creating an EDIFACT message in IS 4.6.

When I insert the values to the EDIFACT structure and run the convertToEDI method the undersegment is added aswell. As you can see the subfields still has + as separator even though it should be :

To illustrate, here is a sample of what I mean

Should be like this.  
DTM+102:20030519:220’

Turns out like this  
DTM’  
DTM01+102+20030519+220’

Does anybody know the reason for this?

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [May 19, 2003, 5:57pm UTC](https://techcommunity.softwareag.com/t/creating-edifact-messages/107868/2 "2003-05-19T17:57:41Z")

</div>

What EDIFACT message type you are using? and i think you are trying to create outbound EDI,pls try also with convertToString.

The problem might be in the template segment structure or some thing overlapping of segment (DTM)in the map.

HTH.

---

<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:04pm UTC](https://techcommunity.softwareag.com/t/creating-edifact-messages/107868/3 "2021-04-02T15:04:57Z")

</div>


