on 07-12-2010 6:52 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use abap command (read F1):
write bsegr-wrbtr to xfield currency 'JPY' / resp. bkpf-waers...
hope taht helps
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The decimals for a particular currency is maintained in OY04 transaction. Also, you can get the no of decimal places for a particular currency using BAPI_CURRENCY_GETDECIMALS.
Could you elaborate your requirement please? Are you using a smartform or sapscripts?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.