CODECO UNH Message Header - BGM Beginning of Message

TIC 4.0

CODECO UNH Message Header - BGM Beginning of Message

RED: Sample message

BLACK: Master message

BLUE: needs to be reviewt

 

UNH is a service segment starting and uniquely identifying a message. The message
type code for the Container gate-in/gate-out report message is CODECO.
Note: Container gate-in/gate-out report messages conforming to this document
must contain the following data in segment UNH

image-20250430-072210.png

 

 

 

UNH+241443010001+CODECO:D:00B:UN:SMDG21

msg|@|unh|messagereferencenumber = 241443010001
msg|@|unh|messagetypeidentifier = CODECO
msg|@|unh|messagetypeversionnumber = D
msg|@|unh|messagetypereleasenumber = 00B
msg|@|unh|controllingagency = UN
msg|@|unh|associationassignedcode = SMDG21

###

Possible Codes

EDI SMDG data Element

EDI SMDG Component Element

EDI SMDG data name

"Human Name"

TiC Data Mapping

 

 

0062

 

MESSAGE REFERENCE NUMBER

 

msg|@|unh|messagereferencenumber = 241443010001

msg|@|unh|messagereferencenumber = 0062

 

 

S009

 

MESSAGE IDENTIFIER

 

 

 

CODECO Container gate-in/gate-out report message

https://www.stylusstudio.com/edifact/96A/0065.htm

 

0065

Message type identifier

 

msg|@|unh|messagetypeidentifier = CODECO
msg|@|unh|messagetypeidentifiername = Container gate-in/gate-out report message

msg|@|unh|messagetypeidentifier = 0065 (CODECO)
msg|@|unh|messagetypeidentifiername = 0065 (Container discharge/loading report message/Container gate-in/gate-out report message)

 

D Draft version/UN/EDIFACT Directory

https://www.stylusstudio.com/edifact/40100/0052.htm

 

0052

Message type version number

 

msg|@|unh|messagetypeversionnumber = D
msg|@|unh|messagetypeversionnumbername = Draft version UN EDIFACT Directory

msg|@|unh|messagetypeversionnumber = 0052 (D)
msg|@|unh|messagetypeversionnumbername = 0052 (Draft version/UN/EDIFACT Directory)

 

00B Release 2000 - B

https://www.stylusstudio.com/edifact/01B/0054.htm

 

0054

Message type release number

 

msg|@|unh|messagetypereleasenumber = 00B
msg|@|unh|messagetypereleasenumbername = Release 2000 - B

msg|@|unh|messagetypereleasenumber = 0054 (00B)
msg|@|unh|messagetypereleasenumbername = 0054 (Release 2000 - B)

 

 

UN UN/CEFACT

https://www.stylusstudio.com/edifact/40100/0051.htm

 

0051

Controlling agency

 

msg|@|unh|controllingagency = UN
msg|@|unh|controllingagencyname = UN CEFACT

msg|@|unh|controllingagency = 0051 (UN)
msg|@|unh|controllingagencyname = 0051 (UN CEFACT)

 

 

SMDG21 SMDG Version 2.1

 

0057

Association assigned code

 

msg|@|unh|associationassignedcode = SMDG21
msg|@|unh|associationassignedcodename = SMDG Version 2.1

msg|@|unh|associationassignedcode = 0057 (SMDG21)
msg|@|unh|associationassignedcodename = 0057 (SMDG Version 2.1)

 

 

0068

 

COMMON ACCESS REFERENCE

Additional message reference (if required)

msg|@|unh|commonaccessreference = 0068 (free text)

 

BGM is a segment to indicate the beginning of a message and to transmit identifying
number and the further specification of the message type (in data element 1001:
Document name code), such as Gate-in report, Gate-out report

 

image-20250430-072057.png
image-20250430-072124.png

 

 

 

 

BGM+109+800255846+9+AB

msg|@|bgm|documentnamecode = 109
msg|@|bgm|documentnamecodename = Transport movement gate in report

msg|@|bgm|documentidentifier = 800255846

