EDIFACT CNT segment: control total.

The CNT segment provides a control total for the message, typically the number of line items. CNT+2:7 means there are 7 line items in the message. The receiver should validate that the count matches the actual number of LIN segments. Placed in the summary section after UNS+S.

Tag
CNT
Full name
Control total
Part of the message
Summary and trailers
Data elements
1

A CNT segment, explained

Hover any part of the segment to see what it is. Open What your system receives to see the JSON or XML CleanEDI delivers.

  1. CNT+2:7'
    CNTControl total

    Number of line items: 7.

    CNT
    Control total
    2
    Number of line items (control qualifier)

CNT structure

Elements are separated by + and their parts by :. Positions match the explainer, so 2.3 is the third part of the second element.

PositionElementParts
1Control1.1 Qualifier, 1.2 Value

Control: Qualifier (1.1)

CodeMeaning
1Total of all quantities
2Number of line items

Common EANCOM and UN/EDIFACT values. Your trading partner's implementation guide is the final word on which codes they send.

CNT segment FAQ

Have a real message with CNT in it? The explainer breaks down every segment and runs in your browser.

Explain my message

What is the CNT segment in EDIFACT?

CNT is the Control Total segment. The CNT segment provides a control total for the message, typically the number of line items. CNT+2:7 means there are 7 line items in the message. The receiver should validate that the count matches the actual number of LIN segments. Placed in the summary section after UNS+S.

What are the common CNT control: qualifier codes?

1 means total of all quantities; 2 means number of line items.

Where does CNT appear in an EDIFACT message?

CNT belongs to the summary and trailers part of a message, alongside UNS, UNT, UNZ.

How do I read a CNT segment in my own message?

Paste the message into the free CleanEDI explainer. It breaks every CNT segment into its elements, translates the codes and shows the JSON and XML your system would receive. Nothing you paste leaves your browser.

Related segments in summary and trailers