Skip to Content
author's profile photo Former Member
Former Member

Conversion of amount useing spell_amount function


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.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 10, 2005 at 10: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.



    Add a comment
    10|10000 characters needed characters exceeded

    • 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.
                amount   = hfield
                currency = waers
      *         language = 'EN'
                in_words = spell.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.