Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Amount in words

Former Member
0 Kudos

Hi,

I need tp print the value in AMOUNT field in one of my report in words.

How do i proceed for that?

Regards

Nishant

1 ACCEPTED SOLUTION

former_member416164
Participant
0 Kudos

Hi,

Check the function module : SPELL_AMOUNT

Regards

9 REPLIES 9

former_member416164
Participant
0 Kudos

Hi,

Check the function module : SPELL_AMOUNT

Regards

rahulkavuri
Active Contributor
0 Kudos
CALL FUNCTION 'SPELL_AMOUNT'
         EXPORTING
              LANGUAGE  = SY-LANGU
              CURRENCY  = T001-WAERS
              AMOUNT    = SUM_UBKNT
              FILLER    = SPACE
         IMPORTING
              IN_WORDS  = SPELL
         EXCEPTIONS
              NOT_FOUND = 1
              TOO_LARGE = 2.

Please award points if found helpful

Former Member
0 Kudos

Hi,

Use this function Module

HR_IN_CHG_INR_WRDS

and pass AMT_IN_NUM = numeric Vale

it will Return

AMT_IN_WORDS = Amount in words

mark Helpfull answers

Regards

former_member188685
Active Contributor
0 Kudos

Hi Nishant,

you can use <b>SPELL_AMOUNT</b> Fm.

Regards

vijay

Former Member
0 Kudos

Hi nishant,

check this sample code:

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.

regards,

keerthi.

0 Kudos

Hi Nishanth,

Use FM SPELL AMOUNT...

CALL FUNCTION <b>'SPELL_AMOUNT'</b>

EXPORTING

AMOUNT = PAMOUNT

CURRENCY = PWAERS

FILLER = SPACE

LANGUAGE = 'E'

IMPORTING

IN_WORDS = T_SPELL

EXCEPTIONS

NOT_FOUND = 1

TOO_LARGE = 2

OTHERS = 3.

Check this Link for the same

http://www.sap-img.com/fu001.htm

Regards,

Santosh

Former Member
0 Kudos

Hi Nishant,

Check this FM 'HRCM_AMOUNT_TO_STRING_CONVERT' it might be useful for u

cheers

ganesh

Bema
Active Participant
0 Kudos

tables : t001.

parameter amt type t001-waers .

Data inwords like spell value is initial.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = amt

CURRENCY = sy-waers

FILLER = space

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = inwords

EXCEPTIONS

NOT_FOUND = 1

TOO_LARGE = 2

OTHERS = 3

.

Former Member
0 Kudos

Hi Nishant,

For amount in Millions n thousands, use FM SPELL_AMOUNT.

for Indian style(Crores,lakhs), use FM HR_IN_CHG_INR_WRDS

hope it helps,

Regards,

Bikash