865 - Purchase order change acknowledgment/request
This topic describes the Electronic Data Interchange (EDI) standards that Business Transaction Intelligence implements for document type 865, or purchase order change acknowledgment, which is used by sellers to confirm they have received a purchase order change.
Segment: BCA - Beginning segment for purchase order change acknowledgment
Loop
Level: Heading
Usage: Must use
Semantic notes:
- BCA03 - The purchase order number of the buyer
- BCA06 - The date of the original purchase order.
- BCA10 - The acknowledgment date for the 860 message.
- BCA11 - The purchase order change request date.
- BCA13 – Either change to purchase order (CP) or change to release number (CR).
Reference | Element name | Requirement | Usage |
---|---|---|---|
BCA01 | Transaction Set Purpose Code | Mandatory | Must use |
BCA02 | Acknowledgment Type | Optional | Used |
BCA03 | Purchase Order Number | Mandatory | Must use |
BCA04 | Release Number | Optional | Not used |
BCA05 | Change Order Sequence Number | Optional | Used |
BCA06 | Date | Mandatory | Must use |
BCA07 | Request Reference Number | Optional | Not used |
BCA08 | Contract Number | Optional | Not used |
BCA09 | Reference Identification | Optional | Not used |
BCA10 | Date | Optional | Used |
BCA11 | Date | Optional | Used |
BCA12 | Date | Optional | Not used |
BCA13 | Purchase Order Type Code | Optional | Used |
Segment: CUR - Currency
Loop
Level: Heading
Usage: Optional - Used
Comment: This segment specifies the currency used in a transaction.
Reference | Element name | Requirement | Usage |
---|---|---|---|
CUR01 | Entity Identifier Code | Mandatory | Must use |
CUR02 | Currency Code | Mandatory | Must use |
Segment: DTM - Date/time reference
Loop
Level: Heading
Usage: Optional - Used
Syntax note:
- DTM02 is required if DTM01 is specified.
Semantic notes:
- The first date that has one of the listed qualifiers in the DTM01 field is captured as the
estimated ship date. The estimated ship date is used to determine if a shipment is going to be late.
These are the codes that are used to qualify estimated ship dates:
- 038 - Ship no later than
- 039 - Ship week of
- 066 - First scheduled ship
- 068 - Current scheduled ship
- 079 - Promised for shipment
- 083 - Scheduled for shipment (prior to and including)
- 085 - Promised for shipment (prior to and including)
- 086 - Scheduled for shipment (week of)
- 088 - Promised for shipment (week of)
- 110 - Originally scheduled ship
- 175 - Cancel if not shipped by
- The first date that has one of the listed qualifiers in the DTM01 field is captured as the
delivery date. The delivery date is used to determine when a shipment missed its delivery window.
These are the codes that are used to qualify delivery dates:
- 017 - Estimated delivery
- 067 - Current scheduled delivery
- 069 - Promised for delivery
- 072 - Requested for delivery (after and including)
- 075 - Promised for delivery (prior to and including)
Reference | Element name | Requirement | Usage |
---|---|---|---|
DTM01 | Date / Time Qualifier | Mandatory | Must use |
DTM02 | Date | Optional | Used |
Segment: N1 - Name
Loop: N1
Level: Header
Usage: Optional
Syntax note:
- This segment is only used if the N101 qualifier field is equal to Ship to (ST) or Bill to Party (BT).
Semantic notes:
- If N101 is equal to ST, N102 is the name of the recipient.
- If N101 is equal to BT, N102 is the name of the billing party.
Reference | Element name | Requirement | Usage |
---|---|---|---|
N101 | Entity Identifier Code | Mandatory | Must use |
N102 | Name | Optional | Used |
Segment: N3 - Address information
Loop: N1
Level: Header
Usage: Optional
Syntax notes:
- This segment is only used if the N101 qualifier field is equal to ST or BT.
Semantic notes:
- If N101 is equal to ST, N301 is the street address of the recipient.
- If N101 is equal to BT, N301 is the street address of the billing party.
Reference | Element name | Requirement | Usage |
---|---|---|---|
N301 | Name | Mandatory | Must use |
Segment: N4 - Geographic location
Loop: N1
Level: Header
Usage: Optional
Syntax note:
- This segment is only used if the N101 qualifier field is equal to ST or BT.
Semantic notes:
- If N101 is equal to ST, N401 is the geographic location of the recipient.
- If N101 is equal to BT, N401 is the geographic location of the billing party.
Reference | Element name | Requirement | Usage |
---|---|---|---|
N401 | City Name | Optional | Used |
N402 | State or Providence Code | Optional | Used |
N403 | Postal Code | Optional | Used |
N404 | Country Code | Optional | Used |
N405 | Location Qualifier | Optional | Used |
N406 | Location Identifier | Optional | Used |
Segment: POC - Line item change
Loop: POC
Level: Detail
Usage: Optional - Used
Syntax notes:
- POC01 is mandatory if POC02 equals CA, DI, PQ, QC, QD, or QI.
- POC04 is mandatory if POC02 is related to a line item quantity change.
- POC03 is mandatory if POC02 equals QD or QI.
- POC06 is mandatory if POC02 is related to a line item quantity change.
- POC07 is mandatory if POC02 is related to a line item quantity change.
- If POC08 is specified, POC09 is required.
- If POC10 is specified, POC11 is required.
- If POC12 is specified, POC13 is required.
- If POC14 is specified, POC15 is required.
- If POC16 is specified, POC17 is required.
- If POC18 is specified, POC19 is required.
- If POC20 is specified, POC21 is required.
- If POC22 is specified, POC23 is required.
- If POC24 is specified, POC25 is required.
- If POC26 is specified, POC27 is required.
Semantic notes:
- POCO1 is the line number from the original purchase order.
- If POC02 equals Add item (AI), POC01 is used if it is provided. If POC01 is missing, a line number is assigned.
- POC04 represents the new quantity to be used if POC02 equals CA, PQ, or QC.
- If POC02 equals QD or QI, POC04 is used with POC03 to calculate the new quantity.
- If POC02 is related to a line item quantity change, POC07 is used with POC06 to calculate line item amount. If POC07 is missing for a quantity change, POC07 defaults to Price for each (PE).
- The first UPC qualifier that is found in this list is used. The following product/service ID
qualifiers are UPC-related :
- U2 - UPC/EAN shipping container code (1-2-5-5-1)
- UA - UPC/EAN case code (2-5-5)
- UD - UPC/EAN consumer package code (2-5-5)
- UI - UPC consumer package code (1-5-5)
- UK - GTIN (14 digits) - UPC/EAN shipping container code (1-2-5-5-1)
- UP - UPC consumer package code (1-5-5-1)
- UN - UPC/EAN Case Code Number (1-1-5-5)
- Seller/supplier qualifiers are preferred over buyer qualifiers. The first seller/supplier
qualifier that is found (MG-VP) in the list is used. If a seller/supplier qualifier is not found,
the first found buyer qualifier is used. The following product number or ID-related product/service
ID qualifiers are seller or buyer-related:
- MG - the part number of the manufacturer
- PI - the item code of the purchaser
- SK - stock keeping unit
- VC - the catalog number of the vendor (seller)
- VN - the item number of the vendor (seller)
- VP - the part number of the vendor (seller)
- BP - the part number of the buyer
- CB - the catalog number of the buyer
- IN - the item number of the buyer
Reference | Element name | Requirement | Usage |
---|---|---|---|
POC01 | Assigned Identification | Optional | Used |
POC02 | Change or Response Type Code | Mandatory | Must use |
POC03 | Quantity Ordered | Optional | Used |
POC04 | Quantity Left to Receive | Optional | Used |
POC05 | Unit of Measure Composite | Optional | Used |
POC06 | Unit Price | Optional | Used |
POC07 | Basis of Unit Price Code | Optional | Used |
POC08 | Product/Service ID Qualifier | Optional | Used |
POC09 | Product/Service ID | Optional | Used |
POC10 | Product/Service ID Qualifier | Optional | Used |
POC11 | Product/Service ID | Optional | Used |
POC12 | Product/Service ID Qualifier | Optional | Used |
POC13 | Product/Service ID | Optional | Used |
POC14 | Product/Service ID Qualifier | Optional | Used |
POC15 | Product/Service ID | Optional | Used |
POC16 | Product/Service ID Qualifier | Optional | Used |
POC17 | Product/Service ID | Optional | Used |
POC18 | Product/Service ID Qualifier | Optional | Used |
POC19 | Product/Service ID | Optional | Used |
POC20 | Product/Service ID Qualifier | Optional | Used |
POC21 | Product/Service ID | Optional | Used |
POC22 | Product/Service ID Qualifier | Optional | Used |
POC23 | Product/Service ID | Optional | Used |
POC24 | Product/Service ID Qualifier | Optional | Used |
POC25 | Product/Service ID | Optional | Used |
POC26 | Product/Service ID Qualifier | Optional | Used |
POC27 | Product/Service ID | Optional | Used |
Segment: ACK - Line item acknowledgment
Loop: POC/ACK
Level: Detail
Usage: Optional - Used
- If ACK01 is IQ, ACK02 is required.
- If ACK01 is set to one of the following qualifiers and ACK02 is present, then the quantity
acknowledged is pulled from ACK02.
- IC - Item Accepted - Changes made
- IQ - Item Accepted - Quantity changed
- If ACK01 is set to IC or IQ but ACK02 is missing, then the quantity acknowledged is pulled from POC03.
- If ACK01 is not set to IC or IQ, then the quantity acknowledged is pulled from POC03.
Reference | Element name | Requirement | Usage |
---|---|---|---|
ACK01 | Line Item Status Code | Mandatory | Must use |
ACK02 | Quantity | Optional | Used |
ACK03 | Unit or Basis for measurement | Optional | Not used |
ACK04 | Date/time qualifier | Optional | Not used |
ACK05 | Date | Optional | Not used |
ACK06 | Request Reference number | Optional | Not used |
Segment: SLN - Subline item detail
Loop: PO1/SLN
Level: Detail
Usage: Optional - Used
Syntax notes:
- If SLN09 is specified, SLN10 is required.
- If SLN11 is specified, SLN12 is required.
- If SLN13 is specified, SLN14 is required.
- If SLN15 is specified, SLN16 is required.
- If SLN17 is specified, SLN18 is required.
- If SLN19 is specified, SLN20 is required.
- If SLN21 is specified, SLN22 is required.
- If SLN23 is specified, SLN24 is required.
- If SLN25 is specified, SLN26 is required.
- If SLN27 is specified, SLN28 is required.
Semantic notes:
- The first UPC qualifier that is found in this list is used. The following product/service ID
qualifiers are UPC-related :
- U2 - UPC/EAN shipping container code (1-2-5-5-1)
- UA - UPC/EAN case code (2-5-5)
- UD - UPC/EAN consumer package code (2-5-5)
- UI - UPC consumer package code (1-5-5)
- UK - GTIN (14 digits) - UPC/EAN shipping container code (1-2-5-5-1)
- UP - UPC consumer package code (1-5-5-1)
- UN - UPC/EAN Case Code Number (1-1-5-5)
- Seller/supplier qualifiers are preferred over buyer qualifiers. The first seller/supplier
qualifier that is found (MG-VP) in the list is used. If a seller/supplier qualifier is not found,
the first found buyer qualifier is used. The following product number or ID-related product/service
ID qualifiers are seller or buyer-related:
- MG - the part number of the manufacturer
- PI - the item code of the purchaser
- SK - stock keeping unit
- VC - the catalog number of the vendor (seller)
- VN - the item number of the vendor (seller)
- VP - the part number of the vendor (seller)
- BP - the part number of the buyer
- CB - the catalog number of the buyer
- IN - the item number of the buyer
Reference | Element name | Requirement | Usage |
---|---|---|---|
SLN01 | Assigned Identification | Mandatory | Must use |
SLN02 | Assigned Identification | Optional | Used |
SLN03 | Relationship Code | Mandatory | Must use |
SLN04 | Quantity | Optional | Used |
SLN05 | Unit of Measure | Optional | Used |
SLN06 | Unit Price | Optional | Used |
SLN07 | Basis Of Unit Price | Optional | Not used |
SLN08 | Relationship Code | Optional | Not used |
SLN09 | Product/Service ID Qualifier | Optional | Used |
SLN10 | Product/Service ID | Optional | Used |
SLN11 | Product/Service ID Qualifier | Optional | Used |
SLN12 | Product/Service ID | Optional | Used |
SLN13 | Product/Service ID Qualifier | Optional | Used |
SLN14 | Product/Service ID | Optional | Used |
SLN15 | Product/Service ID Qualifier | Optional | Used |
SLN16 | Product/Service ID | Optional | Used |
SLN17 | Product/Service ID Qualifier | Optional | Used |
SLN18 | Product/Service ID | Optional | Used |
SLN19 | Product/Service ID Qualifier | Optional | Used |
SLN20 | Product/Service ID | Optional | Used |
SLN21 | Product/Service ID Qualifier | Optional | Used |
SLN22 | Product/Service ID | Optional | Used |
SLN23 | Product/Service ID Qualifier | Optional | Used |
SLN24 | Product/Service ID | Optional | Used |
SLN25 | Product/Service ID Qualifier | Optional | Used |
SLN26 | Product/Service ID | Optional | Used |
SLN27 | Product/Service ID Qualifier | Optional | Used |
SLN28 | Product/Service ID | Optional | Used |
Segment: PID - Product / item description
Loop: PO1/SLN
Level: Detail
Usage: Optional - Used
Semantic note:
- PID01 is set to Free Form (F).
- PID05 is the description that is associated with the SLN line item.
- The first PID instance is used.
Reference | Element name | Requirement | Usage |
---|---|---|---|
PID01 | Item Description Type | Mandatory | Must use |
PID02 | Product/Process Characteristic Code | Optional | Not used |
PID03 | Agency Qualifier Code | Optional | Not used |
PID04 | Product Description Code | Optional | Not used |
PID05 | Description | Optional | Must use |
Segment: CTT - Transaction totals
Loop
Level: Summary
Usage: Optional - Used
- CTT01 is the number of POC segments in a transaction.
Reference | Element name | Requirement | Usage |
---|---|---|---|
CTT01 | Number of Line Items | Mandatory | Must use |