I have to populate the CNT segment of an EDIFACT message with a segment count.
Not all of the segments, simply those that lie between the UNH and UNT segments, including the CNT itself.
I know there is a convertToString function that will count all segments, but I do not think this will give me what I need.
UNH+0000001+DESADV:D:97A:UN
BGM+351+34602773+9
DTM+11:20140617:102
CNT+2:3
UNT+5+0000001
I know I can set up a crude transformer after I create each segment, but it doesn’t seem very elegant.
Any suggestions.
Paul