Skip to content

How CDQ models an address

Overview

Every address CDQ curates is held in one model, whatever the country. A country's own levels, from the federal state to the floor of a building, are mapped onto the same few concepts, and each country standard shows that mapping for its country. This page describes the model those standards build on.

In this article, you will understand:

  • The two hierarchies of the CDQ address model, and where streets, numbers and premises go
  • How post codes and postal delivery points are held
  • What CDQ standardises in an address, and what it keeps as submitted
  • Why CDQ delivers an ISO 3166-2 code for the region, and how that reaches an SAP region key

Available in:


Two hierarchies

The CDQ address model has two parallel hierarchies:

  • Administrative areas represent the political containers. They support two levels, typed REGION and COUNTY.
  • Localities represent the places themselves. They support up to ten levels, typed CITY, DISTRICT, QUARTER or BLOCK.

The two are kept apart because a country's political structure and the places named on an envelope are not the same thing. In Germany, for example, the Bundesland is an administrative area of type REGION and the Landkreis one of type COUNTY, while the Gemeinde is a locality of type CITY and the Ortsteil a locality of type DISTRICT.


Streets, numbers and premises

  • Streets are held as thoroughfares, typed for example STREET or INDUSTRIAL_ZONE. The house number sits in its own field, separate from the street name.
  • The position inside a building is held as typed premises, such as BUILDING, LEVEL, ROOM, APARTMENT, UNIT or SUITE. Which types a country uses is listed in its standard.

Where a street term has a conventional abbreviation, the thoroughfare can carry both forms: the value with the expanded form, and the short name with the abbreviated one. A narrow field, such as the SAP street line, then takes the short name.

The number follows the street by default

In the default presentation the number follows the street value, and the two values remain separate in the model. Where a receiving system needs them joined into one field, that is a per-customer configuration rather than the standard, and the separator is configurable.


Post codes and postal delivery points

A post code is held with its type. The regular post code of a street address is typed REGULAR. Some countries issue further kinds, which the model keeps apart rather than overwriting the regular one: Germany's post codes for large mail users are typed LARGE_MAIL_USER, and France's CEDEX code is held as an additional post code typed CEDEX.

A post office box is a postal delivery point of type POST_OFFICE_BOX, beside the street address.


What CDQ standardises

When an address is curated, CDQ standardises a defined set of values against its own reference data and keeps the rest as submitted. Each country standard lists exactly what applies in its section Reference data CDQ maintains. The pattern is the same everywhere:

  • Administrative areas are matched against reference data, whatever form they arrive in (a name, a local or English spelling, a code), and the canonical name and the ISO 3166-2 code are written back. Depending on the country, this is the first level only, or the first and the second.
  • Street terms are recognised in the street text in countries where CDQ maintains them, and delivered in the form the country standard describes: in Germany both the expanded and the abbreviated form, in Portugal and Spain the official abbreviation.
  • Post codes are validated against the country's published formats. A superseded format is recognised as superseded rather than rejected. In most countries the value is validated but not rewritten; a few countries restore what was lost upstream, such as a leading zero in Mexico or the space in a Canadian postal code.
  • Localities and the levels below are preserved as submitted. Where an address provider is enabled, it can enrich and complete them.

The region and the SAP region key

CDQ delivers the region with its ISO 3166-2 code. An SAP system does not validate against ISO: it validates the region field against its own region key table, T005S, which is part of each customer's configuration. That key exists for tax and jurisdiction purposes, which is why it follows national tax or statistical numbering rather than ISO, and why the level it sits at differs from one country to the next.

The region key is customer-specific configuration, so the country standards do not define one. What they fix is the ISO 3166-2 code. Treat the ISO code as the value CDQ guarantees, and the mapping to the key your system expects as a mapping you own. Each country standard says what that key conventionally looks like for its country.


Summary

The CDQ address model separates the political containers of a country, its administrative areas, from the places named on an address, its localities, and holds streets, numbers, premises, post codes and post office boxes as typed values of their own. CDQ standardises the administrative areas, street terms and post code formats against its reference data, keeps the rest as submitted, and delivers the region as an ISO 3166-2 code that you map to your own SAP region key.



Your opinion matters!

We are constantly working on providing an outstanding user experience with our products. Please share your opinion about this tutorial!