Stedi maintains this guide based on public documentation from AAFES. Contact AAFES for official EDI specifications. To report any errors in this guide, please contact us.
X12 856 Advance Ship Notice
—
Delimiters
- ~ Segment
- * Element
- > Component
- ^ Repetition
Powered by
Build EDI implementation guides at stedi.com
Overview
ISA
-
Interchange Control Header
Max use 1
Required
GS
-
Functional Group Header
Max use 1
Required
detail
HL Loop
HL
0100
Hierarchical Level
Max use 1
Required
TD1
1100
Carrier Details (Quantity and Weight)
Max use 20
Required
TD5
1200
Carrier Details (Routing Sequence/Transit Time)
Max use 12
Required
REF
1500
Reference Information
Max use 1
Required
DTM
2000
Date/Time Reference
Max use 10
Required
FOB
2100
F.O.B. Related Instructions
Max use 1
Required
HL Loop
HL
0100
Hierarchical Level
Max use 1
Required
PRF
0500
Purchase Order Reference
Max use 1
Required
HL Loop Pack
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
—
- 00
- No Authorization Information Present (No Meaningful Information in I02)
—
- 00
- No Security Information Present (No Meaningful Information in I04)
—
- 00501
- Standards Approved for Publication by ASC X12 Procedures Review Board through October 2003
—
- 0
- No Interchange Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested (TA1)
—
- I
- Information
- P
- Production Data
- T
- Test Data
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
—
Usage notes
—
- 00
- Original
- 01
- Cancellation
- 17
- Cancel, to be Reissued
Heading end
Detail
HL Loop
RequiredMax 200000
—
Part 1/2
- BAG
- Bag
- BOX
- Box
- CAS
- Case
- CTN
- Carton
- DRM
- Drum
- PCS
- Pieces
- PLT
- Pallet
- SKD
- Skid
Part 2/2
- 03
- Hard Wood
- 05
- Soft Wood
- 25
- Corrugated or Solid
- 58
- Metal
- 67
- Multiple-wall Paper (2 or more walls)
- 72
- Paper - VCI
- 94
- Wood
TD5
1200
Detail > HL Loop > TD5
Carrier Details (Routing Sequence/Transit Time)
RequiredMax use 12
—
Example
If Identification Code Qualifier (TD5-02) is present, then Identification Code (TD5-03) is required
If Transit Time Direction Qualifier (TD5-10) is present, then Transit Time (TD5-11) is required
—
- A
- Air
- AP
- Air (Package Carrier)
- D
- Parcel Post
- H
- Customer Pickup
- J
- Motor
- K
- Backhaul
- LT
- Less Than Trailer Load (LTL)
- M
- Motor (Common Carrier)
- MP
- Motor (Package Carrier)
- O
- Containerized Ocean
- R
- Rail
- T
- Best Way (Shippers Option)
- U
- Private Parcel Service
—
- CD
- Calendar Days (Includes weekends and Holidays)
TD3 Loop
OptionalMax 12
Usage notes
—
TD3 Loop end
N1 Loop Ship From
RequiredMax 1
Variants (all may be used)
N1 Loop Ship To—
- 1
- D-U-N-S Number, Dun & Bradstreet
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 92
- Assigned by Buyer or Buyer's Agent
- UL
- Global Location Number (GLN)
N1 Loop Ship From end
N1 Loop Ship To
RequiredMax 200
Variants (all may be used)
N1 Loop Ship From—
- 1
- D-U-N-S Number, Dun & Bradstreet
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 92
- Assigned by Buyer or Buyer's Agent
- UL
- Global Location Number (GLN)
N1 Loop Ship To end
HL Loop
RequiredMax 1
N1 Loop
RequiredMax 200
N1
2200
Detail > HL Loop > HL Loop > N1 Loop > N1
Party Identification
RequiredMax use 1
—
Usage notes
—
Example
—
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix—
- 92
- Assigned by Buyer or Buyer's Agent—
- UL
- Global Location Number (GLN)—
N1 Loop end
MAN
1900
Detail > HL Loop > HL Loop > HL Loop Pack > MAN
Marks and Numbers Information
OptionalMax use >1
—
Usage notes
—
Example
HL Loop
RequiredMax 1
Usage notes
—
HL
0100
Detail > HL Loop > HL Loop > HL Loop Pack > HL Loop > HL
Hierarchical Level
RequiredMax use 1
—
Example
LIN
0200
Detail > HL Loop > HL Loop > HL Loop Pack > HL Loop > LIN
Item Identification
RequiredMax use 1
—
Example
If either Product/Service ID Qualifier (LIN-04) or Product/Service ID (LIN-05) is present, then the other is required
—
Usage notes
—
- EN
- EAN/UCC - 13
- EO
- EAN/UCC - 8
- IB
- International Standard Book Number (ISBN)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
—
- LT
- Lot Number
- VA
- Vendor's Style Number
- VC
- Vendor's (Seller's) Catalog Number
SN1
0300
Detail > HL Loop > HL Loop > HL Loop Pack > HL Loop > SN1
Item Detail (Shipment)
RequiredMax use 1
—
Example
PO4
0600
Detail > HL Loop > HL Loop > HL Loop Pack > HL Loop > PO4
Item Physical Details
OptionalMax use 1
—
Usage notes
—
Example
If either Size (PO4-02) or Unit or Basis for Measurement Code (PO4-03) is present, then the other is required
If either Gross Volume per Pack (PO4-08) or Unit or Basis for Measurement Code (PO4-09) is present, then the other is required
PID
0700
Detail > HL Loop > HL Loop > HL Loop Pack > HL Loop > PID
Product/Item Description
OptionalMax use 200
—
Example
HL Loop end
HL Loop Pack end
MAN
1900
Detail > HL Loop > HL Loop > HL Loop Tare > MAN
Marks and Numbers Information
RequiredMax use >1
—
Usage notes
—
Example
HL Loop
RequiredMax 1
Usage notes
—
HL
0100
Detail > HL Loop > HL Loop > HL Loop Tare > HL Loop > HL
Hierarchical Level
RequiredMax use 1
—
Example
LIN
0200
Detail > HL Loop > HL Loop > HL Loop Tare > HL Loop > LIN
Item Identification
RequiredMax use 1
—
Example
If either Product/Service ID Qualifier (LIN-04) or Product/Service ID (LIN-05) is present, then the other is required
—
Usage notes
—
- EN
- EAN/UCC - 13
- EO
- EAN/UCC - 8
- IB
- International Standard Book Number (ISBN)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
—
- LT
- Lot Number
- VA
- Vendor's Style Number
- VC
- Vendor's (Seller's) Catalog Number
SN1
0300
Detail > HL Loop > HL Loop > HL Loop Tare > HL Loop > SN1
Item Detail (Shipment)
RequiredMax use 1
—
Example
PO4
0600
Detail > HL Loop > HL Loop > HL Loop Tare > HL Loop > PO4
Item Physical Details
OptionalMax use 1
—
Usage notes
—
Example
If either Size (PO4-02) or Unit or Basis for Measurement Code (PO4-03) is present, then the other is required
If either Gross Volume per Pack (PO4-08) or Unit or Basis for Measurement Code (PO4-09) is present, then the other is required
PID
0700
Detail > HL Loop > HL Loop > HL Loop Tare > HL Loop > PID
Product/Item Description
OptionalMax use 200
—
Example
HL Loop end
HL Loop Tare end
HL Loop end
HL Loop end
Detail end
Summary
Summary end
EDI Samples
Sample from AAFES 1
ST*856*0456~
BSN*00*SSH271019*20150422*185100*0001~
HL*1**S~
TD1*CTN*3****G*6.9*LB~
TD5****M*FEDEXGROUND~
REF*CN*SPR0271017~
REF*BM*912273936811941~
DTM*011*20150422~
FOB*CC~
N1*ST*1059967*92*1059967~
N1*SF*VENDOR NAME*1*VENDOR DUNS#~
HL*2*1*O~
PRF*0070340956***20150415~
N1*Z7**92*1771001~
HL*3*2*P~
MAN*GM*00000379770085821186~
HL*4*3*I~
LIN**UP*037977100266~
SN1**18*EA~
HL*5*2*P~
MAN*GM*00000379770085821193~
HL*6*5*I~
LIN**UP*037977100266~
SN1**18*EA~
CTT*6~
SE*26*0456~
BSN*00*SSH271019*20150422*185100*0001~
HL*1**S~
TD1*CTN*3****G*6.9*LB~
TD5****M*FEDEXGROUND~
REF*CN*SPR0271017~
REF*BM*912273936811941~
DTM*011*20150422~
FOB*CC~
N1*ST*1059967*92*1059967~
N1*SF*VENDOR NAME*1*VENDOR DUNS#~
HL*2*1*O~
PRF*0070340956***20150415~
N1*Z7**92*1771001~
HL*3*2*P~
MAN*GM*00000379770085821186~
HL*4*3*I~
LIN**UP*037977100266~
SN1**18*EA~
HL*5*2*P~
MAN*GM*00000379770085821193~
HL*6*5*I~
LIN**UP*037977100266~
SN1**18*EA~
CTT*6~
SE*26*0456~
Sample from AAFES 2
ST*856*0780~
BSN*00*36051*20150428*1605*0001~
HL*1**S~
TD1*CTN*2****G*10*LB~
TD5*O**RDWY*M*446-729532-X*PR~
REF*BM*446-729532-X~
DTM*011*20150427~
FOB*PP~
N1*SF*VENDOR NAME*1*VENDOR DUNS#~
N1*ST**92*1059902~
HL*2*1*O~
PRF*0069423665***20150123~
N1*BY**92*1059902~
HL*3*2*P~
MAN*GM*00000639540000047859~
HL*4*3*I~
LIN**UP*043589347630*VA*23842DL~
SN1**24*EA~
PID*F****AF CAP WM FLT OFF 25~
HL*5*2*P~
MAN*GM*00000639540000047866~
HL*6*5*I~
LIN**UP*043589347555*VA*23842DL~
SN1**24*EA~
PID*F****AF CAP WM FLT OFF 21~
CTT*6~
SE*27*0780~
BSN*00*36051*20150428*1605*0001~
HL*1**S~
TD1*CTN*2****G*10*LB~
TD5*O**RDWY*M*446-729532-X*PR~
REF*BM*446-729532-X~
DTM*011*20150427~
FOB*PP~
N1*SF*VENDOR NAME*1*VENDOR DUNS#~
N1*ST**92*1059902~
HL*2*1*O~
PRF*0069423665***20150123~
N1*BY**92*1059902~
HL*3*2*P~
MAN*GM*00000639540000047859~
HL*4*3*I~
LIN**UP*043589347630*VA*23842DL~
SN1**24*EA~
PID*F****AF CAP WM FLT OFF 25~
HL*5*2*P~
MAN*GM*00000639540000047866~
HL*6*5*I~
LIN**UP*043589347555*VA*23842DL~
SN1**24*EA~
PID*F****AF CAP WM FLT OFF 21~
CTT*6~
SE*27*0780~
Stedi is a registered trademark of Stedi, Inc. All names, logos, and brands of third parties listed on this page are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.