Hi all, I'm working with an EDI document. When creating the document, one of the segment elements needs to be set to the total number of segments in the document + 1. I'm working with an EDI 820 document. X12. version 4010.
Any tips on how to count each segment as it's being created so that I can capture the total number of segments in the doc?
Note, this is not a count of a certain segment type only. It's the total number of all segments.