Creating EDIFACT messages

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?

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.