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: 

function for amount into words

Former Member
0 Kudos

hi friends,

can any one tell from which function module we can convert amount in figures into words.

input -> 50,000

output -> fifty thousands

plz. help.

it's urgent

7 REPLIES 7

Former Member
0 Kudos

Hi,

Spell_amount .

regards,

Santosh Thorat

Former Member
0 Kudos

Hi,

check the below function modules

This would be use full to you

HR_IN_CHG_INR_WRDS

SPELL_AMOUNT

Regards,

Siva chalasani.

<b>Reward points if usefull.</b>

Former Member
0 Kudos

The Function Module 'SPELL_AMOUNT' is used to Spell out the numbers.

CALL FUNCTION 'SPELL_AMOUNT'

  • EXPORTING

  • AMOUNT = 0

  • CURRENCY = ' '

  • FILLER = ' '

  • LANGUAGE = SY-LANGU

  • IMPORTING

  • IN_WORDS =

  • EXCEPTIONS

  • NOT_FOUND = 1

  • TOO_LARGE = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Rewards if useful.

former_member386202
Active Contributor
0 Kudos

Hi,

Use FM " SPELL_AMOUNT "

Reward Points.....

Regards,

Prashant

Former Member
0 Kudos

HI

use SPELL_AMOUNT


data: words type spell.
 call function 'SPELL_AMOUNT'
 exporting
    amount          = '100000'
*   CURRENCY        = ' '
*   FILLER          = ' '
*   LANGUAGE        = SY-LANGU
  importing
    in_words        = words.
 if words-word = 'ONE HUNDRED THOUSAND'.
  words-word = '1 LAKH'.
endif.
 write:/ words-word.

/community [original link is broken]

<b>Reward if usefull</b>

former_member194152
Contributor
0 Kudos

Hi,

use function module spell_amount in this way..

Are u asurosh from Raigarh....

Message was edited by:

Gagan Choudha

Former Member
0 Kudos

hi,

use the function module spell_amount

it will convert amount into words.

Reward with points if helpful.