The basic idea is the following:
- Vessel Carrier Operator receives BAPLIE and/or COARRI for all the lines on board;
- Lines, which obtain allocation on a third party vessel, receive COARRI for their containers.
That's a sample of COARRI used to accomplish item #1:
UNH+1396271822440+COARRI:D:95B:UN:ITG12'
BGM+98:::DISCHARGING REPORT+10331485800001+9'
TDT+20+XXX1314D+1+13+CARRIER-ID:172:20+++XXXX:103::VESSEL NAME'
LOC+11+ITSAL:139:6+SCT:TER:ZZZ'
DTM+132:201403310800:203'
DTM+133:201403311400:203'
NAD+CA+CARRIER-ID:160:20'
EQD+CN+ABCD1220790+22G1:102:5++6+5'
RFF+BN:S3-08764104'
DTM+203:201403310913:203'
LOC+9+ITPMO:139:6'
MEA+AAE+G+KGM:27320'
MEA+AAE+T+KGM:1900'
SEL+PA004641'
FTX+AAA+++PASTA ALIMENTARE'
FTX+DAR++6:ZZZ:184+NOT DAMAGED'
TDT+30+XXX150A+1+13+CARRIER-ID:172:20+++XXXX:103'
LOC+7+GBPRU:139:6'
NAD+CF+LINE-ID:160:20'
EQD+CN+ABCD1186248+22G1:102:5++6+5'
RFF+BN:S3-08764135'
DTM+203:201403310912:203'
LOC+9+ITPMO:139:6'
MEA+AAE+G+KGM:27320'
MEA+AAE+T+KGM:1900'
SEL+PA004675'
FTX+AAA+++VINO'
FTX+DAR++6:ZZZ:184+NOT DAMAGED'
TDT+30+XXX150A+1+13+CARRIER-ID:172:20+++XXXX:103'
LOC+7+GBPRU:139:6'
NAD+CF+LINE-ID:160:20'
CNT+16:20'
UNT+213+1396271822440'
The code used at NAD.NAD level in NAD02 is the Vessel Carrier Operator ID.
The code used at EQD.NAD level in NAD02 is the Line ID.