Banner
Banner

Attention: open in a new window. PDFPrintE-mail

2010
26
Feb

SAP ABAP Decimal Places in Currency

If you wish to find the decimal places in the currency you can use the following function module.

G_DECIMAL_PLACES_GET

The table that stores the Currencies in SAP system (Currency Codes) is TCURC. The code below shows the decimal places for a particular currency.

REPORT ZEX_CURRENCY .

Parameters: p_curr(10).

Data: d_decpl like TCURX-CURRDEC.

CALL FUNCTION 'G_DECIMAL_PLACES_GET'
EXPORTING
CURRENCY            = p_curr
IMPORTING
DECIMAL_PLACES       = d_decpl .

Write: 'Decimal Places ', d_decpl.
Last Updated (Tuesday, 30 November 1999 00:00)
Banner
Free software downloads