cancel
Showing results for 
Search instead for 
Did you mean: 

Amount in words in Smart Forms.

former_member502553
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

you can use the function module:

HR_IN_CHG_INR_WRDS.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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