For printing addresses, there are country-specific routines which in each case copy the correct postal formatting of the address.
The three-character "Address structure key" for the recipient country controls which of the routines available for formatting addresses in the relevant country is used.
These routines are programmed into the ADDRESS_INTO_PRINTFORM function module.
They are based on different national and
international guidelines and norms, including:
ISO 11180,
contracts of the World Postal Union (Seoul 1994),
international address samples from the World Postal Union
as well as the available rules of the individual countries.
Below you will find an overview of the country-specific formats currently implemented.
Customers can program their own formatting routines using a customer exit. The SZAD0001 SAP enhancement has been defined in development class SZAD for this (-> transaction CMOD).
The following parameters are used depending on the transaction:
If there are not enough lines, then lines are left out according to a standard sequence.
The address format depends on whether the sender country is the same as, or different from, the recipient country. The country is always specified from abroad, either as a text name, or as an identification code of up to three characters (license plate code or country key).
Where the country name is written out in full,
it is written in the language of the sender country. If a language is not
specified for the sender country, or the sender country itself is not
specified, the logon language is used instead.
Exception: the language for the country code can be explicitly overwritten by
a parameter in the print program (e.g. when the country code for customs
transit papers is always to be specified in a particular language, such as
English). if the "Print country name in recipient language" indicator is set
in the print program, the recipient language is used.
Other language-dependent components such as the title and the word 'PO Box'. are printed in the recipient language or the recipient country language. If this cannot be determined, the logon language is again used.
For all formats except Great Britain (006), Japan (013), and South Korea (017), the core of the address is formatted as follows (without empty lines, except for the compulsory empty line:)
The city line and the country name are always printed in upper case for foreign addresses (only for the complete address, not for abbreviations).
The name block generally consists of the following:
"Normal" addresses (address type SPACE and address type 1):
Personal addresses (address type 2):
Business address with department and contact person (address type 3):
In addresses entered in the central R/3 address management (see Release notes Central Address Management for Release 4.0 and Central Address Management for Release 4.5), the street address can comprise several lines (see Print street address ), otherwise street and house number are maintained in the Street field.
Some countries do not have a compulsory empty line (see notes below). The city and district are printed in the city line, connected by a hyphen (exceptions: 004 USA, 006 Great Britain/Ireland, 013 Japan, 015 Germany, 017 South Korea, 019 Denmark), provided that the total length does not exceed 35 characters. If a different city is specified for the PO Box (PFORT), this is used in the PO Box address.
In all formats which use a country code (currently 001 European standard format 002 Italy, 011 Switzerland, 014 Austria and 015 Germany), the license plate code for that country is used. If this is not maintained, the country key in table T005 is used.
If the "Print country name in foreign addresses" flag is set for the sender country in table 005, the country code is not used; the country name is printed in the last line of the address.
Formats 004 (USA), 005 (Canada) and 008 (Singapore) contain a line ('F') for the function of the contact person in the company (if address type = '3'). This line comes immediately after the line 'N' (Name (and title) of the natural person).
In formats 002 (Italy), 004 (USA), 005 (Canada), 006 (Great Britain), 007 (Brazil) and Australia (009), the REGIO field (Region, State, Province, County) is formatted. For the USA, Canada, Brazil and Australia, the key from table T005S is used; for Great Britain the text name from table T005U.
In all countries for which no "Address structure key" is maintained, a standard format is used which corresponds to format "010".
An example of a domestic and a foreign address is given for each address format.
"Short form" is the one-line short form of the address (with Street). The short form without the street is formed ba omitting the middle part.
"DME" is the one-line form for the data medium
(payment transactions without documents per data medium exchange (DME)). The
second line for the data medium is the same as the street line (Street/house
number or PO Box) and is not displayed separately.
001: European standard address
(valid e.g. for Belgium, The Czech Republic, Denmark, Finland, France, Greece, Hungary, Iceland, Liechtenstein, Luxemburg, Monaco, Norway, Portugal, Russia, San Marino, The Slovak Republic, Slovenia, Sweden, Turkey and Vatican City).
Note: The country name is only printed instead
of the license plate code if the "Print country name in foreign addresses"
flag is set for the sender country in the country table.
For Slovenia, the code "SI" is used instead of the license plate code "SLO",
for San Marino and the Vatican the code "I" (for Italy) instead of "RSM" and
"SCV" respectively.
Liechtenstein and Switzerland have a common post office with a uniform postal
code system (they treat each other as domestic).
Examples:
Belgium as the sender country:
SAP Belgium SA
Bld., de la Woluwe 2
1150 Brussels
Short form: SAP Belgium SA / 1150 Brussels
DME: 1150 Brussels
Germany as the sender country ("Print country name in foreign addresses" flag
is not set):
SAP Belgium SA
Bld., de la Woluwe 2
B-1150 BRUSSELS
Short form: SAP Belgium SA / B-1150 Brussels
DME B-1150 Brussels Belgium
USA as the sender country ("Print country name in foreign addresses" flag is
set):
SAP Belgium SA
Bld., de la Woluwe 2
1150 BRUSSELS
BELGIUM
Short form: SAP Belgium SA / 1150 Brussels
DME: 1150 Brussels Belgium
002: Italy
The format is the European standard address
format with the region code at the end of the city line.
003: Netherlands
Note: if the LOCATION (Street 5/ Location)
field is filled, the field contents are output in a line of their own above
the street line (in combination with a PO Box address it is not output).
The city is always in upper-case letters.
There are two spaces between the postal code and the city.
Example:
SAP Nederland B.V.
Bruistensingel 400
5232 AG S'HERTOGENBOSCH
SAP Nederland B.V.
Bruistensingel 400
5232 AG S'HERTOGENBOSCH
NETHERLANDS
Short form:
SAP Nederland B.V. / 5232 AG s'Hertogenbosch
DME:
5232 AG s'Hertogenbosch
5232 AG s'Hertogenbosch Netherlands
004: USA
Note: The city line format is
'City State (= key from T005S) ZIP code'.
If the length of this formatted line is greater than 35 characters, the State
and ZIP code are moved to the next line, which then has the format
"USA State ZIP code" (from abroad) or
"State ZIP code" (from within the USA).
There are two spaces between State and ZIP code.
The district is not output.
The ZIP code is output as entered, i.e. either the 5-characters ZIP code or
ZIP+4 code (with hyphen).
Example:
Superintendent of Documents
U.S.Government Printing
Office
Washington DC 20402-1575
Superintendent of Documents
U.S.Government Printing
Office
WASHINGTON DC 20402-1575
USA
Short form:
Superintendent of Documents / Washington DC 20402-1575
DME: Washington DC 20402-1575
Washington DC 20402-1575 USA
005: Canada
Note: The city line has the format
"City Province (key from T005S) Postal code". Domestically, the postal code
and possibly the province are written on the next line if the city line is too
long. From abroad, the city name is abbreviated if necessary, as the next line
is occupied by the country name.
Example:
Societe canadienne des postes
Ottawa ON K1A 1H7
Societe canadienne des postes
Ottawa ON K1A 1H7
CANADA
Short form:
Societe canadienne des postes / Ottawa ON K1A 1H7
DME:
Ottawa, ON K1A 1H7
Ottawa, ON K1A 1H7 Canada
006: United Kingdom and Ireland
Note: The sequence in which lines are
suppressed deviates from the standard (see the LINE_PRIORITY parameter
documentation in the ADDRESS_INTO_PRINTFORM function module).
The format is as follows:
If there is a district, it is output on a line
of its own, below street/PO Box and above the city lines.
If it does not cause any other lines to be suppressed, the city is formatted
in two or three lines, i.e. either:
City
County (text from T005U)
Postcode
or:
City
County Postcode
or:
City Postcode
Example:
The Post Office
Post Office Headquarters
33 Grosvenor Place
London
SW1X 1PX
The Post Office
Post Office Headquarters
33 Grosvenor Place
LONDON
SW1X 1PX
GREAT BRITAIN
Short form:
The Post Office / SW1X 1PX
DME:
London SW1X 1PX
London SW1X 1PX Great Britain
007: Brazil
Note: The state code (key from T005S) is added to the city line with a hyphen.
Example:
Entreprise bresilienne des
postes et telegraphes
SBN - Conjunto 3 - Bloco A
70002-Brasilia-DF
Entreprise bresilienne des
postes et telegraphes
SBN - Conjunto 3 - Bloco A
70002-BRASILIA-DF
BRAZIL
Short form:
Entreprise bresilienne des / 70002-Brasilia-DF
DME:
70002 Brasilia-DF
70002 Brasilia-DF Brazil
008: Postal code after the city (e.g. Singapore)
Note: The city line format is
"City Postal code".
Example:
Postal Services Group Telecoms
111 Somerset Road 05-06
Singapore 0923
Postal Services Group Telecoms
111 Somerset Road 05-06
SINGAPORE 0923
SINGAPORE
Short form:
Postal Services Group Telecoms / Singapore 0923
DME:
Singapore 0923
Singapore 0923 Singapore
009: Australia
Note: The city line contains
'City Province (key from T005S) Postal code', or, if this line is more than 35
characters long, only
'City Province'.
The city line is always output in upper-case letters
Example:
Australian Postal Commission
PO Box 302
CARLTON SOUTH VC 3053
Australian Postal Commission
PO Box 302
CARLTON SOUTH VC 3053
AUSTRALIA
Short form:
Australian Postal Commission / Carlton South VC 3053
DME:
Carlton South VC 3053
Carlton South VC 3053 Australia
010: Postal code before the city, without country code (e.g. China).
Example:
Direction generale des postes
et telegraphes
28070 Madrid
Direction generale des postes
et telegraphes
28070 MADRID
SPAIN
Short form:
Direction generale des postes / 28070 Madrid
DME:
28070 Madrid
28070 Madrid Spain
011: Switzerland
Note: The country name is only output instead
of the license plate code if the "Print country name in foreign addresses"
flag is set for the sender country in the country table.
No compulsory empty line. Switzerland and Liechtenstein have a common post
office with a uniform postal code system (they treat each other as
domestic).
Examples:
Switzerland as the sender country:
SAP (Schweiz) AG
Leugenestr.6
2500 Biel 6
Short form: SAP (Schweiz) AG / 2500 Biel 6
DME: 2500 Biel 6
Germany as the sender country: ("Print country name in foreign addresses"
indicator is not set):
SAP (Schweiz) AG
Leugenestr.6
CH-2500 BIEL 6
Short form:SAP (Schweiz) AG / CH-2500 Biel 6
DME: CH-2500 Biel 6 Switzerland
USA as the sender country: ("Print country name in foreign addresses" flag is
set):
SAP (Schweiz) AG
Leugenestr.6
2500 BIEL 6
SWITZERLAND
Short form:SAP (Schweiz) AG / 2500 Biel 6
DME: 2500 Biel 6 Switzerland
012: South Africa
Note: The postal code is in a new line below the city. In letters from abroad, the country name comes after the postal code.
Example:
Postmaster General
Private Bag X148
Pretooria
0001
Postmaster General
Private Bag X148
PRETORIA
0001 SOUTH AFRICA
Short form:
Postmaster General / 0001 Pretoria
DME:
0001 Pretoria
0001 Pretoria South Africa
013: Japan
Note: The postal code of the PO Box is
ignored.
The following format applies from abroad:
Example:
Ministere des postes et
telecommunications
3-2, Kasumigaseki 1 chome
CHIYODA-KU, TOKYO
JAPAN 100
Within Japan:
Short form:
Ministere des postes et / Chiyoda-ku
DME:
Tokyo -
Tokyo - Japan
014: Austria
Note: The country name is only printed instead
of the license plate code if the "Print country name in foreign addresses"
flag is set for the sender country in the country table.
No compulsory empty line.
When Austria is the sender country, the country name is added in the last line
even if the flag 'Print country name in foreign address' is not set
Examples:
Austria as the sender country:
SAP Ges.m.b.H.
Stadlauer Straße 54
1221 Vienna
Short form:SAP Ges.m.b.H./ Stadlauer Straße 54 / 1221 Vienna
DME: 1221 Vienna
Germany as the sender country ("Print country name in foreign addresses"
indicator is not set):
SAP Ges.m.b.H.
Stadlauer Straße 54
A-1221 VIENNA
Short form:SAP Ges.m.b.H. / A-1221 Vienna
DME: A-1221 Vienna Austria
USA as the sender country ("Print country name in foreign addresses" indicator
is set):
SAP Ges.m.b.H.
Stadlauer Straße 54
1221 VIENNA
AUSTRIA
Short form:SAP Ges.m.b.H./ Stadlauer Straße 54 / 1221 Vienna
DTA: 1221 Vienna Austria
015: Germany (with license plate code)
Note: The country name is only printed instead
of the license plate code if the "Print country name in foreign addresses"
flag is set for the sender country in the country table.
The district is output on an individual line before the street line for the
street address (company address).
The district is not output in PO box addresses or for large customers who have
their own postal code.
Examples:
Germany as the sender country:
Firma
Meyer und Söhne
Riem
Hauptstr. 57
81829 Munich
Short form: Meyer und Söhne / 81829 Munich
DME: 81829 Munich
France as the sender country ("Print country name in foreign addresses" flag
is not set):
Firma
Meyer und Söhne
Riem
Hauptstr. 57
D-81829 MUNICH
Short form: Meyer und Söhne / Hauptstr. 57 / D-81829 Munich
DME: D-81829 Munich
USA as the sender country ("Print country name in foreign addresses" flag is
set):
Firma
Meyer und Söhne
Riem
Hauptstr. 57
81829 MUNICH
GERMANY
Short form: Meyer und Söhne / Hauptstr. 57 / 81829 Munich
DME: 81829 Munich Germany
017: South Korea
Note: The PO Box postal code is ignored.
From abroad:
- Name block with title
- Street
- District
- City
- Country postal code
Example:
SAP Korea Ltd.
23-2, Youido-dong
Seoul
South Korea 150-010
Address with PO Box :
Name block
Street (the Post office with the PO Box)
'PO BOX' PO Box
District
City
Country postal code
Example:
Samsung SDS Co. Ltd.
Chamshil Post Office
PO BOX 123456
Songpa-gu
Seoul
South Korea 123-456
Within Korea:
- City, District
- Street
- Name 1
- Name 2
- Name 3
- Name 4
- Postal code
Example:
Seoul, Youngdeungpo-ku
23-2 Youido-dong
SAP Korea Ltd.
150-010
Addresses with PO Boxes :
City, District
Street (the Post office with the PO Box)
'PO BOX' PO Box
Name block
The Korean name for 'PO Box' is output.
Example:
Seoul Songpa-gu
Chamshil Post Office
PO BOX 123456
Samsung SDS Co. Ltd.
123-456
Kurzform:
Samsung SDS Co. Ltd./Seoul
DTA:
Seoul 123-456
019: Denmark
Notes: The country name is only output instead
of the license plate code, if the "Print country name in foreign address" flag
is set for the sender country in the country table.
The district is output in an extra line above the district. It is not output
in PO Box and major customer addresses
Example:
Sender country Denmark:
SAPFuture Dänemark A/S
Tietgensgade 23
Kastrup
1566 Copenhagen
Short form: SAPFuture Dänemark A/S / Tietgensgade 23 / 1566 Copenhagen
DTA: 1566 Copenhagen