How to map an OASIS UBL Waybill and Despatch Advice into a TMS
Use Waybill for the transport document and Despatch Advice for the sender’s dispatch information. Link them through the shipment or logistics units where supported; never use one document’s identifier or status as a substitute for the other.
Give shared fields explicit meanings in each document.
The OASIS UBL 2.3 specification describes Waybill and Despatch Advice as distinct document types. Record the XML document type, UBL version and partner profile before mapping. Preserve the issuing party and explicit references rather than merging documents just because both carry the same order number.
A single advice is fulfilled using two transport documents.
A synthetic dispatch notice lists four handling units. Two waybills cover two units each in different movements. Link them at unit level and retain the notice as one record. If one waybill changes, update only its association after review. Do not overwrite the notice or mark all four units delivered.
Check structure and relationship separately.
- Test a structurally valid document of the wrong type or partner profile.
- Test two movements with the same order reference but different unit memberships.
- Keep schema validity separate from legal effect or proof of receipt.