Pages

Showing posts with label Decimal Places in Currency. Show all posts
Showing posts with label Decimal Places in Currency. Show all posts

Wednesday, January 4, 2012

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.