{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","partial"]},"type":"markdown"},"seo":{"title":"Portugal Address Standard","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]},"description":"How Portuguese addresses are structured, how CDQ models them in the CDQ address model, how the floor and side of a door are delivered, and which reference data CDQ maintains for Portugal."},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"portugal-address-standard","__idx":0},"children":["Portugal Address Standard"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"overview","__idx":1},"children":["Overview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A Portuguese address puts three numbers on the street line: the number of the building, the floor inside it, and which door on that floor. The last two look like a single afterthought written as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2.º Dto"]},", and they are the part most often lost, because most address models have nowhere to put them."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This article describes the Portuguese address format, how CDQ represents it in the CDQ address model, how the floor and the side of the door are delivered, and which reference data CDQ maintains for Portugal. It is the reference for anyone mapping Portuguese business partner data into CDQ, or consuming curated Portuguese 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 Portuguese address is structured, and what the part after the house number means"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Why none of the three administrative levels appears on a Portuguese address, and what still needs them"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["How each Portuguese level maps to a concept in the CDQ address model, and which SAP field it reaches"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Why the floor and the side of the door go to two different output fields, and which one is the house number supplement"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Which reference data CDQ maintains for Portugal, and what the published values look like"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Where the current CDQ coverage for Portugal 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/PT"},"children":["CDQ Wiki: business partner metadata for Portugal"]},": browse the published Portuguese metadata"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"how-a-portuguese-address-is-built","__idx":2},"children":["How a Portuguese address is built"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A Portuguese 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 Portugal 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 Portugal"},"children":["Specific to Portugal"]},{"$$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":["2.º Dto"]}," 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":["The post code has a three digit extension precise to one building"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["it is far more specific than a normal postal code, and the seven digits are one value rather than two"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The building number follows a comma"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["and street names frequently contain numbers, so the first number on the line is often part of the name"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The postal locality is not always the municipality"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a Portuguese city field can hold a village that appears in no municipality list"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None of the three administrative levels appears on an address"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a Portuguese address without a district is complete as an address"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"the-administrative-levels","__idx":3},"children":["The administrative levels"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Portugal has three administrative levels below the country and one postal level. None of the administrative ones is used to deliver mail."]},{"$$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":"Portuguese"},"children":["Portuguese"]},{"$$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":["distrito"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["district, 18 on the mainland, with the Azores and Madeira as autonomous regions at the same level"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Lisboa"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["concelho or município"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["municipality, 308 of them"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Lisboa"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["3"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["freguesia"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["civil parish, the smallest administrative unit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["no"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Santa Maria Maior"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["postal"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["localidade"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the postal locality, which is what the post code is issued against"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["LISBOA"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The district and the municipality frequently share a name, as Lisboa and Porto do, so a name on its own does not say which level it belongs to."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The three administrative levels are still business data: the municipality is what a Portuguese company is registered in, and the district is the level an SAP region field is usually keyed on and the level reporting is cut by."]},{"$$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 Exemplo, Lda.\nRua Augusta, 123, 2.º Dto\n1100-053 LISBOA\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The street type comes first, then the name, then a comma and the building number, then the floor and the door. The post code precedes the postal locality on the last line."]},{"$$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":["2.º Dto"]}," is not a suffix on the house number. It is two separate facts:"]},{"$$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":"Portuguese"},"children":["Portuguese"]},{"$$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":["2.º"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["segundo andar"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["second floor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["R/C"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["rés-do-chão"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ground floor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cv"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["cave"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["basement"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Sob."]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["sobreloja"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["mezzanine"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Dto"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["direito"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the right-hand door on that floor"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Esq"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["esquerdo"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the left-hand door"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Frt"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["frente"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the front door"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Tras"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["trás"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the rear door"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["So ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Rua Augusta, 123, 2.º Dto"]}," reads: number 123 on Rua Augusta, second floor, right-hand door. Where a building has more than two doors per floor, letters are used instead: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2.º A"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2.º B"]},"."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"danger","name":"Dto and Esq are not part of the street name"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Direito"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Esquerdo"]}," describe which door you knock on. Left in the street field they turn ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Rua Augusta"]}," into ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Rua Augusta 2 Dto"]},", which matches nothing, and two flats in the same building become two different streets. They are premises and belong in premises fields."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"the-post-code-is-more-precise-than-a-post-code","__idx":6},"children":["The post code is more precise than a post code"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Since 1998 a Portuguese post code has been four digits, a hyphen and three more: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1100-053"]},". The first four identify a postal area. The three digit extension identifies a single street, a section of a long street, one building, or one high volume recipient."]},{"$$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":"Form"},"children":["Form"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Example"},"children":["Example"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Status"},"children":["Status"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Four digits and a three digit extension"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1100-053"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the current format"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Four digits only"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1100"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["the pre-1998 format, still present in older master data"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["An extension of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-000"]}," is used where no more precise code exists. A four digit code is not wrong, it is old, and it cannot be completed without the street."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Both forms are validated and neither is rewritten, so a seven digit value arriving without its hyphen is carried as supplied and a four digit code is not completed. Post code normalisation is currently available for Canada and Mexico."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"properties-that-regularly-cause-integration-errors","__idx":7},"children":["Properties that regularly cause integration errors"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The building number follows a comma, and the comma matters."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Rua Augusta, 123"]}," separates the name from the number. Without it, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Rua Augusta 123"]}," is still readable, but ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Avenida 5 de Outubro, 12"]}," without the comma is not: the 5 belongs to the street name and the 12 to the building."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Numbers in street names are common."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Avenida 24 de Julho"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Rua 5 de Outubro"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Praça 8 de Maio"]},". A parser that takes the first number it sees as the house number will take the date."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Lote and Bloco are not house numbers."]}," In a planned development the address can be ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Lote 12, Bloco B"]},", where the plot number replaces the street number and the block letter identifies one building of several."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Urbanização, Bairro and Quinta name an area, not a street."]}," They frequently appear on the line above the street and identify the development the street sits in."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["A freguesia name repeats across the country."]}," Santo António, São Pedro and Santa Maria occur in dozens of municipalities. A parish name is only meaningful with its municipality."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"The postal locality is not always the municipality"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The name on the post code line is the postal locality, which for a small place is the name of the village rather than the municipality it belongs to. A Portuguese city field can therefore hold a place that appears in no municipality list."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"how-cdq-models-a-portuguese-address","__idx":8},"children":["How CDQ models a Portuguese 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":["Portugal 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":"Portuguese level"},"children":["Portuguese 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":["distrito"]},{"$$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":["concelho"]},{"$$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":["localidade"]},{"$$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":["freguesia"]},{"$$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":["urbanização, bairro, quinta"]},{"$$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":["zona 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":["building number, or the lote"]},{"$$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":["andar, the floor"]},{"$$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":["Dto, Esq, Frt, Tras, or the door letter"]},{"$$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"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["bloco"]},{"$$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":["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"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Apartado"]},{"$$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-floor-and-the-door-go-to-different-fields","__idx":9},"children":["Why the floor and the door go to different fields"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is the decision that makes a Portuguese address survive an SAP load."]},{"$$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. Portugal is one of the five countries for which CDQ fills it. What goes in there is the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["door"]},": the side, or the letter, or the apartment. 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":["So ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["123, 2.º Dto"]}," 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":["123"]}]}]},{"$$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":["2.º"]}]}]},{"$$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":["Dto"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Three separate facts in three separate fields, each of which can be compared, and none of which has to be parsed back out of a string."]},{"$$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":["123 2.º Dto"]}," 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":["123 2.º Dto"]}," and a partner at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["123 3.º Esq"]}," 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 in those two values agree, so it reads them as near identical and can treat two different flats as one partner. The combined value is too different for the first check and too similar for the second."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Multi-tenant buildings are also where the question gets asked in the first place, because that is where several business partners share one street and one number."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"rejected-alternatives","__idx":10},"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":["Dto"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Esq"]}," 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 side 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":["Split the post code into the four digit area and the three digit extension"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The seven digits are one post code, written with a hyphen. Separating them invites a partial write in which an extension outlives the area code it belonged to, producing a code that was never issued."]}]}]}]}]},{"$$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 district 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, ",{"$$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 Portugal the key your configuration holds is conventionally the district number, which is the numeric part of the ISO code you receive, so the mapping is a transformation rather than a lookup."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treat the ISO code as the value CDQ guarantees and the SAP key as a mapping you own."]},{"$$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":["Rua Augusta, 123, 2.º Dto, 1100-053 Lisboa"]},", 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":["PT"]}]}]},{"$$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":["Lisboa"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Administrative area 1 short name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["11"]}]}]},{"$$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":["Lisboa"]}]},{"$$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":["Lisboa"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Locality 2 (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DISTRICT"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Santa Maria Maior"]}]},{"$$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":["Rua Augusta"]}]},{"$$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":["123"]}]}]},{"$$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":["2.º"]}]}]},{"$$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":["Dto"]}]}]},{"$$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":["1100-053"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"reference-data-cdq-maintains-for-portugal","__idx":13},"children":["Reference data CDQ maintains for Portugal"]},{"$$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 Portugal are on the CDQ Wiki page ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://meta.cdq.com/DataModel:CDQ/Business_Partner/Address/Country/PT"},"children":["business partner metadata for Portugal"]},", which also covers legal forms, identifier types and the integrated data sources."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"districts-and-autonomous-regions","__idx":14},"children":["Districts and autonomous regions"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["20 entries"]},": the 18 mainland districts, the Azores and Madeira. Each carries its ISO 3166-2 code and names in Portuguese, with English, French, German and Chinese where these exist."]},{"$$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":"Portuguese"},"children":["Portuguese"]},{"$$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":["PT-11"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Distrito de Lisboa"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Lisbon District"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Lisboa, Lisbon"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PT-13"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Distrito do Porto"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Porto District"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PORTO"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PT-15"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Distrito de Setúbal"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Setúbal District"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SETÚBAL"]},", Setubal"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PT-20"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Açores"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Azores"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["not published"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PT-30"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Madeira"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Madeira"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Madeira Island"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Districts whose name carries a diacritic are also matched without it, so ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Evora"]}," resolves to Évora and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Braganca"]}," to Bragança."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"address-terms","__idx":15},"children":["Address terms"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["38 entries"]},", covering the Portuguese street vocabulary with the official abbreviation."]},{"$$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":"Term"},"children":["Term"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Abbreviation"},"children":["Abbreviation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What it is"},"children":["What it is"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rua"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["R."]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["street"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Avenida"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AV"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["avenue"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Praça"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PC"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["square"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Largo"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LG"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a small square"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Travessa"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TV"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a cross street"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Beco"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BC"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["an alley"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Estrada"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ESTR"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a road"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Caminho"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CAM"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a lane"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Calçada"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CC"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a paved climbing street"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Alameda"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a tree-lined avenue"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rotunda"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ROT"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a roundabout"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Praceta"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PCT"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a small square off a street"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Urbanização"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["URB"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a development"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Loteamento"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LOTEAM"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a subdivision"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bairro"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BR"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["a neighbourhood"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Apartado"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["none"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["post office box"]}]}]}]}]},{"$$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":16},"children":["Post code format"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Four digits, a hyphen, three digits. The four digit form is recognised as the superseded format. A country prefix is removed, so ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PT-1100-053"]}," resolves to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1100-053"]},"."]},{"$$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":["district"]}," is standardised against reference data: whether it arrives with or without the word Distrito, with or without its diacritics, 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 official 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"]}," have their country prefix removed and are validated against the seven digit format, with the four digit form recognised as superseded."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The municipality, the parish and the locality 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":17},"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 Portuguese premises vocabulary is not yet published"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The floor and the door are the part of a Portuguese address that most needs recognising, and the Portuguese words for them are not yet maintained as reference data. Until they are, 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 Portuguese addresses."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The street vocabulary covers the common forms and not yet all of them"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Where a Portuguese street type is published, the street is delivered expanded in the thoroughfare value and abbreviated in the short name, and the short name is what the SAP street line takes. Where the type is not yet 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":["The district is standardised, and not derived"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A district 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 the district is not part of a Portuguese postal address, absent is the normal case, and deriving it needs a published post code to locality table."]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"danger","name":"Check the street field before you load Portugal"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Until the Portuguese 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 Portuguese 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":18},"children":["Summary"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A Portuguese address writes the street type first, the building number after a comma, and then the floor and the side of the door. Those last two are separate facts, and the post code that follows carries a three digit extension precise enough to identify one building."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["None of Portugal's three administrative levels is written on an address. The district, the municipality and the parish are carried because a company is registered in a municipality, because an SAP region field is usually keyed on the district, and because reporting is cut by both."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CDQ places the district in administrative area level 1 and the municipality in level 2, the postal locality in locality level 1 and the parish in level 2. The building number goes to the house number, the floor to the floor field, and the side of the door to the house number supplement, which is the field SAP reserves for exactly this in Portugal. The post code stays one value."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The twenty districts and the Portuguese street vocabulary are maintained as CDQ reference data. The premises vocabulary is where the current coverage is weakest, and it is the part a Portuguese address depends on most: until the floor and door words are published, both usually arrive inside the street value and stay there. Municipalities and parishes are preserved as submitted."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"related-resources","__idx":19},"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/PT"},"children":["Business partner metadata for Portugal"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/documentation/_public/articles/country-standards/france-address-standard"},"children":["France Address Standard"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/documentation/_public/articles/country-standards/germany-address-standard"},"children":["Germany Address Standard"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/documentation/_public/articles/country-standards/united-states-address-standard"},"children":["United States Address Standard"]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"your-opinion-matters","__idx":20},"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":"Portugal Address Standard","id":"portugal-address-standard","depth":1},{"value":"Overview","id":"overview","depth":2},{"value":"How a Portuguese address is built","id":"how-a-portuguese-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":"The post code is more precise than a post code","id":"the-post-code-is-more-precise-than-a-post-code","depth":3},{"value":"Properties that regularly cause integration errors","id":"properties-that-regularly-cause-integration-errors","depth":3},{"value":"How CDQ models a Portuguese address","id":"how-cdq-models-a-portuguese-address","depth":2},{"value":"Why the floor and the door go to different fields","id":"why-the-floor-and-the-door-go-to-different-fields","depth":3},{"value":"Rejected alternatives","id":"rejected-alternatives","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 Portugal","id":"reference-data-cdq-maintains-for-portugal","depth":2},{"value":"Districts and autonomous regions","id":"districts-and-autonomous-regions","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":"Portugal Address Standard","description":"How Portuguese addresses are structured, how CDQ models them in the CDQ address model, how the floor and side of a door are delivered, and which reference data CDQ maintains for Portugal."},"toc":{"enable":true},"cdqContentMetadata":{"product":"Address Guard","lastUpdate":"2026-09-03T00:00:00.000Z","author":"Product Management","reviewer":"X-Team TechDocs"}},"lastModified":"2026-09-09T10:44:30.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/documentation/_public/articles/country-standards/portugal-address-standard","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}