
AAFES 824 Exchange Application Advice
AAFES · X12 005010
The AAFES 824 is the application advice a trading partner sends to report errors in a document it received.
AAFES’s published 824 specification, rendered as an interactive guide. Expand any segment to see its elements, data types, lengths and accepted codes — then validate your own document against it below.
Specification
7 of 7 segments
HEADING
ST
Transaction Set Header ST
pos 0100
Optional
max —
BGN
Beginning Segment BGN
BGN*00*2014120234413268 0068565960*20141202~
pos 0200
Required
max —
N1 LoopMessage Fromvariant 1 of 2required
N1
Party Identification N1
Example:
N1*FR* HQ - Army/Air Force Exch SVC *92*1018542~
pos 0300
Required
max —
N1 LoopMessage Tovariant 2 of 2required
N1
Party Identification N1
Example:
N1*TO*STACY ABC*9*0010111110000~
pos 0300
Required
max —
DETAIL
OTI Looprequired
OTI
Original Transaction Identification OTI
pos 0100
Required
max —
TED Looprequired
TED
Technical Error Description TED
Separate iterations of the TED loop should be generated for each error condition
detected.
TED02 will consist of error message only.
Examples:
***** 810 *****
TED*007*INVOICE NUMBER (BIG02) IS REQUIRED.~
***** 856 *****
TED*848*SHIPMENT ID # (BSN02) IS INVALID, MUST BE 2 - 30 CHARACTERS~
***** 210 *****
TED*848*B302 IS INVALID, MUST BE UPPER CASE A-Z, 0-9, OR DASH '-'~
***** 214 *****
TED*848*THE SCAC CODE (B1003) IS INVALID, MUST BE 4 CHARACTERS~
***** 753 *****
TED*848*REFERENCE ID (BGN02) IS INVALID, MUST BE 1 - 50 CHARACTERS~
***** 990 *****
TED*007*SHIPMNT ID NUM (B102) IS REQUIRED, MUST BE 1 - 30 CHARACTERS~
pos 0700
Required
max —
SE
Transaction Set Trailer SE
pos 0900
Optional
max —
Validate your 824
Paste or upload a document and check it against AAFES’s published rules — segment order and repetition, required elements, field lengths, data types and accepted codes. Nothing is stored.
Go live on AAFES’s 824 in days, not months
Connect this guide to your accounting system and test with AAFES yourself, or leave the mapping and the test cycle to us, at no extra charge.