AAFES (Army and Air Force Exchange Service) X12 850 Purchase Order

AAFES

3 schema elements found

This Draft Standard schema for Trial Use contains the format and data contents of the schema for use within the context of an Electronic Data Interchange (EDI) environment.

ISA

ISA

Interchange Control Header

MMax: 1

To start and identify an interchange of zero or more functional groups and interchange-related control segments

ISA01
Authorization Information Qualifier
MIDMIN 2 MAX 2ID: I01

Code identifying the type of information in the Authorization Information

ISA02
Authorization Information
MANMIN 10 MAX 10ID: 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)

ISA03
Security Information Qualifier
MIDMIN 2 MAX 2ID: I03

Code identifying the type of information in the Security Information

ISA04
Security Information
MANMIN 10 MAX 10ID: 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)

ISA05
Interchange ID Qualifier
MIDMIN 2 MAX 2ID: I05

Code indicating the system/method of code structure used to designate the sender or receiver ID element being qualified

ISA06
Interchange Sender ID
MANMIN 15 MAX 15ID: I06

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

ISA07
Interchange ID Qualifier
MIDMIN 2 MAX 2ID: I05

Code indicating the system/method of code structure used to designate the sender or receiver ID element being qualified

ISA08
Interchange Receiver ID
MANMIN 15 MAX 15ID: I07

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

ISA09
Interchange Date
MDTMIN 6 MAX 6ID: I08

Date of the interchange

ISA10
Interchange Time
MTMMIN 4 MAX 4ID: I09

Time of the interchange

ISA11
Repetition Separator
MMIN 1 MAX 1ID: I65

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

ISA12
Interchange Control Version Number
MIDMIN 5 MAX 5ID: I11

Code specifying the version number of the interchange control segments

ISA13
Interchange Control Number
MN0MIN 9 MAX 9ID: I12

A control number assigned by the interchange sender

ISA14
Acknowledgment Requested
MIDMIN 1 MAX 1ID: I13

Code indicating sender's request for an interchange acknowledgment

ISA15
Interchange Usage Indicator
MIDMIN 1 MAX 1ID: I14

Code indicating whether data enclosed by this interchange envelope is test, production or information

ISA16
Component Element Separator
MMIN 1 MAX 1ID: I15

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

GS

GS

Functional Group Header

MMax: 1

To indicate the beginning of a functional group and to provide control information

GS01
Functional Identifier Code
MIDMIN 2 MAX 2ID: 479

Code identifying a group of application related transaction sets

GS02
Application Sender's Code
MANMIN 2 MAX 15ID: 142

Code identifying party sending transmission; codes agreed to by trading partners

GS03
Application Receiver's Code
MANMIN 2 MAX 15ID: 124

Code identifying party receiving transmission; codes agreed to by trading partners

GS04
Date
MDTMIN 8 MAX 8ID: 373

Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year

GS05
Time
MTMMIN 4 MAX 8ID: 337

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)

GS06
Group Control Number
MN0MIN 1 MAX 9ID: 28

Assigned number originated and maintained by the sender

GS07
Responsible Agency Code
MIDMIN 1 MAX 2ID: 455

Code identifying the issuer of the standard; this code is used in conjunction with Data Element 480

GS08
Version / Release / Industry Identifier Code
MANMIN 1 MAX 12ID: 480

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

transactionSets

Loop: transactionSets

ST

Transaction Set Header

MMax: 1Area: 1Seq: 0100

To indicate the start of a transaction set and to assign a control number

ST01
Transaction Set Identifier Code
MIDMIN 3 MAX 3ID: 143

Code uniquely identifying a Transaction Set

850Purchase Order
ST02
Transaction Set Control Number
MANMIN 4 MAX 9ID: 329

Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

BEG

Beginning Segment for Purchase Order

MMax: 1Area: 1Seq: 0200

To indicate the beginning of the Purchase Order Transaction Set and transmit identifying numbers and dates

BEG01
Transaction Set Purpose Code
MIDMIN 2 MAX 2ID: 353

Code identifying purpose of transaction set

00Original
06Confirmation
22Information Copy
BEG02
Purchase Order Type Code
MIDMIN 2 MAX 2ID: 92

Code specifying the type of Purchase Order

PRPromotion
RLRelease or Delivery Order
SAStand-alone Order
ZZMutually Defined
BEG03
Purchase Order Number
MANMIN 1 MAX 22ID: 324

Identifying number for Purchase Order assigned by the orderer/purchaser

BEG05
Date
MDTMIN 8 MAX 8ID: 373

Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year

