on 06-12-2009 3:42 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.