How to navigate the Header Details
The Header Details section is meant to assist you in editing the BAPLIE header information. A validation check is automatically performed upon loading this option under the Validation tab in the Function Menu, and any errors in the header details will be highlighted for your review.

Navigating the Tab
Click on the Validation tab in the Function Menu on the left side of the screen and then select Header Details to display the BAPLIE header information in an easy to read format. BAPLIE Viewer Online automatically validates the header information in your uploaded file in accordance with the SMDG specification for BAPLIE. If the validation check fails for any reason, the errors will be highlighted in red and you will see a message at the top of the screen.

Click into the header details throughout the page to view the errors and correct them. The arrows on the right side of the screen will expand or collapse each section containing more detailed information.
Hover over the icon next to the field name for an explanation of the field requirements.

Editing Header Details
All fields on the Header Details screen can be edited. Use the text boxes and dropdown in each section to make changes to any fields necessary. Then click Save Changes in the Function Menu to save any edits made to the header information. The page will reload, and any errors that have been fixed will no longer appear in red.

Field Value Explanations
These fields are defined by the SMDG specification document (these are specifically for the current BAPLIE 2.2 specification)
- Interchange Header
Example: UNB + UNOA : 2 + RON + HAM + 200915 : 0858 + 0 + + + + +
- Syntax Identifier: this value is always UNOA
- Syntax Version: this value is always 2
- Sender Identification: name code of the sender of the message
- Recipient Identification: name code of the receiver of the message
- Date of Preparation: preparation date of the message
- Time of Preparation: preparation time of the message
- Interchange Control Reference: a reference by the sender uniquely identifying the message. This must also be sent in the Interchange Trailer segment UNZ
- Recipients Reference Password: not used
- Application Reference: not used
- Processing Priority Code: not used
- Acknowledgement Request: not used
- Communications Agreement ID: code identifying the shipping line of the vessel (BIC or SCAC code), this code enables proper routing of the message by the recipient even if the sender is not the shipping line (ex: container terminal in previous port)
2. Message Header
Example: UNH + 1 + BAPLIE : D : 95B : UN : SMDG22
- Message Reference: reference allocated by the sender, uniquely identifying the message, must also be transmitted in the Message Trailer segment UNT
- Message Type ID: the name of the UNSM or EDIFACT message, in this case BAPLIE
- Message Type Version #: the version number of the message, current value is “D”
- Message Type Release #: the release number of the message, current value is “95B”
- Controlling Agency: the code of the controlling agency, for this message use “UN”
- Association Assigned Code: the applicable SMDG user manual version number, use “SMDG22”. This enables the recipient to translate the message correctly even if older versions are in use
- Beginning of Message:
Example: BGM + + 0 + 9
- Document Message Name: not used
- Document/Message #: reference allocated by the sender individually, taken from the application
- Message Function: code indicating the function of the message. Use 2 for add to previous message, 3 to delete from previous message, 4 to change previous message, 5 to replace previous message, 9 for original message and 22 for final message.
- Date / Time / Period
Example: DTM + 137 : 202009150858 : 201
- Date/Time/Period Qualifier Code: use 137 for document message date time
- Date/Time compiled: date or date/time of compiling message
- Format Qualifier Code: use 101 for YYMMDD, 210 for YYMMDDHHMM, 301 for YMMDDHHMMZZZ where ZZZ is time zone, ex: GMT
- Details of Transport
Example: TDT + 20 + 002W + + + BVO : 172 : 20 + + + H4318 : 103 : 11 : BVO DEMO SHIP :
- Transport Stage Qualifier: use code 20 for main carriage
- Conveyance Reference #: use discharge voyage number as assigned by the operating carrier or agent, the trade route can be included in the voyage number
- Mode Of Transport: not used
- Transport Means: not used
- Carrier ID: carrier name, coded – agreed or standard carrier alpha code (SCAC)
- Code List Qualifier: use code 172 for carrier code
- Code List Responsible Agency: use 20 for BIC(Bureaus International des Containeurs) 166 for US National Motor Freight Classification Association (SCAC) or ZZZ for mutually defined
- Transit Direction Coded: not used
- Excess Transportation Information: not used
- ID of Means of Transport ID: use vessel code Lloyds’ (IMO number), call sign or mutually agreed vessel code
- Code List Qualifier: use 103 for call sign directory, 146 for means of transport identification Lloyds code or IMO number, or ZZZ for mutually defined or IMO number
- Code List Responsible Agency: use 11 for Lloyds register of shipping when Lloyds code is used for vessel/barge identification or ZZZ for mutually defined
- ID of Means of Transport: vessel name, if required
- Nationality of Means of Transport: coded according to the UN Country Code ISO 3166
- Location Identification
Example: LOC + 5+DEHAM:139:6
- Place/Location Qualifier: use 5 for place of departure or 61 for next port of call
- Place/Location ID: location code of the actual place of departure, normally the sender of the message. If possible, un loc codes of 5 characters
- Code list qualifier: use 139 for port
- Code List Responsible Agency: use 112 for US, US Census Bureau, Schedule D for US Locations, Schedule K for foreign port locations or 6 for UN/ECE – United Nations – Economic Commission for Europe (UN LOC codes)
- Related Place/Location 1 ID: the ISO country code
- Code list qualifier: use 162 for country
- Code List Responsible Agency: use 5 for ISO
- Related Place/Location 2 ID: the state or province code, postal abbreviations
- Code list qualifier: use 163 for country sub entity, state or province
- Date/Time/Period:
Example: DTM + 178 : 2009150858 : 201
- Date/Time/Period Qualifier Code: use “178” for actual date/time of arrival at senders port or “132” for estimated date or date/time of arrival at the next port of call or “133” for estimated date or date/time of departure at senders port or “136” for actual date/time of departure at senders port
- Date/Time: date or date/time in local time when means of transport has arrived or departed or is expected to depart at the senders port or is expected to arrive at the next port of call
- Format Qualifier Code: use “101” for YYMMDD or “201” for YYMMDDHHMM or “301” for YYMMDDHHMMZZZ where ZZZ equals time zone, example GMT
- Message Trailer
Example: UNT + 61558 + 1
- Number of Segments: number of segments in the message, including UNH and UNT segments but excluding UNA, UNB and UNZ segments
- Message Reference #: this reference must be identical to the reference in the UNH segment
- Interchange Trailer
Example: UNZ + 1 + 0
- Interchange Control Count: the number of messages in the interchange
- Interchange Control Reference: this reference must be identical to the reference in the UNB segment