Sales Order EDI Segments and their Explanations with Example data

EDI File:

UNA:+.? ‘

UNB+UNOA:3+SUPPEDI:ZZZ+BGW:ZZZ+231024:2358+115883′

UNH+1+INVOIC:D:96A:UN’

BGM+381+9036648188+9′

DTM+137:20231024:102′ RFF+OI:3988367′

NAD+BY+100++BGW TEST COMPANY+675 MACARTHUR AVENUE CENTRAL+PINKENBA+QLD+4008′

RFF+AHP:48009669836′

NAD+SU+30000++SUPPLIER EDI’

RFF+AHP:42004969304′ PAT+3′

DTM+13:20231231:102′

LIN+1++EVH4S11NC:VP’

PIA+1+XXXEVH4S11NC:BP’

IMD+F++:::AC EASY HOME CHARGER’

QTY+47:1:PCE’ MOA+128:1009.85′

PRI+AAA:1009.85′

TAX+7+GST’

MOA+124:100.99′

UNS+S’ CNT+2:1′

MOA+77:1110.84′

MOA+128:1009.85′

MOA+176:100.99′

TAX+7+GST’

MOA+124:100.99′

UNT+26+1′

UNZ+1+115883′

Explanation:

### UNA Segment

– UNA:+.? ‘

 – UNA: Service String Advice segment, used to define special characters in the message.

 – +: Indicates that the plus sign is the data element separator.

 – .: Indicates that the period is the decimal marker.

 – ?: Indicates that the question mark is the release character.

 – ‘: Marks the end of the UNA segment.

### UNB Segment

– UNB+UNOA:3+SUPPEDI:ZZZ+BGW:ZZZ+231024:2358+115883′

 – UNB: Interchange Header segment.

 – UNOA:3: Version and release of the UN/EDIFACT standard being used (UNOA, version 3).

 – SUPPEDI:ZZZ: Sender’s identifier (SUPPEDI) with qualifier ZZZ (user-defined).

 – BGW:ZZZ: Receiver’s identifier (BGW) with qualifier ZZZ (user-defined).

 – 231024:2358: Date (23rd October 2023) and time (23:58) of the message creation.

 – 115883: Unique reference number for the interchange.

### UNH Segment

– UNH+1+INVOIC:D:96A:UN’

 – UNH: Message Header segment.

 – 1: Message reference number (unique within the interchange).

 – INVOIC: Message type (invoice).

 – D: Indicates the data version (D).

 – 96A: Release number (1996, version A).

 – UN: Indicates the UN/EDIFACT syntax.

### BGM Segment

– BGM+381+9036648188+9′

 – BGM: Beginning of Message segment.

 – 381: Document/message name code (invoice).

 – 9036648188: Document/message number (unique invoice number).

 – 9: Indicates that the document is a “final” invoice.

### DTM Segment

– DTM+137:20231024:102′

 – DTM: Date/Time/Period segment.

 – 137: Code indicating the date/time related to the invoice (invoice date).

 – 20231024: Date (2023-10-24) in the format YYYYMMDD.

 – 102: Code specifying the date format (CCYYMMDD).

### RFF Segment

– RFF+OI:3988367′

 – RFF: Reference segment.

 – OI: Reference qualifier (original order).

 – 3988367: Reference number (the order number related to this invoice).

### NAD Segments

1. NAD+BY+100++BGW TEST COMPANY+675 MACARTHUR AVENUE CENTRAL+PINKENBA+QLD+4008′

 – NAD: Name and Address segment.

 – BY: Qualifier indicating the buyer.

 – 100: Buyer’s identifier.

 – Address components follow: company name, street, city, state, and postal code.

2. NAD+SU+30000++SUPPLIER EDI’

 – NAD: Another Name and Address segment.

 – SU: Qualifier indicating the supplier.

 – 30000: Supplier’s identifier.

 – Additional information is provided (name).

### RFF Segments

1. RFF+AHP:48009669836′

 – RFF: Reference segment.

 – AHP: Reference qualifier (associated with the supplier).

 – 48009669836: Associated reference number.

2. RFF+AHP:42004969304′

 – Another reference related to the supplier.

### PAT Segment

– PAT+3′

 – PAT: Payment Terms segment.

 – 3: Payment terms code.

### DTM Segment

– DTM+13:20231231:102′

 – DTM: Date/Time/Period segment.

 – 13: Code indicating the date of payment terms.

 – 20231231: Date (31st December 2023).

 – 102: Date format.

### LIN Segment

– LIN+1++EVH4S11NC:VP’

 – LIN: Line Item segment.

 – 1: Line item number (sequential).

 – EVH4S11NC:VP: Item identifier (product code).

### PIA Segment

– PIA+1+XXXEVH4S11NC:BP’

 – PIA: Product Identification segment.

 – 1: Line item reference number.

 – XXXEVH4S11NC:BP: Another identification code for the product.

### IMD Segment

– IMD+F++:::AC EASY HOME CHARGER’

 – IMD: Item Description segment.

 – F: Description type (free text).

 – Description: “AC EASY HOME CHARGER”.

### QTY Segment

– QTY+47:1:PCE’

 – QTY: Quantity segment.

 – 47: Code indicating ordered quantity.

 – 1: Quantity (1 piece).

 – PCE: Unit of measure (pieces).

### MOA Segments

1. MOA+128:1009.85′

 – MOA: Monetary Amount segment.

 – 128: Code for total invoice amount.

 – 1009.85: Amount.

2. PRI+AAA:1009.85′

 – PRI: Price Details segment.

 – AAA: Price qualifier.

 – 1009.85: Price.

### TAX Segments

1. TAX+7+GST’

 – TAX: Tax Information segment.

 – 7: Tax category.

 – GST: Tax type (Goods and Services Tax).

2. MOA+124:100.99′

 – MOA: Monetary Amount segment for tax amount.

 – 124: Code indicating the amount of tax.

 – 100.99: Amount of tax.

### UNS Segment

– UNS+S’

 – UNS: Section Control segment.

 – S: Indicates the end of a section.

### CNT Segment

– CNT+2:1′

 – CNT: Control Total segment.

 – 2: Control type (number of line items).

 – 1: Number of line items.

### Additional MOA Segments

– Similar to previous segments, these provide additional monetary amounts and tax details as needed.

### UNT Segment

– UNT+26+1′

 – UNT: Message Trailer segment.

 – 26: Number of segments in the message (excluding UNH and UNT).

 – 1: Message reference number (matches the UNH segment).

### UNZ Segment

– UNZ+1+115883′

 – UNZ: Interchange Trailer segment.

 – 1: Number of messages in the interchange.

 – 115883: Unique reference number (matches the UNB segment).

This breakdown covers each segment and its components in your EDIFACT message. If you have any further questions or need additional clarification, feel free to ask!

Leave a comment

Your email address will not be published. Required fields are marked *