Replacing SAP Codes With ISO Codes 

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 subroutine <Segment-Typ>_codes_sap_to_iso.