Show TOC

Converting Currency AmountsLocate this document in the navigation structure

Procedure

Currency amounts have to be converted from an SAP system format to a format that can be understood externally. In the SAP system, all currency amounts are stored with two decimal places. If a currency has a different number of decimal places, the currency amount has to be converted. You can use function module currency_amount_sap_to_idoc for this conversion; it performs a suitable currency amount conversion for IDocs.

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