Show TOC

Procedure documentationReplacing SAP Codes with ISO Codes

Procedure

There are ISO codes for country keys, currency keys, units of measure and shipping instructions. According to SAP design guidelines, you should use ISO codes for an IDoc if they are available. When you set up the IDoc, the SAP codes have to be replaced by ISO codes. To do this, you can use these function modules:

Function modules for converting SAP codes

Domain

Function Module

Currency keys

currency_code_sap_to_iso

Country keys

country_code_sap-to_iso

Units of measure

unit_of_measure_sap_to_iso

Shipping instructions

sap_to_iso_package_type_code

We recommend that you encapsulate the code in a <Segment type>_codes_sap_to_iso subroutine.