B4 Beginning Segment for Inquiry or Reply

To transmit identifying numbers, dates, and other basic data relating to the transaction set

Position
Element
Name
Type
Requirement
Min
Max
Repeat
B4-01
Special Handling Code
Identifier (ID)
Optional
2
3
-
Code specifying special transportation handling instructions
B4-02
Inquiry Request Number
Numeric (N0)
Optional
1
3
-
Identifying number assigned by inquirer
B4-03
Shipment Status Code
Identifier (ID)
Optional
1
2
-
Code indicating the status of a shipment
B4-04
Date
Date (DT)
Optional
8
8
-
Date expressed as CCYYMMDD
B404 is the date of last reported status of cargo.
B4-05
Time
Time (TM)
Optional
4
8
-
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)
B405 is the time (HHMM) of the last reported status of the cargo.
B4-06
Status Location
String (AN)
Optional
3
5
-
Air shipment: Airport code for last reported status for a shipment; (Note: If the shipment is in-flight, the status location is the origin airport for this flight) Ground transportation: Code of carrier's terminal
B4-07
Equipment Initial
String (AN)
Conditional
1
4
-
Prefix or alphabetic part of an equipment unit's identifying number
P0708: If either B4-07 or B4-08 is present, then the other is required
B4-08
Equipment Number
String (AN)
Conditional
1
10
-
Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)
B4-09
Equipment Status Code
Identifier (ID)
Optional
1
2
-
Code indicating status of equipment
B4-10
Equipment Type
Identifier (ID)
Optional
4
4
-
Code identifying equipment type
B4-11
Location Identifier
String (AN)
Conditional
1
30
-
Code which identifies a specific location
P1112: If either B4-11 or B4-12 is present, then the other is required
B4-12
Location Qualifier
Identifier (ID)
Conditional
1
2
-
Code identifying type of location
B4-13
Equipment Number Check Digit
Numeric (N0)
Optional
1
1
-
Number which designates the check digit applied to a piece of equipment

Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference is provided for marketing purposes and is free of charge. All names, logos, and brands of third parties listed on our site 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. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.