CUR

Currency

OMax: 1Area: 1Seq: 0400

To specify the currency (dollars, pounds, francs, etc.) used in a transaction

CUR01
Entity Identifier Code
MIDMIN 2 MAX 3ID: 98

Code identifying an organizational entity, a physical location, property or an individual

SESelling Party
CUR02
Currency Code
MIDMIN 3 MAX 3ID: 100

Code (Standard ISO) for country in whose currency the charges are specified

REF

Reference Information

OMax: >1Area: 1Seq: 0500

To specify identifying information

REF01
Reference Identification Qualifier
MIDMIN 2 MAX 3ID: 128

Code qualifying the Reference Identification

IAInternal Vendor Number
REF02
Reference Identification
CANMIN 1 MAX 50ID: 127

Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

PER

Administrative Communications Contact

OMax: 3Area: 1Seq: 0600

To identify a person or office to whom administrative communications should be directed

PER01
Contact Function Code
MIDMIN 2 MAX 2ID: 366

Code identifying the major duty or responsibility of the person or group named

BDBuyer Name or Department
PER02
Name
OANMIN 1 MAX 60ID: 93

Free-form name

PER03
Communication Number Qualifier
CIDMIN 2 MAX 2ID: 365

Code identifying the type of communication number

TETelephone
PER04
Communication Number
CANMIN 1 MAX 256ID: 364

Complete communications number including country or area code when applicable

FOB

F.O.B. Related Instructions

OMax: >1Area: 1Seq: 0800

To specify transportation instructions relating to shipment

FOB01
Shipment Method of Payment
MIDMIN 2 MAX 2ID: 146

Code identifying payment terms for transportation charges

CCCollect
PAAdvance Prepaid
PBCustomer Pickup/Backhaul
PCPrepaid but Charged to Customer
PPPrepaid (by Seller)
FOB02
Location Qualifier
CIDMIN 1 MAX 2ID: 309

Code identifying type of location

CICity
DEDestination (Shipping)
FAFactory
MIMill
OROrigin (Shipping Point)
PLPlant
RGRegion Code
TLTerminal Cargo Location
FOB03
Description
OANMIN 1 MAX 80ID: 352

A free-form description to clarify the related data elements and their content

CSH

Sales Requirements

OMax: 5Area: 1Seq: 1100

To specify general conditions or requirements of the sale

CSH01
Sales Requirement Code
OIDMIN 1 MAX 2ID: 563

Code to identify a specific requirement or agreement of sale

NNo Back Order
YBack Order if Out of Stock

Loop: SAC_loop

Repeat: 25
SAC

Service, Promotion, Allowance, or Charge Information

OMax: 1Area: 1Seq: 1200

To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge

SAC01
Allowance or Charge Indicator
MIDMIN 1 MAX 1ID: 248

Code which indicates an allowance or charge for the service specified

AAllowance
CCharge
SAC02
Service, Promotion, Allowance, or Charge Code
CIDMIN 4 MAX 4ID: 1300

Code identifying the service, promotion, allowance, or charge

A260Advertising Allowance
A630Blocking and Bracing Charge
B190Closing & Sealing
B320Competitive Allowance
B560Container Allowance
B570Container Deposits
C000Defective Allowance
C310Discount
C350Distributor Discount/Allowance
C540Early Buy Allowance
C560Early Ship Allowance
C680Environmental Protection Service
D240Freight
D530Hazardous Cargo Charge
E550Market Development Funds
E800No Return Credit Allowance
F170Pallet Exchange Charge
F190Palletizing
F340Pick/Up
F800Promotional Allowance
F910Quantity Discount
G170Redistribution Allowance
G360Repack Charge
G470Restocking Charge
G870Shrink-Wrap Charge
H000Special Allowance
H660Tax - Federal Excise Tax, FET
H770Tax - State Tax
H920Temporary Allowance
I170Trade Discount
I310Truckload Discount
I410Unsaleable Merchandise Allowance
I530Volume Discount
SAC05
Amount
ON2MIN 1 MAX 15ID: 610

Monetary amount

ITD

Terms of Sale/Deferred Terms of Sale

OMax: >1Area: 1Seq: 1300

To specify terms of sale

ITD01
Terms Type Code
OIDMIN 2 MAX 2ID: 336

Code identifying type of payment terms

01Basic
02End of Month (EOM)
03Fixed Date
04Deferred or Installment
05Discount Not Applicable
06Mixed
07Extended
08Basic Discount Offered
09Proximo
11Elective
1210 Days After End of Month (10 EOM)
14Previously agreed upon
15Special Proximo
ITD03
Terms Discount Percent
ORMIN 1 MAX 6ID: 338

