A segment to identify a location or country related to the equipment, such as: -
stowage cell - (final) place/port of discharge - transhipment place - place of
delivery - country of origin/destination
### | Possible Codes | EDI SMDG data Element | EDI SMDG Component Element | EDI SMDG data name | "Human Name" | TiC Data Mapping |
LOC+11+USCHS:139:6:CHARLESTON, SC+WANDO:72:ZZZ:WANDO TERMINAL' tos|@|cargovisit|@|portofdischarge|metaelements|input|planned|value: USCHS tos|@|cargovisit|@|portofdischarge|metaelements|ouput|actual|codelistidentificationcode: 139 tos|@|cargovisit|@|portofdischarge|metaelements|ouput|actual|codelistresponsibleagencycode: 6 tos|@|cargovisit|@|portofdischarge|logical|ouput|actual|locationname: CHARLESTON, SC tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|firstrelatedlocationnamecode: WANDO tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|firstrelatedlocationcodelistidentificationcode: 72 tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|firstrelatedlocationcodelistresponsibleagencycode: ZZZ tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|firstrelatedlocationname: WANDO TERMINAL | ||||||
LOC+147+0500284' tos|@|cargovisit|@|portofdischarge|.... (subject and concept for the rest of the codes) tos|@|cargovisit|@|inbound|logical|output|actual|#qualifier#stowagecell|value = 0500284 | ||||||
1 | 5 Place of departure | 3227 |
| Location Function Code Qualifier | Function of location information which is described in the following information | tos|@|cargovisit|@|portofdischarge|.... (subject and concept for the rest of the codes) tos|@|cargovisit|@|portofdischarge|.... if 3227 = 7 then tos|@|cargovisit|@|placeofdeliver|.... if 3227 = 8 then tos|@|cargovisit|@|placeofdestination|.... if 3227 = 9 and 1131 is not 139 and header 1001 is 119 discharge then tos|@|cargovisit|@|previousplace|.... if 3227 = 9 and 1131 is 139 and header 1001 is 119 discharge then tos|@|cargovisit|@|previousport|.... if 3227 = 9 and 1131 is not 139 and header 1001 is 122 loading then tos|@|cargovisit|@|placeofloading|.... if 3227 = 9 and 1131 is 139 and header 1001 is 122 loading then tos|@|cargovisit|@|portofloading|.... if 3227 = 11 and 1131 is not 139 and header 1001 is 119 discharge then tos|@|cargovisit|@|placeofdischarge|.... if 3227 = 11 and 1131 is 139 and header 1001 is 119 discharge then tos|@|cargovisit|@|portofdischarge|.... if 3227 = 11 and 1131 is not 139 and header 1001 is 122 loading then tos|@|cargovisit|@|nextplaceofdischarge|.... if 3227 = 11 and 1131 is 139 and header 1001 is 122 loading then tos|@|cargovisit|@|nextportofdischarge|.... then tos|@|cargovisit|@|nextportofdischarge|.... if 3227 = 13 then tos|@|cargovisit|@|terminaloftransfer|.... if 3227 = 15 then tos|@|cargovisit|@|placeoftransferresponsibility|.... if 3227 = 33 then tos|@|cargovisit|@|placeofdischarge|.... if 3227 = 34 then tos|@|cargovisit|@|placeofloading|.... if 3227 = 65 then tos|@|cargovisit|@|finalplaceofdischarge|.... if 3227 = 88 then tos|@|cargovisit|@|placeofreceipt|.... if 3227 = 98 then tos|@|cargovisit|@|placeofemptydespatch|.... If header event 1001MC002 = 119 discharge and if 3227 = 147 then
if 3227 = 154 then tos|@|cargo|@|onhire|.... if 3227 = 155 then tos|@|cargo|@|offhire|.... if 3227 = 170 then tos|@|cargovisit|@|finalportofdischarge|.... if 3227 = 171 then tos|@|cargovisit|@|prestaking|.... if 3227 = 175 then tos|@|cargovisit|location|.... For terminals and TOS the main reference is the cargovisit, but for a shipping line is the cargotrip. There is a link between cargotrip and cargo visit xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx If BGM 119 (Discharge Report) If header event 1001MC002 = 119 discharge and if 3227 = 147 Stowage cell then IF header 1001 is 119 discharge and 3227 = 11 and 1131 is NOT 139 and LOC+11 SEG3 3225 is equal to LOC SEG7 3225 then tos|@|cargovisit|@|placeofdischarge|output|actual.... IF header 1001 is 119 discharge and 3227 = 11 and 1131 is NOT 139 and LOC+11 SEG3 3225 is NOT equal to LOC SEG7 3225 then tos|@|cargovisit|@|nextplaceofdischarge|output|planned... IF header 1001 is 119 discharge and3227 = 11 and 1131 is 139 and LOC+11 SEG3 3225 is equal to LOC SEG7 3225 then tos|@|cargovisit|@|portofdicharge|output|actual.... IF header 1001 is 119 discharge and 3227 = 11 and 1131 is 139 and LOC+11 SEG3 3225 is NOT equal to LOC SEG7 3225 then tos|@|cargovisit|@|nextportofdischarge|output|actual.... IF header 1001 is 119 discharge and 3227 = 9 and 1131 is NOT 139 and LOC+11 SEG3 3225 is equal to LOC SEG7 3225 then tos|@|cargovisit|@|previousplaceofload|output|actual.... IF header 1001 is 119 discharge and 3227 = 9 and 1131 is NOT 139 and LOC+11 SEG3 3225 is NOT equal to LOC SEG7 3225 and LOC+9 is equal to LOC+11 SEG3 then tos|@|cargovisit|@|placeofload|output|planned.... IF header 1001 is 119 discharge and 3227 = 9 and 1131 is NOT 139 and LOC+11 SEG3 3225 is NOT equal to LOC SEG7 3225 and LOC+9 is NOT equal to LOC+11 SEG3 then tos|@|cargovisit|@|previousplaceofload|output|performed.... IF header 1001 is 119 discharge and 3227 = 9 and 1131 is 139 and LOC+11 SEG3 3225 is equal to LOC SEG7 3225 then tos|@|cargovisit|@|previousportofload|output|actual.... IF header 1001 is 119 discharge and 3227 = 9 and 1131 is 139 and LOC+11 SEG3 3225 is NOT equal to LOC SEG7 3225 and LOC+9 is equal to LOC+11 SEG3 then tos|@|cargovisit|@|portofload|output|planned.... IF header 1001 is 119 discharge and 3227 = 9 and 1131 is 139 and LOC+11 SEG3 3225 is NOT equal to LOC SEG7 3225 and LOC+9 is NOT equal to LOC+11 SEG3 then tos|@|cargovisit|@|previousportofload|output|performed.... 20241211 updated the previousport to previousportofload if 3227 = 11 and 1131 is 139 and header 1001 is 119 discharge then tos|@|cargovisit|@|portofdischarge|.... if 3227 = 11 and 1131 is not 139 and header 1001 is 122 loading then tos|@|cargovisit|@|nextplaceofdischarge|.... if 3227 = 11 and 1131 is 139 and header 1001 is 122 loading then tos|@|cargovisit|@|nextportofdischarge|.... then tos|@|cargovisit|@|nextportofdischarge|.... If BGM 119 (Discharge Report) If header event 1001MC002 = 122 loading and if 3227 = 147 then |
2 |
| C517 |
| Location Identification |
| ? |
3 |
|
| 3225 | Location name Code - UNLOCCODE | UNLOCCode for the location or Stowage location (ISO format BBBRRTT) (if e3227 = 147) | tos|@|cargovisit|@|portofdischarge|metaelements|ouput|actual|value: USCHS
|
4 | 139 - Port |
| 1131 | Code list identification code | Kind of the location | tos|@|cargovisit|@|portofdischarge|metaelements|ouput|actual|codelistidentificationcode: 139 |
5 | 5 ISO (International Organization for Standardization) |
| 3055 | Code list responsible agency code |
| tos|@|cargovisit|@|portofdischarge|metaelements|ouput|actual|codelistresponsibleagencycode: 6 |
6 |
|
| 3224 | Location Name | Free Text Port Name | tos|@|cargovisit|@|portofdischarge|logical|ouput|actual|locationname: CHARLESTON, SC see 3227 and if 3055 = 5 ...|metaelements|ouput|actual|#qualifier#ISO|locationname|: 3224 |
7 |
| C519 |
| Related Location ONE IDENTIFICATION |
|
|
8 |
|
| 3223 | First related location name code | Individual location code (f|e| "terminal code") | tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|firstrelatedlocationnamecode: WANDO see 3227 ...|metaelements|output|actual|firstrelatedlocationnamecode: 3223
|
9 | 72 Container terminal |
| 1131 | Code list identification code | Which kind of location | tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|firstrelatedlocationcodelistidentificationcode: 72 see 3227 ...|metaelements|output|actual|firstrelatedlocationcodelistidentificationcode: 1131 (72 / 261 / 262 / 263 / 264 / 265 / 266 / 267 / 268 / 269) see 3227 and if 1131 = 72 ... containerterminal see 3227 and if 1131 = 261 ..|metaelements|output|actual|firstrelatedlocationcodelistidentificationcodename: consigneespremises |
10 | 9 - EAN (International Article Numbering association) |
| 3055 | Code list responsible agency code |
| tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|firstrelatedlocationcodelistresponsibleagencycode: ZZZ see 3227 ...|metaelements|output|actual|firstrelatedlocationcode: 3055 (9/184/SMD/ZZZ) |
11 |
|
| 3222 | First related location name, free text | location name | tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|firstrelatedlocationname: WANDO TERMINAL tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|firstrelatedlocationname: 3222 (free text) |
12 |
| C553 |
| Related Location TWO IDENTIFICATION |
|
|
13 |
|
| 3233 | Second related location name code | Individual location code (f|e| "terminal code") | no example tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|secondrelatedlocationnamecode: 3233 |
14 | 72 Container terminal |
| 1131 | Code list identification code | Which kind of location | no example see 3227 ...|metaelements|output|actual|secondrelatedlocationcodelistidentificationcode: 1131 (72 / 261 / 262 / 263 / 264 / 265 / 266 / 267 / 268 / 269) see 3227 and if 1131 = 72 ... containerterminal see 3227 and if 1131 = 261 ..|metaelements|output|actual|secondrelatedlocationcodelistidentificationcodename: consigneespremises |
15 | 9 - EAN (International Article Numbering association) |
| 3055 | Code list responsible agency code |
| no example see 3227 ...|metaelements|output|actual|secondrelatedlocationcodelistresponsibleagencycode: 3055 (9 / 184 / SMD / ZZZ) |
|
|
| 3222 | Second related location name, free text | location name | no example tos|@|cargovisit|@|portofdischarge|metaelements|output|actual|secondrelatedlocationname: 3222 (free text) |
See the latest data model at Data Model