cancel
Showing results for 
Search instead for 
Did you mean: 

Country based currency & decimals issue

Former Member
0 Kudos

Hi All,

Can any one help me here, I need to decide the decimal places for particular currency of a country accordingly I need to add the decimal places.

Example: JPY: Japan yens dont have a decimal place

INR will have 2 decimal places. like this way.

thanks.

Kalyan.

View Entire Topic
Former Member
0 Kudos

Hi,

Ustry the following code.

DATA:

lv_decimals type tcurx-currdec,

lv_amount type char30.

CALL FUNCTION 'G_DECIMAL_PLACES_GET'

EXPORTING

currency = lv_waers (currency key)

IMPORTING

decimal_places = lv_decimals.

IF NOT lv_decimals IS INITIAL.

WRITE: lv_wrbtr TO lv_amount DECIMALS lv_decimals.

endif.

thanks

kasturi

Former Member
0 Kudos

thanks all, my got problem resolved.

ThomasZloch
Active Contributor
0 Kudos

Why not just use the one liner as suggested by Andreas?

Thomas