Terms discount percentage, expressed as a percent, available to the purchaser if an invoice is paid on or before the Terms Discount Due Date

ITD04
Terms Discount Due Date
CDTMIN 8 MAX 8ID: 370

Date payment is due if discount is to be earned expressed in format CCYYMMDD where CC represents the first two digits of the calendar year

ITD05
Terms Discount Days Due
CN0MIN 1 MAX 3ID: 351

Number of days in the terms discount period by which payment is due if terms discount is earned

ITD06
Terms Net Due Date
ODTMIN 8 MAX 8ID: 446

Date when total invoice amount becomes due expressed in format CCYYMMDD where CC represents the first two digits of the calendar year

ITD07
Terms Net Days
ON0MIN 1 MAX 3ID: 386

Number of days until total invoice amount is due (discount not applicable)

ITD12
Description
OANMIN 1 MAX 80ID: 352

A free-form description to clarify the related data elements and their content

DTM

Date/Time Reference

OMax: 10Area: 1Seq: 1500

To specify pertinent dates and times

DTM01
Date/Time Qualifier
MIDMIN 3 MAX 3ID: 374

Code specifying type of date or time, or both date and time

002Delivery Requested
010Requested Ship
023Promotion Order - Start
038Ship No Later
077Requested for Delivery (Week of)
DTM02
Date
CDTMIN 8 MAX 8ID: 373

Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year

PKG

Marking, Packaging, Loading

OMax: 200Area: 1Seq: 2200

To describe marking, packaging, loading, and unloading requirements

PKG01
Item Description Type
CIDMIN 1 MAX 1ID: 349

Code indicating the format of a description

FFree-form
PKG02
Packaging Characteristic Code
OIDMIN 1 MAX 5ID: 753

Code specifying the marking, packaging, loading and related characteristics being described

10Shipping Package Labeling
PKG05
Description
CANMIN 1 MAX 80ID: 352

A free-form description to clarify the related data elements and their content

TD1

Carrier Details (Quantity and Weight)

OMax: 2Area: 1Seq: 2300

To specify the transportation details relative to commodity, weight, and quantity

TD103
Commodity Code Qualifier
OIDMIN 1 MAX 1ID: 23

Code identifying the commodity coding system used for Commodity Code

IMilstamp AITC or Water Commodity Code
TD104
Commodity Code
CANMIN 1 MAX 30ID: 22

Code describing a commodity or group of commodities

TD5

Carrier Details (Routing Sequence/Transit Time)

OMax: >1Area: 1Seq: 2400

To specify the carrier and sequence of routing and provide transit time information

TD504
Transportation Method/Type Code
CIDMIN 1 MAX 2ID: 91

Code specifying the method or type of transportation for the shipment

AAir
AFAir Freight
BBarge
BPBook Postal
CConsolidation
DParcel Post
EExpedited Truck
FLMotor (Flatbed)
HCustomer Pickup
ICommon Irregular Carrier
LContract Carrier
LTLess Than Trailer Load (LTL)
MMotor (Common Carrier)
OContainerized Ocean
PPrivate Carrier
QConventional Ocean
RRail
SOcean
SESea/Air
TBest Way (Shippers Option)
UPrivate Parcel Service
XIntermodal (Piggyback)
ZZMutually defined
TD505
Routing
CANMIN 1 MAX 35ID: 387

Free-form description of the routing or requested routing for shipment, or the originating carrier's identity

Loop: N9_loop

Repeat: 1000
N9

Extended Reference Information

OMax: 1Area: 1Seq: 2950

To transmit identifying information as specified by the Reference Identification Qualifier

N901
Reference Identification Qualifier
MIDMIN 2 MAX 3ID: 128

Code qualifying the Reference Identification

AHAgreement Number
N902
Reference Identification
CANMIN 1 MAX 50ID: 127

Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

MTX

Text

OMax: >1Area: 1Seq: 3000

To specify textual data

MTX02
Textual Data
CANMIN 1 MAX 4096ID: 1551

To transmit large volumes of message text

Loop: N1_loop

Repeat: 200
N1

Party Identification

OMax: 1Area: 1Seq: 3100

To identify a party by type of organization, name, and code

N101
Entity Identifier Code
MIDMIN 2 MAX 3ID: 98

Code identifying an organizational entity, a physical location, property or an individual

