‎2005 Aug 10 11:01 AM
Hi
I am facing a peculiar problem while printing purchase invoice my invoice currency is Japanese Yen suppose in want to convert 670000.00 with spell_amount function it is converting 67 millions while for Indian rupees & USD it is printing correct. please help.
Thanks
Vinayak
‎2005 Aug 10 11:09 AM
Hi Vinayak!
Check in table TCURX, how many decimals for the currencies are customized. Internally always two decimals are displayed (based on data element), but real value depends on TCURX (is converted by WRITE correctly).
If Yen is maintained with 0 decimals, then output is correct.
Regards,
Christian
‎2005 Aug 10 12:47 PM
Hi,
so you've to move amount to a help-field
PARAMETERS: amount TYPE bseg-wrbtr DEFAULT '67000.00',
waers TYPE bkpf-waers DEFAULT 'JPY'.
DATA hfield TYPE p DECIMALS 0.
TABLES spell.
MOVE amount TO hfield.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = hfield
currency = waers
* language = 'EN'
IMPORTING
in_words = spell.Andreas