on 06-06-2007 3:01 PM
My requirement is to print the sales order details.In dat in last page i hav to get the amount in words of total value with in Smart form.
Tanx,
Santu.
Hi,
Use the FM SPELL_AMOUNT.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = PAMOUNT
CURRENCY = PWAERS
FILLER = SPACE
LANGUAGE = 'E'
IMPORTING
IN_WORDS = T_SPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.
Hope this helps.
Regards,
Richa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
U can use this FM.
data: words(50) type c.
call function 'HR_IN_CHG_INR_WRDS'
exporting
amt_in_num = '100000'
importing
amt_in_words = words.
write:/ words.
Rgds
Anversah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi santosh,
u can use function module SPELL_AMOUNT to spell amount in words...
just pass the amount value in that function module and select language as SY-LANGU.
u will get amount in words...
this will solve ur problem...
Please reward points in case usefull....
Regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
USe FM 'HR_IN_CHG_INR_WRDS' "It displays Lakhs
'SPELL_AMOUNT' " It displays in Million.
Reward points if useful.
Regards,
SaIRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
There is one function module and the explanation to this is given below.
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
amt_in_num = var_tot1
IMPORTING
amt_in_words = v_total
EXCEPTIONS
data_type_mismatch = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Here (a) <b>var_tot1 is the vbrp-netwr basically a currency field</b>.
(b) <b>v_total is a character type length 64 (string) field</b> which holds the words for number in var_tot1.
Hope this solves your query.
Reward points if useful.
Thanks,
Tej..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Use the FM <b>SPELL_AMOUT</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.