You can assign a key for the country-specific formatting routine to each country.
You do this in the group box Address format in the field Address layout key ( T005-ADDRS ).
For countries that have a routine contained in the standard system, these fields are predefined accordingly.
Customer-specific address layout keys
It is also possible to define customer-specific formatting routines using the customer exit SZAD0001 .
You must assign a key in the customer namespace from 900 to 999 to these routines.
If you want to program your own formatting routine, you can use customer exit SZAD0001 in transaction CMOD .
You can find the documentation for this exit in transaction CMOD or with function module EXIT_SAPLSADR_001 .
To activate customer exit SZAD0001 please read the following notes:
25276 - SAP enhancement concept CMOD: Activation
38922 - Customer enhancement SZAD0001: Doc. not translated
839466 - Template for implementing Customer Exit SZAD0001
Printing the country name
Another Customizing parameter that affects the printing of addresses is the indicator 'Print country name' ( T005-XADDR ).
This indicator is a setting that refers to the sender country of the address
(in contrast to the address layout key which is assigned directly to each recipient country).
This indicator controls if the country name or an ID is printed in foreign addresses.