AnsweredAssumed Answered

EDI 820 - Segment count

Question asked by rob.banas on Jan 12, 2017
Latest reply on Jul 16, 2018 by selvafrnd

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.

Outcomes