EDIFACT UNS segment: section control.

The UNS segment separates the detail section from the summary section of a message. UNS+S marks the start of the summary. Everything after UNS+S is summary-level data: total MOA segments, summary TAX segments, and the CNT line count. Line item groups must appear before UNS+S.

Tag
UNS
Full name
Section control
Part of the message
Summary and trailers
Data elements
1

A UNS 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. UNS+S'
    UNSSection control

    Summary section starts.

    UNS
    Section control
    S
    Summary section starts (section)

UNS 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
1Section1.1 Code

Section (1.1)

CodeMeaning
DDetail section starts
SSummary section starts

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

UNS segment FAQ

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

Explain my message

What is the UNS segment in EDIFACT?

UNS is the Section Control segment. The UNS segment separates the detail section from the summary section of a message. UNS+S marks the start of the summary. Everything after UNS+S is summary-level data: total MOA segments, summary TAX segments, and the CNT line count. Line item groups must appear before UNS+S.

What are the common UNS section codes?

D means detail section starts; S means summary section starts.

Where does UNS appear in an EDIFACT message?

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

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

Paste the message into the free CleanEDI explainer. It breaks every UNS 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