Stedi maintains this guide based on public documentation from Canadian National Railway (CN Rail). Contact Canadian National Railway (CN Rail) for official EDI specifications. To report any errors in this guide, please contact us.
X12 417 [Built from HCT Sample] Rail Carrier Waybill Interchange
—
Delimiters
- ~ Segment
- * Element
- > Component
- ^ Repetition
Powered by
Build EDI implementation guides at stedi.com
Overview
ISA
-
Interchange Control Header
Max use 1
Required
GS
-
Functional Group Header
Max use 1
Required
heading
ST
0100
Transaction Set Header
Max use 1
Required
BX
0300
General Shipment Information
Max use 1
Optional
BNX
0400
Rail Shipment Information
Max use 1
Optional
N9
0500
Extended Reference Information
Max use 30
Optional
CM
0600
Cargo Manifest
Max use 2
Optional
DTM
0700
Date/Time Reference
Max use 5
Optional
N8
1800
Waybill Reference
Max use 499
Required
F9
2000
Origin Station
Max use 1
Required
D9
2100
Destination Station
Max use 1
Required
R2
4700
Route Information
Max use 13
Required
SE
8100
Transaction Set Trailer
Max use 1
Required
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
—
- 00
- No Authorization Information Present (No Meaningful Information in I02)
—
- 00
- No Security Information Present (No Meaningful Information in I04)
—
- 00701
- Standards Approved for Publication by ASC X12 Procedures Review Board through October 2013
—
- 0
- No Interchange Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested (TA1)
- 2
- Interchange Acknowledgment Requested only when Interchange is "Rejected Because Of Errors"
- 3
- Interchange Acknowledgment Requested only when Interchange is "Rejected Because Of Errors" or "Accepted but Errors are Noted"
—
- I
- Information
- P
- Production Data
- T
- Test Data
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
N9
0500
Heading > N9
Extended Reference Information
OptionalMax use 30
—
Example
If Time Code (N9-06) is present, then Time (N9-05) is required
—
- BM
- Bill of Lading Number
- BN
- Booking Number
- SI
- Shipper's Identifying Number for Shipment (SID)
CM
0600
Heading > CM
Cargo Manifest
OptionalMax use 2
—
Example
If Date (CM-04) is present, then Port or Terminal Function Code (CM-02) is required
DTM
0700
Heading > DTM
Date/Time Reference
OptionalMax use 5
—
Example
If Time Code (DTM-04) is present, then Time (DTM-03) is required
N7 Loop
RequiredMax 500
N7
0800
Heading > N7 Loop > N7
Equipment Details
RequiredMax use 1
—
Example
If either Weight (N7-03) or Weight Qualifier (N7-04) is present, then the other is required
If either Tare Weight (N7-05) or Tare Qualifier Code (N7-16) is present, then the other is required
N7 Loop end
N1 Loop
RequiredMax 15
N1
2200
Heading > N1 Loop > N1
Party Identification
RequiredMax use 1
—
Example
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
—
- CN
- Consignee
- N1
- Notify Party no. 1
- PF
- Party to Receive Freight Bill
- SH
- Shipper
PER
2500
Heading > N1 Loop > PER
Administrative Communications Contact
OptionalMax use 2
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
N1 Loop end
LX Loop
RequiredMax 25
L5
5500
Heading > LX Loop > L5
Description, Marks and Numbers
RequiredMax use 15
—
Example
If either Commodity Code (L5-03) or Commodity Code Qualifier (L5-04) is present, then the other is required
L0 Loop
OptionalMax 25
L0
5700
Heading > LX Loop > L0 Loop > L0
Line Item - Quantity and Weight
RequiredMax use 1
—
Example
If either Weight (L0-04) or Weight Qualifier (L0-05) is present, then the other is required
If either Lading Quantity (L0-08) or Packaging Form Code (L0-09) is present, then the other is required
L0 Loop end
LX Loop end
Heading end
EDI Samples
Sample 1
ISA*00* *00* *02*CN *ZZ*HCTERMINAL *240119*1058*U*00701*001445903*0*P*>
GS*WB*CN*HCTERMINAL*20240119*1058*001445903*X*007010
ST*417*445903001
BX*00*X*PP*EBKG07478038*CN*L*B*N****N
BNX*M**S
N9*BM*EBKG07478038**20240119*10584000*ET
N9*BN*EBKG07478038**20240119
N9*SI*EBKG07478038
N9*BN*EBKG07478038**20240119*10580000*ET
CM**L**20240206*EBKG07478038****MSC PRATITA
DTM*168*20240119*10570000*ET
N7*MEDU*640164*51125*N*5027******CN****2000*M****102*96
M7*10135268
N8*779763*20240119
F9*42368*BRAMPTON INTER TERM*ON*****044761*L8L6L8
D9*33388*MONTREAL VIAU TERM*PQ*****030342*H1N0C6
N1*SH*HAMILTON CONTAINER TERMINAL*C5*A001357970000
N3*443 SHERMAN AVE N
N4*HAMILTON*ON*L8L6L8*CA
PER*IC*SARANG GAIKWAD*TE*(905) 538-7810
N1*CN*MEDITERRANEAN SHIPPING CO*C5*2096095100000
N3*MONTREAL VIAU TERM
N4*MONTREAL VIAU TERM*PQ*H1N0C6*CA
N1*N1*HAMILTON CONTAINER TERMINAL
N3*443 SHERMAN AVE N
N4*HAMILTON*ON*L8L6L8*CA
N1*PF*HAMILTON CONTAINER TERMINAL*C5*A001357970000
N3*443 SHERMAN AVE N
N4*HAMILTON*ON*L8L6L8*CA
R2*CN*S***85
LX*1
L5*1*SCRAP IRON OR STEEL, CAST IRON, HAVING VALUE FOR*4021127*T
L5*1*REMELTING PURPOSES
L5*1*SCRAP IRON OR STEEL, CAST IRON, HAVING VALUE FOR
L5*1*REMELTING PURPOSES
L0*1***51125*N***1*CNT
SE*35*445903001
GE*1*001445903
IEA*1*001445903
GS*WB*CN*HCTERMINAL*20240119*1058*001445903*X*007010
ST*417*445903001
BX*00*X*PP*EBKG07478038*CN*L*B*N****N
BNX*M**S
N9*BM*EBKG07478038**20240119*10584000*ET
N9*BN*EBKG07478038**20240119
N9*SI*EBKG07478038
N9*BN*EBKG07478038**20240119*10580000*ET
CM**L**20240206*EBKG07478038****MSC PRATITA
DTM*168*20240119*10570000*ET
N7*MEDU*640164*51125*N*5027******CN****2000*M****102*96
M7*10135268
N8*779763*20240119
F9*42368*BRAMPTON INTER TERM*ON*****044761*L8L6L8
D9*33388*MONTREAL VIAU TERM*PQ*****030342*H1N0C6
N1*SH*HAMILTON CONTAINER TERMINAL*C5*A001357970000
N3*443 SHERMAN AVE N
N4*HAMILTON*ON*L8L6L8*CA
PER*IC*SARANG GAIKWAD*TE*(905) 538-7810
N1*CN*MEDITERRANEAN SHIPPING CO*C5*2096095100000
N3*MONTREAL VIAU TERM
N4*MONTREAL VIAU TERM*PQ*H1N0C6*CA
N1*N1*HAMILTON CONTAINER TERMINAL
N3*443 SHERMAN AVE N
N4*HAMILTON*ON*L8L6L8*CA
N1*PF*HAMILTON CONTAINER TERMINAL*C5*A001357970000
N3*443 SHERMAN AVE N
N4*HAMILTON*ON*L8L6L8*CA
R2*CN*S***85
LX*1
L5*1*SCRAP IRON OR STEEL, CAST IRON, HAVING VALUE FOR*4021127*T
L5*1*REMELTING PURPOSES
L5*1*SCRAP IRON OR STEEL, CAST IRON, HAVING VALUE FOR
L5*1*REMELTING PURPOSES
L0*1***51125*N***1*CNT
SE*35*445903001
GE*1*001445903
IEA*1*001445903
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.