Application Development and Automation 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: 
Read only

function for amount into words

Former Member
0 Likes
835

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
Read only

Former Member
0 Likes
799

Hi,

Spell_amount .

regards,

Santosh Thorat

Read only

Former Member
0 Likes
799

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>

Read only

Former Member
0 Likes
799

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.

Read only

former_member386202
Active Contributor
0 Likes
799

Hi,

Use FM " SPELL_AMOUNT "

Reward Points.....

Regards,

Prashant

Read only

Former Member
0 Likes
799

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>

Read only

former_member194152
Contributor
0 Likes
799

Hi,

use function module spell_amount in this way..

Are u asurosh from Raigarh....

Message was edited by:

Gagan Choudha

Read only

Former Member
0 Likes
799

hi,

use the function module spell_amount

it will convert amount into words.

Reward with points if helpful.