BTBill-to-Party
STShip To
VNVendor
Z7Mark-for Party
N102
Name
CANMIN 1 MAX 60ID: 93

Free-form name

N103
Identification Code Qualifier
CIDMIN 1 MAX 2ID: 66

Code designating the system/method of code structure used for Identification Code (67)

9D-U-N-S+4, D-U-N-S Number with Four Character Suffix
92Assigned by Buyer or Buyer's Agent
ULGlobal Location Number (GLN)
N104
Identification Code
CANMIN 2 MAX 80ID: 67

Code identifying a party or other code

N2

Additional Name Information

OMax: 2Area: 1Seq: 3200

To specify additional names

N201
Name
MANMIN 1 MAX 60ID: 93

Free-form name

N3

Party Location

OMax: 2Area: 1Seq: 3300

To specify the location of the named party

N301
Address Information
MANMIN 1 MAX 55ID: 166

Address information

N302
Address Information
OANMIN 1 MAX 55ID: 166

Address information

N4

Geographic Location

OMax: >1Area: 1Seq: 3400

To specify the geographic place of the named party

N401
City Name
OANMIN 2 MAX 30ID: 19

Free-form text for city name

N402
State or Province Code
CIDMIN 2 MAX 2ID: 156

Code (Standard State/Province) as defined by appropriate government agency

N403
Postal Code
OIDMIN 3 MAX 15ID: 116

Code defining international postal zone code excluding punctuation and blanks (zip code for United States)

N404
Country Code
CIDMIN 2 MAX 3ID: 26

Code identifying the country

Loop: PO1_loop

Repeat: 100000
PO1

Baseline Item Data

MMax: 1Area: 2Seq: 0100

To specify basic and most frequently used line item data

PO101
Assigned Identification
OANMIN 1 MAX 20ID: 350

Alphanumeric characters assigned for differentiation within a transaction set

PO102
Quantity
CRMIN 1 MAX 15ID: 380

Numeric value of quantity

PO103
Unit or Basis for Measurement Code
OIDMIN 2 MAX 2ID: 355

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

PO104
Unit Price
CRMIN 1 MAX 17ID: 212

Price per unit of product, service, commodity, etc.

PO105
Basis of Unit Price Code
OIDMIN 2 MAX 2ID: 639

Code identifying the type of unit price for an item

NCNo Charge
UMPrice per Unit of Measure
PO106
Product/Service ID Qualifier
CIDMIN 2 MAX 2ID: 235

Code identifying the type/source of the descriptive number used in Product/Service ID (234)

ENEAN/UCC - 13
EOEAN/UCC - 8
IBInternational Standard Book Number (ISBN)
UAU.P.C./EAN Case Code (2-5-5)
UKGTIN 14-digit Data Structure
UPUCC-12
PO107
Product/Service ID
CANMIN 1 MAX 48ID: 234

Identifying number for a product or service

PO108
Product/Service ID Qualifier
CIDMIN 2 MAX 2ID: 235

Code identifying the type/source of the descriptive number used in Product/Service ID (234)

PIPurchaser's Item Code
PO109
Product/Service ID
CANMIN 1 MAX 48ID: 234

Identifying number for a product or service

PO110
Product/Service ID Qualifier
CIDMIN 2 MAX 2ID: 235

Code identifying the type/source of the descriptive number used in Product/Service ID (234)

VAVendor's Style Number
PO111
Product/Service ID
CANMIN 1 MAX 48ID: 234

Identifying number for a product or service

PO112
Product/Service ID Qualifier
CIDMIN 2 MAX 2ID: 235

Code identifying the type/source of the descriptive number used in Product/Service ID (234)

SKStock Keeping Unit (SKU)
PO113
Product/Service ID
CANMIN 1 MAX 48ID: 234

Identifying number for a product or service

PO114
Product/Service ID Qualifier
CIDMIN 2 MAX 2ID: 235

Code identifying the type/source of the descriptive number used in Product/Service ID (234)

OTInternal Number
PO115
Product/Service ID
CANMIN 1 MAX 48ID: 234

Identifying number for a product or service

Loop: CTP_loop

Repeat: >1
CTP

Pricing Information

OMax: 1Area: 2Seq: 0400

To specify pricing information

CTP02
Price Identifier Code
CIDMIN 3 MAX 3ID: 236

Code identifying pricing specification

PRPPromotional price
RTLRetail
CTP03
Unit Price
CRMIN 1 MAX 17ID: 212

Price per unit of product, service, commodity, etc.

Loop: PID_loop

