cancel
Showing results for 
Search instead for 
Did you mean: 

RE: Decimal Currency

Former Member
0 Kudos

Hi,

I am working on SMARTFORMS and struck up with an issue.

While printing the amount in words , I want the decimal currency to be printed after the

decimal amount in words.

For ex: If the amount is 10.25 INR, I have to print it as 10 rupees and 25 paise.

I am able to fetch the 'rupees' from the table. Please let me know the table name from

where 'paise' is fetched.

Regards,

Farhana

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on Jun 12, 2009 11:45 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Use the Funtion module Spell_amount and there pass the parameters amount, Currency and Language.

Then the amount in words is exported through an exporting parameter In_words structure in which the field Word contains Rupees

field Decword contains Decimals

So while printing in the smartform you can give as

IN_words-word Rupees IN_words-decword Paisa.

Hope this will help you,

Regards,

Venkat.

Former Member
0 Kudos

Hi,

U ill get this in Structure SPELL field DECWORD, Use Funtion Module 'SPELL_AMOUNT' and u ill get all the rqd values in EXPORTING parameter IN_WORDS of Function Module . to know how to use goto SE37 and give FM name and click on Where used list button.

Eg:

data : decimal_word TYPE DECWORD.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

amount = sum

currency = 'ZCURR'

filler = ' '

language = 'R'

IMPORTING

in_words = spell

EXCEPTIONS

not_found = 1

too_large = 2

OTHERS = 3.

komser-snrln = spell-word.

decimal_word = spell-DECWORD.

Hope its clear!!

Rgds,

Pavan

naimesh_patel
Active Contributor
0 Kudos

I guess SAP doesn't store that information.

Check this thread

Regards,

Naimesh Patel