cancel
Showing results for 
Search instead for 
Did you mean: 

what is the Function Module is used to convert numer to words

Former Member
0 Kudos

Example 23 to Twenty Three

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use

SPELL_AMOUNT

Answers (3)

Answers (3)

Former Member
0 Kudos

Problem is Solved

raymond_giuseppi
Active Contributor
0 Kudos

It depends on your exact requirement, try one of the following function modules :

HR_IN_CHG_INR_WRDS
SPELL_AMOUNT

Look also at OSS [Note 939145 - SPELL_AMOUNT: What it can do and what it can't|https://service.sap.com/sap/support/notes/939145]

Regards

Former Member
0 Kudos

Kindly give the solution.

By using Spell_Amount iam Getting out put like Twenty-Three

By Using HR_IN_CHG_INR_WRDS out put Twnty Three rupees

But my requirement is Twenty Three

former_member188829
Active Contributor
0 Kudos

Hi,

Use FM:SPELL_AMOUNT

DATA V_NUM TYPE I VALUE '23'.
DATA WORDS LIKE SPELL.
CALL FUNCTION 'SPELL_AMOUNT'
  EXPORTING
    AMOUNT   = V_NUM
    LANGUAGE = SY-LANGU
  IMPORTING
    IN_WORDS = WORDS.
WRITE WORDS-WORD.

Former Member
0 Kudos

it give out put like Twenty-Three

Former Member
0 Kudos

Hi Vishnu,

Kindly give the solution.

By using Spell_Amount iam Getting out put like Twenty-Three

By Using HR_IN_CHG_INR_WRDS out put Twnty Three rupees

But my requirement is Twenty Three