on 10-30-2008 5:48 AM
Dear All,
I want to Print the amount in words in Smart Forms.
Is there any function modules <<removed by moderator>>.
Also how to call it in SF.
Thank you in advance,
Arun.
Search before posting and Read the rules of engagement
you can use the function module:
HR_IN_CHG_INR_WRDS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Hope this FM may work for u...
We can use the Function module SPELL_AMOUNT which transforms numeric values into text in the language specified.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = AMOUNT
CURRENCY = CURRENCY
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = SPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.
regards
vachana
Edited by: vachana jawaji on Oct 30, 2008 12:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This has been discussed a lot of times already in the forum, if you have done a search you would have got hundreds of threads.
Do search the Forum before posting a question.
Read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting more.
Search Results for [ amount in words (1238 Results)|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=amountinwords&cat=sdn_all]
Search Results for [Spell_amount (158 Results)|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=spell_amount&cat=sdn_all]
Regards
Karthik D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
PARAMETERS : p1_num TYPE i,
sy_langu TYPE sy-langu.
DATA: v1_num_text TYPE spell,
v2_text_len TYPE i,
v_text(255) TYPE c,
v3_count TYPE i VALUE 1,
v4_space type c.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = p1_num
CURRENCY = 'EUR'
FILLER = ' '
language = sy_langu
IMPORTING
in_words = v1_num_text.
v_text = v1_num_text-word.
thankx,
raji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
f.m
spell_amount
IN_WORDS type spell.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = TOTAL1
CURRENCY = 'INR'
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = IN_WORDS
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.
Edited by: shan palani on Oct 30, 2008 11:22 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.