SAP ABAP Data Element ADDRS_005 (Formatting routine key for printing addresses)
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-ADR (Application Component) Address Management/Business Address
     SZAD (Package) SAP Technology - Business Services: Address Management
Basic Data
Data Element ADDRS_005
Short Description Formatting routine key for printing addresses  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type ADDRS    
Data Type CHAR   Character String 
Length 3    
Decimal Places 0    
Output Length 3    
Value Table T005A    
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Long 25 Address layout key 
Heading 15 Address routine 


For printing addresses, there are country-specific routines which in each case copy the correct postal formatting of the address.

The three-character "Address Layout 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 the package SZAD for this (-> transaction CMOD).

General formatting rules

The following parameters are used depending on the transaction:

  • whether the company address (street/house number) or the P.O. Box address is printed if both exist,
  • how many lines are available for printing,
  • which is the sender country.

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" flag 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:)

  • title line (if applicable)
  • name block (differs depending on the address type, see below)
  • street address or PO Box
  • (compulsory empty line, if applicable)
  • city line with postal code
  • country code (if applicable)

The city line and the country name are always printed in upper case for foreign addresses (only for the complete address, not for short forms).

The name block generally consists of the following:

"Normal" addresses (address type SPACE and address type 1):

  • NAME1
  • NAME2
  • NAME3
  • NAME4

Personal addresses (address type 2):

  • Title of person and name of person

Business address with department and contact person (address type 3):

  • NAME1
  • NAME2
  • NAME3
  • NAME4
  • department
  • title of person and name of person

In addresses entered using Business Address Services (central 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 and 014 Austria ), 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".

Overview of the country-specific formats currently implemented

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 by 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).

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

Italy as the sender country ("Print country name in foreign addresses" flag is not set):
SAP Belgium SA
Bld., de la Woluwe 2

Short form: SAP Belgium SA / Bld., de la Woluwe 2 / 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

Short form: SAP Belgium SA / Bld., de la Woluwe 2 / 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.

SAP Nederland B.V.
Bruistensingel 400

SAP Nederland

Last changed by/on SAP  20110908 
SAP Release Created in