Repeat: 1000
PID

Product/Item Description

OMax: 1Area: 2Seq: 0500

To describe a product or process in coded or free-form format

PID01
Item Description Type
MIDMIN 1 MAX 1ID: 349

Code indicating the format of a description

FRFree-form
PID05
Description
CANMIN 1 MAX 80ID: 352

A free-form description to clarify the related data elements and their content

PO4

Item Physical Details

OMax: >1Area: 2Seq: 0900

To specify the physical qualities, packaging, weights, and dimensions relating to the item

PO401
Pack
ON0MIN 1 MAX 6ID: 356

The number of inner containers, or number of eaches if there are no inner containers, per outer container

SDQ

Destination Quantity

OMax: 500Area: 2Seq: 1900

To specify destination and quantity detail

SDQ01
Unit or Basis for Measurement Code
MIDMIN 2 MAX 2ID: 355

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

SDQ02
Identification Code Qualifier
OIDMIN 1 MAX 2ID: 66

Code designating the system/method of code structure used for Identification Code (67)

9D-U-N-S+4, D-U-N-S Number with Four Character Suffix
92Assigned by Buyer or Buyer's Agent
ULGlobal Location Number (GLN)
SDQ03
Identification Code
MANMIN 2 MAX 80ID: 67

Code identifying a party or other code

SDQ04
Quantity
MRMIN 1 MAX 15ID: 380

Numeric value of quantity

SDQ05
Identification Code
CANMIN 2 MAX 80ID: 67

Code identifying a party or other code

SDQ06
Quantity
CRMIN 1 MAX 15ID: 380

Numeric value of quantity

SDQ07
Identification Code
CANMIN 2 MAX 80ID: 67

Code identifying a party or other code

SDQ08
Quantity
CRMIN 1 MAX 15ID: 380

Numeric value of quantity

SDQ09
Identification Code
CANMIN 2 MAX 80ID: 67

Code identifying a party or other code

SDQ10
Quantity
CRMIN 1 MAX 15ID: 380

Numeric value of quantity

SDQ11
Identification Code
CANMIN 2 MAX 80ID: 67

Code identifying a party or other code

SDQ12
Quantity
CRMIN 1 MAX 15ID: 380

Numeric value of quantity

SDQ13
Identification Code
CANMIN 2 MAX 80ID: 67

Code identifying a party or other code

SDQ14
Quantity
CRMIN 1 MAX 15ID: 380

Numeric value of quantity

SDQ15
Identification Code
CANMIN 2 MAX 80ID: 67

Code identifying a party or other code

SDQ16
Quantity
CRMIN 1 MAX 15ID: 380

Numeric value of quantity

SDQ17
Identification Code
CANMIN 2 MAX 80ID: 67

Code identifying a party or other code

SDQ18
Quantity
CRMIN 1 MAX 15ID: 380

Numeric value of quantity

SDQ19
Identification Code
CANMIN 2 MAX 80ID: 67

Code identifying a party or other code

SDQ20
Quantity
CRMIN 1 MAX 15ID: 380

Numeric value of quantity

SDQ21
Identification Code
CANMIN 2 MAX 80ID: 67

Code identifying a party or other code

SDQ22
Quantity
CRMIN 1 MAX 15ID: 380

Numeric value of quantity

TC2

Commodity

OMax: >1Area: 2Seq: 2350

To identify a commodity or a group of commodities or a tariff page commodity

TC201
Commodity Code Qualifier
MIDMIN 1 MAX 1ID: 23

Code identifying the commodity coding system used for Commodity Code

AHarmonized Tariff Schedule of the United States
TC202
Commodity Code
MANMIN 1 MAX 30ID: 22

Code describing a commodity or group of commodities

Loop: CTT_loop

Repeat: 1
CTT

Transaction Totals

OMax: 1Area: 3Seq: 0100

To transmit a hash total for a specific element in the transaction set

CTT01
Number of Line Items
MN0MIN 1 MAX 6ID: 354

Total number of line items in the transaction set

CTT03
Weight
CRMIN 1 MAX 10ID: 81

Numeric value of weight

CTT04
Unit or Basis for Measurement Code
CIDMIN 2 MAX 2ID: 355

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

LBPound
SE

Transaction Set Trailer

MMax: 1Area: 3Seq: 0300

To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)

SE01
Number of Included Segments
MN0MIN 1 MAX 10ID: 96

Total number of segments included in a transaction set including ST and SE segments

SE02
Transaction Set Control Number
MANMIN 4 MAX 9ID: 329

Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set