X12 824 Application Advice
This Draft Standard for Trial Use contains the format and establishes the data contents of the Application Advice Transaction Set (824) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to provide the ability to report the results of an application system's data content edits of transaction sets. The results of editing transaction sets can be reported at the functional group and transaction set level, in either coded or free-form format. It is designed to accommodate the business need of reporting the acceptance, rejection or acceptance with change of any transaction set. The Application Advice should not be used in place of a transaction set designed as a specific response to another transaction set (e.g., purchase order acknowledgment sent in response to a purchase order).
- ~ Segment
- * Element
- > Component
- ^ Repetition
Interchange Control Header
To start and identify an interchange of zero or more functional groups and interchange-related control segments
Code identifying the type of information in the Authorization Information
- 00
- No Authorization Information Present (No Meaningful Information in I02)
Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier (I01)
Code identifying the type of information in the Security Information
- 00
- No Security Information Present (No Meaningful Information in I04)
This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier (I03)
Code indicating the system/method of code structure used to designate the sender or receiver ID element being qualified
Identification code published by the sender for other parties to use as the receiver ID to route data to them; the sender always codes this value in the sender ID element
Code indicating the system/method of code structure used to designate the sender or receiver ID element being qualified
Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties sending to them will use this as a receiving ID to route data to them
Type is not applicable; the repetition separator is a delimiter and not a data element; this field provides the delimiter used to separate repeated occurrences of a simple data element or a composite data structure; this value must be different than the data element separator, component element separator, and the segment terminator
- ^
- Repetition Separator
Code specifying the version number of the interchange control segments
- 00403
- Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1999
A control number assigned by the interchange sender
Code indicating sender's request for an interchange acknowledgment
- 0
- No Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested
Code indicating whether data enclosed by this interchange envelope is test, production or information
- I
- Information
- P
- Production Data
- T
- Test Data
Type is not applicable; the component element separator is a delimiter and not a data element; this field provides the delimiter used to separate component data elements within a composite data structure; this value must be different than the data element separator and the segment terminator
- >
- Component Element Separator
Functional Group Header
To indicate the beginning of a functional group and to provide control information
Code identifying a group of application related transaction sets
- AG
- Application Advice (824)
Code identifying party sending transmission; codes agreed to by trading partners
Code identifying party receiving transmission; codes agreed to by trading partners
Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year
Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)
Assigned number originated and maintained by the sender
Code identifying the issuer of the standard; this code is used in conjunction with Data Element 480
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Code indicating the version, release, subrelease, and industry identifier of the EDI standard being used, including the GS and GE segments; if code in DE455 in GS segment is X, then in DE 480 positions 1-3 are the version number; positions 4-6 are the release and subrelease, level of the version; and positions 7-12 are the industry or trade association identifiers (optionally assigned by user); if code in DE455 in GS segment is T, then other formats are allowed
- 004030
- Draft Standards Approved for Publication by ASC X12 Procedures Review Board through October 1999
Heading
Transaction Set Header
To indicate the start of a transaction set and to assign a control number
Code uniquely identifying a Transaction Set
- The transaction set identifier (ST01) is used by the translation routines of the interchange partners to select the appropriate transaction set definition (e.g., 810 selects the Invoice Transaction Set).
- 824
- Application Advice
Beginning Segment
To indicate the beginning of a transaction set
BGN340202221*20130323~
Code identifying purpose of transaction set
- 00
- Original
ORIGINAL (from TS810 or TS855)
- 12
- Not Processed
- 34
- Payment Declined
Payment Declined from TS 880
Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier
- BGN02 is the transaction set reference number.
Vendor's invoice number or foreign PO number.
Name
To identify a party by type of organization, name, and code
N1FRSAFEWAY INC90091372091700~
Code identifying an organizational entity, a physical location, property or an individual
- FR
- Message From
Code designating the system/method of code structure used for Identification Code (67)
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
Code identifying a party or other code
- This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
009127209XXXX = SAFEWAY DUNS #
DUNS Listing: http://suppliers.safeway.com/pdf/pdf_us/DunsListing-USA.pdf
Administrative Communications Contact
To identify a person or office to whom administrative communications should be directed
PERAAECR/EDI DEPARTMENTTE925-467-3197EMECREDI@SAFEWAY.COM~
Code identifying the major duty or responsibility of the person or group named
- AA
- Authorized Representative
Code identifying the type of communication number
- TE
- Telephone
Complete communications number including country or area code when applicable
925-467-3197
Code identifying the type of communication number
- EM
- Electronic Mail
Complete communications number including country or area code when applicable
Name
To identify a party by type of organization, name, and code
N1TOXYZ SUPPLIER CORP91234567890000~
Code identifying an organizational entity, a physical location, property or an individual
- TO
- Message To
Code designating the system/method of code structure used for Identification Code (67)
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
Code identifying a party or other code
- This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
009127209XXXX = SAFEWAY DUNS #
DUNS Listing: http://suppliers.safeway.com/pdf/pdf_us/DunsListing-USA.pdf
Administrative Communications Contact
To identify a person or office to whom administrative communications should be directed
PERAAECR/EDI DEPARTMENTTE925-467-3197EMECREDI@SAFEWAY.COM~
Code identifying the major duty or responsibility of the person or group named
- AA
- Authorized Representative
Code identifying the type of communication number
- TE
- Telephone
Complete communications number including country or area code when applicable
925-467-3197
Code identifying the type of communication number
- EM
- Electronic Mail
Complete communications number including country or area code when applicable
Name
To identify a party by type of organization, name, and code
N1PEXYZ SUPPLIER CORP91234567890000~ (for invoice only)
Code identifying an organizational entity, a physical location, property or an individual
- PE
- Payee
Code designating the system/method of code structure used for Identification Code (67)
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
Code identifying a party or other code
- This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
009127209XXXX = SAFEWAY DUNS #
DUNS Listing: http://suppliers.safeway.com/pdf/pdf_us/DunsListing-USA.pdf
Administrative Communications Contact
To identify a person or office to whom administrative communications should be directed
PERAAECR/EDI DEPARTMENTTE925-467-3197EMECREDI@SAFEWAY.COM~
Code identifying the major duty or responsibility of the person or group named
- AA
- Authorized Representative
Code identifying the type of communication number
- TE
- Telephone
Complete communications number including country or area code when applicable
925-467-3197
Code identifying the type of communication number
- EM
- Electronic Mail
Complete communications number including country or area code when applicable
Detail
Original Transaction Identification
To identify the edited transaction set and the level at which the results of the edit are reported, and to indicate the accepted, rejected, or accepted-with-change edit result
- The OTI loop is intended to provide a unique identification of the transaction set that is the subject of this application acknowledgment.
OTITRTN0202221777888999980197211932013032109305520055200010810~
Code indicating the application system edit results of the business data
- TR
- Transaction Set Reject
Code qualifying the Reference Identification
- OTI02 contains the qualifier identifying the business transaction from the original business application, and OTI03 will contain the original business application identification.
OTI02 identifies error transaction set's key field. For example, TransactionSet 810's key field is invoice number and Transaction Set 850's key field is purchase order number.
- TN
- Transaction Reference Number
The actual business application identification number for the transaction will be inOTI03, e.g. purchase order number, invoice number, ship notice number, etc.
Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier
- OTI03 is the primary reference identification or number used to uniquely identify the original transaction set.
VENDOR’S INVOICE or FPO NUMBER.
Code identifying party sending transmission; codes agreed to by trading partners
- If used, OTI04 through OTI08 will contain values from the original electronic functional group generated by the sender.
OTI04 contains GS02 data contents from the original functional group generated by the sender.
Code identifying party receiving transmission; codes agreed to by trading partners
OTI05 contains GS03 data contents from the original functional group generated by the sender.
Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year
- OTI06 is the group date.
OTI06 contains GS04 data contents from the original functional group generated by the sender.
Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)
- OTI07 is the group time.
OTI07 contains GS05 data contents from the original functional group generated by the sender.
Assigned number originated and maintained by the sender
OTI08 contains GS06 data contents from the original functional group generated by the sender.
Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set
- If used, OTI09 through OTI10 will contain values from the original electronic transaction set generated by the sender.
OTI09 contains ST02 data contents from the original transaction set header generated by the sender.
Code uniquely identifying a Transaction Set
OTI10 contains ST01 data contents from the original transaction set header generated by the sender. If the original document was not an EDI transaction, use the appropriate code that would have been in ST01, e.g. paper invoice would be 810.
- 810
- Invoice
- 855
- Purchase Order Acknowledgment
- 880
- Grocery Products Invoice
Invoice Date
To specify pertinent dates and times
- The DTM segment allows for the provision of date, time, or date and time information required to uniquely identify the original transaction set.
DTM00320130319~
Code specifying type of date or time, or both date and time
003 = INVOICE DATE (from TS810 or TS880)
- 003
- Invoice
Process Date
To specify pertinent dates and times
- The DTM segment allows for the provision of date, time, or date and time information required to uniquely identify the original transaction set.
DTM00920130319~
Code specifying type of date or time, or both date and time
009 = PO DATE (from TS855)
- 009
- Process
Settlement Date as Specified by the Originator
To specify pertinent dates and times
- The DTM segment allows for the provision of date, time, or date and time information required to uniquely identify the original transaction set.
DTM04420130319~
Code specifying type of date or time, or both date and time
044 = SETTLEMENT DATE (from TS810)
- 044
- Settlement Date as Specified by the Originator
Monetary Amount
To indicate the total monetary amount
- The AMT segment should be utilized if monetary amount information is important to the unique identification of the original transaction set.
AMTTP22234.8~
Quantity
To specify quantity information
- The QTY segment should be utilized if quantity information is important to the unique identification of the original transaction set.
QTY5360~
Technical Error Description
To identify the error and, if feasible, the erroneous segment, or data element, or both
TED012INVALID SHIP-TO OR INVALID PO NUMBER*****SHIP-TO DUNS SUFFIX/PO# (1922/912938)~
Code indicating application error condition
- 008
- Out of Range
OUT OF RANGE (PO number TS855)
- 009
- Invalid Date
INVALID DATE (from TS880)
- 010
- Total Out of Balance
TOTAL OUT OF BALANCE (from TS880)
- 012
- Invalid Combination
INVALID COMBINATION (from TS880)
- 024
- Other Unlisted Reason
OTHER UNLISTED REASON (from TS880 or TS855)
- 813
- Missing or Invalid Payee Name and Address
MISSING or INVALID NAME/ADDRESS (from TS880)
- MF
- Missing or Invalid Internal Vendor Number
MISSING / INVALID VENDOR NUMBER
- MG
- Missing or Invalid U.P.C. Code
MISSING OR INVALID UPC
- MH
- Missing or Invalid DUNS Number
MISSING OR INVALID DUNS NUMBER
- P
- Missing or Invalid Item Quantity
MISSING OR INVALIDITEM QUANTITY
- Q
- Missing or Invalid Item Identification
MISSING OR INVALID ITEM IDENTITY
Free-form text
- If used, TED02 will contain a generic description of the data in error (e.g., part number, date, reference number, etc.).
SAFEWAY GENERATED ERROR MESSAGE
Note/Special Instruction
To transmit information in a free-form format, if necessary, for comment or special instruction
NTEGENCONTACT BROKER OR ORDER ENTRY DEPARTMENT~
NTEGENPLEASE CORRECT INVOICE(S) & RETRANSMIT EDI. PAPER INVOICES WILL NOT BE ACCEPTED.~
Code identifying the functional area or purpose for which the note applies
- GEN
- Entire Transaction Set
Transaction Set Trailer
To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)
Total number of segments included in a transaction set including ST and SE segments
Functional Group Trailer
To indicate the end of a functional group and to provide control information
Total number of transaction sets included in the functional group or interchange (transmission) group terminated by the trailer containing this data element
Interchange Control Trailer
To define the end of an interchange of zero or more functional groups and interchange-related control segments
FOR REJECTED 855
BGN*12*326654*20140211~
N1*FR*SAFEWAY INC*9*0091372091700~
N1*TO*XXX Foods*9*0019990350000~
PER*AA*ECR/EDI DEPARTMENT*TE*925-467-3197*EM*ECREDI@SAFEWAY.COM~
OTI*TR*TN*326654*7162256XXX*8019721193*20140210*1900*16489*164890001*855~
DTM*009*20140210~
AMT**0~
TED*024*075928367321 ORDER UNIT OF MEASURE NOT 'CA', 'EA' OR 'PL'*****XX~
NTE*GEN*ORDER UNIT OF MEASURE NOT 'CA', 'EA' OR 'PL'~
SE*11*00011001~
ST*824*00011002~
BGN*12*326658*20040211~
N1*FR*SAFEWAY INC*9*0091372091700~
N1*TO*XXX Foods*9*0099990350000~
PER*AA*ECR/EDI DEPARTMENT*TE*925-467-3197*EM*ECREDI@SAFEWAY.COM~
OTI*TR*TN*326658*7162256XXX*8019721193*20140210*1900*16489*164890005*855~
DTM*009*20140210~
AMT**0~
TED*008*326658 PO NUMBER NOT IN ASSIGNED RANGE~
NTE*GEN*PO NUMBER NOT IN ASSIGNED RANGE – ORDER IS REJECTED~
TED*024*000099999999 ITEM QUANTITY NOT NUMERIC*****9999R~
NTE*GEN*ITEM QUANTITY NOT NUMERIC -- ITEM IS REJECTED~
TED*024*004470009219 UPC QUALIFIER NOT 'UA'*****AA~
NTE*GEN*UPC QUALIFIER NOT 'UA' – ITEM IS REJECTED~
SE*15*00011002~
FOR REJECTED INVOICE
BGN*34*0202221*20030323~
N1*FR*SAFEWAY INC*9*0091372091700~
N1*TO*XYZ SUPPLIER*9*1234567890000~
N1*PE*XYZ SUPPLIER*9*1234567890000~
PER*AA*ECR/EDI DEPARTMENT*TE*925-467-3197*EM*ECREDI@SAFEWAY.COM~
OTI*TR*TN*0202221*7778889999*8019721193*20030321*0930*5520*055200010*810~
DTM*003*20130319~
AMT*TP*22234.8~
QTY*53*60~
TED*012*INVALID SHIP-TO OR INVALID PO NUMBER*****SHIP-TO DUNS SUFFIX/PO # (1922/912938)~
NTE*GEN*CONTACT BROKER OR ORDER ENTRY DEPARTMENT~
NTE*GEN*PLEASE CORRECT INVOICE(S) & RETRANSMIT EDI. PAPER INVOICES WILL NOT BE ACCEPTED.~
SE*14*00917001~
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.