{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","partial"]},"type":"markdown"},"seo":{"title":"Spain Address Standard","description":"How Spanish addresses are structured, how CDQ models them in the CDQ address model, how the floor and the door are delivered, how the Canary Islands, Ceuta and Melilla are treated, and which reference data CDQ maintains for Spain."},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"spain-address-standard","__idx":0},"children":["Spain Address Standard"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"overview","__idx":1},"children":["Overview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A Spanish address puts the building number on the street line and, behind it, a small code for the position inside the building: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Calle Mayor, 12, 3º Izda."]}," reads as number 12, third floor, left-hand door. That tail, together with an address that may have no number at all (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s/n"]},") and a street type that changes with the language of the region, is where Spanish addresses are most often damaged."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This article describes the Spanish address format, how CDQ represents it in the CDQ address model, how the floor and the door are delivered, how the Canary Islands, Ceuta and Melilla are handled, and which reference data CDQ maintains for Spain. It is the reference for anyone mapping Spanish business partner data into CDQ, or consuming curated Spanish addresses from CDQ."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["In this article, you will understand:"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["How a Spanish address is structured, and what the part after the house number means"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Which administrative levels are written on an address, and which one an SAP region field is keyed on"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["How each Spanish level maps to a concept in the CDQ address model, and which SAP field it reaches"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Which output fields receive the floor and the door, and why the door can appear twice"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Why the Canary Islands, Ceuta and Melilla stay in country ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES"]},", and how a customs free zone differs from them"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Which reference data CDQ maintains for Spain, and where it is incomplete"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Available in:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://meta.cdq.com/DataModel:CDQ/Business_Partner/Address/Country/ES"},"children":["CDQ Wiki: business partner metadata for Spain"]},": browse the published Spanish metadata"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"how-a-spanish-address-is-built","__idx":2},"children":["How a Spanish address is built"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A Spanish address has the ordinary European shape: a street, a number, a post code and a place. Most of it needs no special handling."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["What is specific to Spain is narrower, and it is where integrations actually go wrong:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Specific to Spain"},"children":["Specific to Spain"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Why it matters"},"children":["Why it matters"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The position inside the building is written on the street line"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3º Izda."]}," is a floor and a door, and it arrives inside the street value where it corrupts every comparison on that field"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An address can legitimately have no number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s/n"]}," (sin número) is a complete answer, and it is not a missing value"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A road address is a point on a road"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctra. N-II, km 23"]}," names a road and a kilometre, and the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["N-II"]}," is not a house number"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The street type follows the language of the region"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Calle"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Carrer"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Rúa"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Kalea"]}," are the same kind of thing"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The first two digits of the post code are the province"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the province is already inside the post code, and a province written on an address is often redundant"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Municipality and province names exist in two languages"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Lleida"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Lérida"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["A Coruña"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["La Coruña"]}," are one place"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"the-administrative-levels","__idx":3},"children":["The administrative levels"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Spain has three levels of administrative area below the country, and below them the places an address names. Only the municipality is written on an address."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Level"},"children":["Level"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Spanish"},"children":["Spanish"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What it is"},"children":["What it is"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Used to address mail"},"children":["Used to address mail"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Example"},"children":["Example"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["comunidad autónoma"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["autonomous community, 17 of them, plus the autonomous cities Ceuta and Melilla at the same level"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cataluña"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["provincia"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["province, 50 of them, and the first two digits of the post code"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no, it is encoded in the post code"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Barcelona (08)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["3"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["municipio"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["municipality, the unit a post code is issued for and the place on the last line"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sabadell"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["below"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["entidad, núcleo, barrio"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a settlement or neighbourhood inside a municipality"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes, where it is the better known name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Poblenou"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ceuta and Melilla are autonomous cities rather than communities, and each is also its own postal province: post code numbers ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["51"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52"]}," follow the 50 provinces numbered ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["01"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["50"]},", so the full range is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["01"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52"]},". A province and a community can also share a name, as Madrid, Murcia and Asturias do, because those communities consist of one province."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The levels that are not written on an address are still business data. The province is the level an SAP region field is keyed on and the level reporting is cut by, and the community is the level at which regional legislation and registers apply. The province is the cheaper of the two to obtain, because it is the first two digits of the post code."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"the-postal-address","__idx":4},"children":["The postal address"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Empresa Ejemplo, S.L.\nCalle Mayor, 12, 3º Izda.\n28013 MADRID\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The street type comes first, then the name, a comma and the number, then the floor and the door. The post code precedes the municipality on the last line, and the province is optional."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"the-part-after-the-number","__idx":5},"children":["The part after the number"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3º Izda."]}," is not a suffix on the house number. It is two separate facts, and the building can have more levels of its own before them:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Written"},"children":["Written"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Spanish"},"children":["Spanish"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Means"},"children":["Means"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3º"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Planta 3"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["piso or planta"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the floor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bajo"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bj."]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["bajo"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the ground floor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Entlo."]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["entresuelo"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the mezzanine above the ground floor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Pral."]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["principal"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the first floor of an older building"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ático"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ático"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the top floor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Izda."]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Izq."]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["izquierda"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the left-hand door on that floor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Dcha."]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Der."]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["derecha"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the right-hand door"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Centro"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["centro"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the middle door"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["A"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["B"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1ª"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["letra or número de puerta"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the door, where there are more than two per floor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Esc."]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["escalera"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the staircase, in a building with several"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Portal"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bloque"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["portal, bloque"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the entrance and the block of a development"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Local"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Nave"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["local, nave"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a commercial unit or a warehouse in an industrial area"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["So ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Calle Mayor, 12, Esc. 2, 3º Izda."]}," reads: number 12 on Calle Mayor, staircase 2, third floor, left-hand door."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"danger","name":"Izda and Dcha are not part of the street name"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Izquierda"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Derecha"]}," describe which door you knock on. Left in the street field they turn ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Calle Mayor"]}," into ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Calle Mayor 3 Izda"]},", which matches nothing, and two flats in one building become two different streets. They are premises and belong in premises fields."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"roads-industrial-estates-and-boxes","__idx":6},"children":["Roads, industrial estates and boxes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["No number."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Calle Mayor, s/n"]}," means the address has no number. It is a statement, and it is kept as one rather than read as a missing house number."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["A kilometre on a road."]}," Out of town the address is a point on a road: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctra. N-II, km 23"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Autovía A-6, km 18,5"]},". The road designation (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["N-II"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["A-6"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["M-40"]},") is part of the road name and the kilometre takes the place of the number. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["N-II"]}," is never a house number."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["An industrial estate."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Polígono Industrial Las Mercedes, Nave 14"]}," has no street. The estate is an area, and the unit inside it is a warehouse or a plot."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["A post office box."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Apartado de Correos 123"]}," replaces the street, and the post code is the one of the post office."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"how-cdq-models-a-spanish-address","__idx":7},"children":["How CDQ models a Spanish address"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The CDQ address model has two parallel hierarchies. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Administrative areas"]}," represent the political containers, typed ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REGION"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["COUNTY"]},". ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Localities"]}," represent the places themselves, typed ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CITY"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DISTRICT"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["QUARTER"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BLOCK"]},". Streets are held as ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["thoroughfares"]}," with the number in its own field, and the position inside the building as typed ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["premises"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Spain maps as follows:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Spanish level"},"children":["Spanish level"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"CDQ concept"},"children":["CDQ concept"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"SAP field"},"children":["SAP field"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["comunidad autónoma, ciudad autónoma"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["administrative area, level 1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REGION"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["region"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["provincia"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["administrative area, level 2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["COUNTY"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["county"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["municipio"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["locality, level 1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CITY"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["city"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["entidad, núcleo"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["locality, level 2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DISTRICT"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["district"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["barrio"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["locality"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["QUARTER"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["district"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["polígono industrial"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["thoroughfare"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INDUSTRIAL_ZONE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["appended to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["district"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["street type and name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["thoroughfare"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["STREET"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["street"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number, or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s/n"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["thoroughfare number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["n/a"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["house number, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HOUSE_NUM1"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["piso, planta"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["premise"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LEVEL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["floor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["puerta, izquierda, derecha, letra"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["premise"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DOOR"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["house number supplement, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HOUSE_NUM2"]},", and room number"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["apartamento"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["premise"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["APARTMENT"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["house number supplement, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HOUSE_NUM2"]},", and room number"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["bloque, edificio, nave"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["premise"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BUILDING"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["building"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["apartado de correos"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["postal delivery point"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST_OFFICE_BOX"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PO box"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["código postal"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["post code"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REGULAR"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["post code"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"why-the-door-goes-to-the-house-number-supplement","__idx":8},"children":["Why the door goes to the house number supplement"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SAP reserves a second house number field, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HOUSE_NUM2"]},", for the Iberian and Latin American convention of a supplement to the house number. Spain is one of the five countries for which CDQ fills it, with Portugal, Brazil, Mexico and Argentina. What goes in there is the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["door"]},", and the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["floor"]}," goes to the dedicated floor field, because SAP has one and because the floor is a different fact from the door."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Three details of today's delivery are worth knowing:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Which premises reach ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HOUSE_NUM2"]},"."]}," The premises typed room, door and apartment, in that order, joined by a comma when more than one is present. A floor is never part of it."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The door is delivered twice."]}," The SAP room number field takes the first of room, door and apartment as well, so the same value is in the house number supplement and in the room number. A consumer that reads both fields sees one door, not two."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The floor stays in its own field."]}," Only a premise typed ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LEVEL"]}," reaches the floor field, which is why a floor that was not recognised as one stays in the street value."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["So ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["12, 3º Izda."]}," is delivered as:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Output field"},"children":["Output field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["house number, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HOUSE_NUM1"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["12"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["floor"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3º"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["house number supplement, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HOUSE_NUM2"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Izda."]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["room number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Izda."]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Why not keep the whole thing in the house number"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["12 3º Izda."]}," answers two different questions in one field: which building on the street, and which unit inside that building. Splitting them is what makes either question answerable on its own."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Keeping them together fails in both directions at once. An exact comparison on street and number stops recognising that a partner at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["12 3º Izda."]}," and a partner at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["12 4º Dcha."]}," are in the same building, which is what site consolidation and hierarchy detection look for. A fuzzy comparison has the opposite problem: most of the characters agree, so it reads them as near identical and can treat two different flats as one partner."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"rejected-alternatives","__idx":9},"children":["Rejected alternatives"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Rejected alternative"},"children":["Rejected alternative"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Why"},"children":["Why"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Treat ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Izda."]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Dcha."]}," as part of the street name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["It is where they arrive, and it is the thing that has to be corrected. A street is a line on the ground shared by every building on it; a door is a property of one flat."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Put the floor in the house number supplement together with the door"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The supplement is one field, and packing two facts into it recreates the problem it exists to solve. SAP has a floor field, and it takes the floor."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s/n"]}," as an empty house number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An empty value says the number was lost. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s/n"]}," says there is none. The two are different findings, and only the first is a defect."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"the-canary-islands-ceuta-and-melilla","__idx":10},"children":["The Canary Islands, Ceuta and Melilla"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These three territories are part of Spain and are addressed as Spain. The address stays ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["country ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES"]}]},", with the Canary Islands as the community ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-CN"]}," and the provinces Las Palmas (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-GC"]},") and Santa Cruz de Tenerife (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-TF"]},"), and with the autonomous cities ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-CE"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-ML"]}," as the region. Their post codes follow the national numbering: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["35"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["38"]}," for the two Canary provinces, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["51"]}," for Ceuta and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52"]}," for Melilla."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["What sets them apart is tax, not address. The Canary Islands, Ceuta and Melilla are outside the EU VAT area, and they apply their own indirect taxes instead (IGIC in the Canary Islands, IPSI in Ceuta and Melilla). That is a property of the region, so it travels with the region and with no change to the country."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The codes ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IC"]}," (Canary Islands) and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EA"]}," (Ceuta and Melilla) exist only as exceptional reservations in ISO 3166-1, requested by the World Customs Organization, and are not officially assigned country codes. The standard treats them as input forms of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES"]}," with the matching region, and never as a country to deliver. The conversion is not yet in place: see ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Current limitations"]},"."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"A customs free zone is not a special territory"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Zona Franca de Barcelona, Vigo or Cádiz is an area inside a municipality. It is address content, an area or industrial zone name, and changes nothing about the country or the region. A partner in the Zona Franca de Barcelona is an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES"]}," address in the province of Barcelona, inside the EU VAT area. Do not confuse it with the three territories above, which are outside the VAT area as a whole."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"mapping-the-region-to-an-sap-region-key","__idx":11},"children":["Mapping the region to an SAP region key"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CDQ delivers the province and the community with their ISO 3166-2 codes. An SAP system does not validate against ISO: it validates the region field against its own region key table, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["T005S"]},", which is part of a 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."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The region key is customer-specific configuration, so this standard does not define one: a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["T005S"]}," is specific to a customer and to a client, and no single value would be correct everywhere. What this standard fixes is the ISO 3166-2 code. The mapping from it to the key your system expects is yours to maintain."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For Spain the key your configuration holds is conventionally the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["province number"]},", the two digits that open the post code, so it sits one level below the community. The Canary Islands, Ceuta and Melilla are ordinary entries in that table under country ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES"]},", with the numbers of their provinces and cities. A Spanish address reaching SAP therefore needs the province, which CDQ delivers as administrative area level 2, and the community has no key of its own to map to. Where a community consists of one province, the two share the key."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treat the ISO code as the value CDQ guarantees and the SAP key as a mapping you own. Confirm which level your configuration uses before deciding which CDQ field feeds it."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"worked-example","__idx":12},"children":["Worked example"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Calle Mayor, 12, 3º Izda., 08201 Sabadell"]},", in the CDQ address model:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Country"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Administrative area 1 (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REGION"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cataluña"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Administrative area 1 code"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-CT"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Administrative area 2 (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["COUNTY"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Barcelona"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Administrative area 2 code"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-B"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Locality 1 (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CITY"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sabadell"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Thoroughfare (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["STREET"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Calle Mayor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Thoroughfare number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["12"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Premise (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LEVEL"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3º"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Premise (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DOOR"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Izda."]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Post code"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["08201"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"reference-data-cdq-maintains-for-spain","__idx":13},"children":["Reference data CDQ maintains for Spain"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"These tables are extracts"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The examples below show the shape of each dataset, not its full contents. The complete published lists for Spain are on the CDQ Wiki page ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://meta.cdq.com/DataModel:CDQ/Business_Partner/Address/Country/ES"},"children":["business partner metadata for Spain"]},", which also covers legal forms, identifier types and the integrated data sources."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"autonomous-communities-and-cities","__idx":14},"children":["Autonomous communities and cities"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["19 entries"]},": the 17 autonomous communities, Ceuta and Melilla. Each carries its ISO 3166-2 code and names in Spanish, English, German, French, Catalan, Basque, Galician, Occitan and Chinese."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Spanish"},"children":["Spanish"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"English"},"children":["English"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Also matched as"},"children":["Also matched as"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-AN"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Andalucía"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Andalusia"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Andalucia"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-CT"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cataluña"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Catalonia"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Catalunya"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-PV"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["País Vasco"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Basque Country"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Euskal Autonomia Erkidegoa"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-CN"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Canarias"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Canary Islands"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Islas Canarias"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-CE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ceuta"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ceuta"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Autonomous City of Ceuta"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"provinces","__idx":15},"children":["Provinces"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["50 entries"]},", held as administrative area level 2 and each linked to its community. Ceuta and Melilla are not repeated here: they are the autonomous cities of the table above. The province code is the ISO code, which is a letter code and not the postal number."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Community"},"children":["Community"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Name"},"children":["Name"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-M"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-MD"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Madrid"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-B"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-CT"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Barcelona"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-GC"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-CN"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Las Palmas"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-TF"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-CN"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Santa Cruz de Tenerife"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-SS"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES-PV"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Gipuzkoa"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The 50 are spread unevenly: Castilla y León has nine, Andalusia eight, and seven communities have one."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"address-terms","__idx":16},"children":["Address terms"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["10 entries"]},", covering four street words, three post office box words and a door word. This is the smallest vocabulary of the countries described in this series."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Identifies"},"children":["Identifies"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Term"},"children":["Term"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Abbreviation"},"children":["Abbreviation"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Street"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Calle"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["C/"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Street"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Carrer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["C/"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Street"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Avenida"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Av."]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Street"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Carretera"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctra"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Post office box"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Apartado de Correos"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Apdo. Correos"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Post office box"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Apartado postal"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["none"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Door"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Puerta"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["none"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Where a term is recognised, the expanded form is written to the thoroughfare value and the abbreviated form to the thoroughfare short name, and the short name is what the SAP street line takes."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"post-code-format","__idx":17},"children":["Post code format"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Five digits, the first two being the province number from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["01"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["52"]},". Separators between the last three digits are tolerated by the published format."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"success","name":"What CDQ standardises"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["community"]}," and the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["province"]}," are standardised against reference data: whether they arrive in Spanish, English or a co-official language, the canonical name and the ISO code are written back."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Street terms"]}," are recognised in the street text and rewritten to the abbreviation, so ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Avenida"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Av."]}," produce the same delivered value."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Post codes"]}," are validated against the five digit format."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The municipality and the levels below it are preserved as submitted. Where an address provider is enabled, it can enrich and complete them."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"current-limitations","__idx":18},"children":["Current limitations"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These are the gaps worth knowing about before designing an integration."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Limitation"},"children":["Limitation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What it means for an integration"},"children":["What it means for an integration"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The Spanish premises vocabulary is almost empty"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Apart from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Puerta"]},", none of the words that carry the floor and the door (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Planta"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Piso"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bajo"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Izda."]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Dcha."]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Esc."]},") is published as reference data. A floor and a door arriving inside the street value stay there: they are never discarded, but the floor field and the house number supplement can be empty for an address that clearly has both. This is the single most important thing to know before loading Spanish addresses."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IC"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EA"]}," are not yet converted to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A record supplied with the country ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IC"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EA"]}," is not converted to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES"]}," today. Supply these addresses as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES"]}," with the province or the autonomous city, which is also what an SAP system expects."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The street vocabulary is short"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Calle, Carrer, Avenida and Carretera are published; Plaza, Paseo, Camino, Ronda, Travesía and the Galician and Basque types ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Rúa"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Kalea"]}," are not yet. Where a type is not published, the street is preserved exactly as submitted and no short name is produced."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Some province names carry the co-official name inside the value"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Several Catalan, Galician and Basque provinces are published with the language tag and the Spanish name inside the name value, for example ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Illes Balears (ca) [Islas Baleares]"]},". A name that arrives without those additions can fail to match the published one, so confirm that your province values resolve before relying on the SAP mapping."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The SAP region key cannot be held at province level"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The reference data carries a default SAP key only at community level, and for one community only. Provinces have no such field, so the province number your configuration expects is yours to supply."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The community and the province are standardised, and not derived"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["One that arrives is matched against reference data and completed. One that is absent stays absent, because CDQ standardises a supplied value rather than deriving one from the post code. Since neither level is part of a Spanish postal address, absent is the normal case, and the first two digits of the post code give the province from your own side."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s/n"]}," and kilometre addresses have no reference data of their own"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["They are carried as supplied. They are kept, but nothing yet checks that an address without a number is intended."]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"danger","name":"Check the street field before you load Spain"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Until the Spanish premises vocabulary is published, the position inside the building generally arrives in the street value and stays there. Before an SAP load, check the street values of your Spanish records for a trailing floor and door, and expect the floor field and the house number supplement to be empty. Where your source already holds the floor and the door in their own fields, supply them that way and they will reach the right output fields."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"summary","__idx":19},"children":["Summary"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A Spanish address writes the street type first, the number after a comma, and then the floor and the door, which are separate facts. It can have no number at all (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s/n"]},"), and out of town it is a kilometre on a road. The province is the first two digits of the post code."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Of the Spanish levels below the country, only the municipality is written on an address. The community and the province are carried because a company is registered in a province, because an SAP region field is conventionally keyed on the province number, and because reporting is cut by both."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CDQ places the community in administrative area level 1 and the province in level 2, the municipality in locality level 1. The building number goes to the house number, the floor to the floor field, and the door to the house number supplement, which is the field SAP reserves for it in Spain, and to the room number as well. The Canary Islands, Ceuta and Melilla stay in country ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ES"]}," and carry their special tax status through their region, while a customs free zone is only a place inside a municipality."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The 19 communities and cities and the 50 provinces are maintained as CDQ reference data, with a short street vocabulary of 10 terms. The premises vocabulary is where the current coverage is weakest, and it is the part a Spanish address depends on most."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"related-resources","__idx":20},"children":["Related Resources"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://meta.cdq.com/DataModel:CDQ/Business_Partner/Address/Country/ES"},"children":["Business partner metadata for Spain"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/documentation/_public/product-manuals/address-guard/country-standards/portugal-address-standard"},"children":["Portugal Address Standard"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/documentation/_public/product-manuals/address-guard/country-standards/france-address-standard"},"children":["France Address Standard"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/documentation/_public/product-manuals/address-guard/country-standards/germany-address-standard"},"children":["Germany Address Standard"]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"your-opinion-matters","__idx":21},"children":["Your opinion matters!"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["We are constantly working on providing an outstanding user experience with our products. Please share your opinion about this tutorial!"]}]},"headings":[{"value":"Spain Address Standard","id":"spain-address-standard","depth":1},{"value":"Overview","id":"overview","depth":2},{"value":"How a Spanish address is built","id":"how-a-spanish-address-is-built","depth":2},{"value":"The administrative levels","id":"the-administrative-levels","depth":3},{"value":"The postal address","id":"the-postal-address","depth":3},{"value":"The part after the number","id":"the-part-after-the-number","depth":3},{"value":"Roads, industrial estates and boxes","id":"roads-industrial-estates-and-boxes","depth":3},{"value":"How CDQ models a Spanish address","id":"how-cdq-models-a-spanish-address","depth":2},{"value":"Why the door goes to the house number supplement","id":"why-the-door-goes-to-the-house-number-supplement","depth":3},{"value":"Rejected alternatives","id":"rejected-alternatives","depth":3},{"value":"The Canary Islands, Ceuta and Melilla","id":"the-canary-islands-ceuta-and-melilla","depth":3},{"value":"Mapping the region to an SAP region key","id":"mapping-the-region-to-an-sap-region-key","depth":3},{"value":"Worked example","id":"worked-example","depth":3},{"value":"Reference data CDQ maintains for Spain","id":"reference-data-cdq-maintains-for-spain","depth":2},{"value":"Autonomous communities and cities","id":"autonomous-communities-and-cities","depth":3},{"value":"Provinces","id":"provinces","depth":3},{"value":"Address terms","id":"address-terms","depth":3},{"value":"Post code format","id":"post-code-format","depth":3},{"value":"Current limitations","id":"current-limitations","depth":2},{"value":"Summary","id":"summary","depth":2},{"value":"Related Resources","id":"related-resources","depth":2},{"value":"Your opinion matters!","id":"your-opinion-matters","depth":2}],"frontmatter":{"seo":{"title":"Spain Address Standard","description":"How Spanish addresses are structured, how CDQ models them in the CDQ address model, how the floor and the door are delivered, how the Canary Islands, Ceuta and Melilla are treated, and which reference data CDQ maintains for Spain."},"toc":{"enable":true},"cdqContentMetadata":{"product":"Address Guard","lastUpdate":"2026-10-23T00:00:00.000Z","author":"Product Management","reviewer":"X-Team TechDocs"}},"lastModified":"2026-10-26T12:57:31.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/documentation/_public/product-manuals/address-guard/country-standards/spain-address-standard","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}