msg|@|bgm|messagefunctioncode = 9
msg|@|bgm|messagefunctioncodename = Original

msg|@|bgm|responsetypecode = AB
msg|@|bgm|responsetypecodename = Message acknowledgement

###

Possible Codes

EDI SMDG data Element

EDI SMDG Component Element

EDI SMDG data name

"Human Name"

TiC Data Mapping

 

 

C002

 

DOCUMENT/MESSAGE NAME

 

 

 

57 Transport equipment on-hire report
58 Transport equipment off-hire report
103 Transport equipment direct interchange report
109 Transport movement gate in report
111 Transport movement gate out report
117 Transport equipment shift report
119 Transport discharge report
122 Transport loading report
265 Transport equipment movement report
266 Transport equipment status change report

 

1001

Document name code

 

msg|@|bgm|documentnamecode = 122
msg|@|bgm|documentnamecodename = Transport loading report

msg|@|bgm|documentnamecode = 1001 (57 / 58 / 103 / 109 / 111 / 117 / 119 / 122 / 265 / 266)
msg|@|bgm|documentnamecodename = 1001 (Transport equipment on-hire report / Transport equipment direct interchange report / Transport movement gate in report / Transport movement gate out report / Transport equipment shift report / Transport discharge report / Transport loading report / Transport equipment movement report / Transport equipment status change report)

 

 

C106

 

DOCUMENT/MESSAGE IDENTIFICATION

 

 

 

 

 

1004

Document identifier

Sender's unique reference number

msg|@|bgm|documentidentifier = SN241445110001

msg|@|bgm|documentidentifier = 1004

 

1 Cancellation
5 Replace
9 Original

1225

 

MESSAGE FUNCTION CODE

 

msg|@|bgm|messagefunctioncode = 9
msg|@|bgm|messagefunctioncodename = Original

msg|@|bgm|messagefunctioncode = 1225 (1 / 5 / 9)
msg|@|bgm|messagefunctioncodename = 1225 (Cancellation / Replace / Original)

 

AB Message acknowledgement

 

https://service.unece.org/trade/untdid/d04b/tred/tred4343.htm

4343

 

RESPONSE TYPE CODE

 

msg|@|bgm|responsetypecode = AB
msg|@|bgm|responsetypecodename = Message acknowledgement

msg|@|bgm|responsetypecode = 4343 (AB / AC)
msg|@|bgm|responsetypecodename = 4343 (Message acknowledgement / Acknowledge)

 

 

DTM Date/Time/Period is a segment to indicate the message date and time

image-20250430-071819.png

 

DTM+137:201511211523:203

msg|@|dtm|timecodequalifier = 137
msg|@|dtm|timecodequalifiername = Document message date time

msg|@|dtm|value = 200211150114

msg|@|dtm|timeperiodformatcode = 203
msg|@|dtm|timeperiodformatcodename = CCYYMMDDHHMM

 

###

Possible Codes

EDI SMDG data Element

EDI SMDG Component Element

EDI SMDG data name

"Human Name"

TiC Data Mapping

 

 

C507

 

DATE/TIME/PERIOD

 

 

 

137 Document/message date/time

 

2005

Date or time or period function code qualifier

 

msg|@|dtm|timecodequalifier = 137
msg|@|dtm|timecodequalifiername = Document message date time

msg|@|dtm|timecodequalifier = 2005
msg|@|dtm|timecodequalifiername = 2005

 

 

 

2380

Date or time or period value

Date/time that the message was prepared

msg|@|dtm|value = 200211150114

msg|@|dtm|value = 2380

 

203 CCYYMMDDHHMM

 

2379

Date or time or period format code

 

msg|@|dtm|timeperiodformatcode = 203
msg|@|dtm|timeperiodformatcodename = CCYYMMDDHHMM

msg|@|dtm|timeperiodformatcode = 2379
msg|@|dtm|timeperiodformatcodename = 2379

 

image-20250515-064606.png

 

© Copyright - TIC 4.0 All rights reserved | Design web by Fundación Valenciaport