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: 

Spelling mistake in SPELL_AMOUNT

Former Member
0 Kudos

Hello Experts,

Is there any other Function Module or Keyword to convert Amount to Words other than SPELL_AMOUNT?

I have searched almost all Threads in SCN. But not finding the right answer.

The issue with SPELL_AMOUNT is : It is having Spelling mistakes such as 'FOURTY', 'THRITY', etc. It should be FORTY, THIRTY.

Using ECC 4.7.

This is for USD and Canadian Dollars.

Please do help.

Thanks & Regards,
Sowmya

1 ACCEPTED SOLUTION

NAeda
Contributor
0 Kudos

Hi,

Change the spelling in Table T015Z, Just go to TCODE sm30 with V_T015Z.

Thank you.

Aeda

7 REPLIES 7

Former Member
0 Kudos

Hi Sowmya,

Could you please try below function module.

report zrich_0001.

data: words(50) type c.

call function 'HR_IN_CHG_INR_WRDS'

     exporting

          amt_in_num   = '100000'

     importing

          amt_in_words = words.

write:/ words.

Many thanks

venkat

Former Member
0 Kudos

Hi

Please check FM -

HR_IN_CHG_INR_WRDS

Please reward points if found helpful.

reachdebopriya
Active Participant
0 Kudos

Hi Soumya,

Function Module: HR_IN_CHG_INR_WRDS doesnot give language specific result.

Try this code:

TABLES SPELL.


DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.

DATA : PAMOUNT LIKE SPELL-NUMBER  VALUE '1234510'.


SY-TITLE = 'SPELLING NUMBER'.


PERFORM SPELL_AMOUNT USING PAMOUNT 'USD'.


WRITE: 'NUMBERS', T_SPELL-WORD, 'DECIMALS ', T_SPELL-DECWORD.


FORM SPELL_AMOUNT USING PWRBTR PWAERS.


  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.

ENDFORM.                               " SPELL_AMOUNT

Also check the below link:

http://scn.sap.com/thread/3162441

Reagrds,

Debopriya Ghosh

former_member182371
Active Contributor
0 Kudos

Hi,

have a look at table T015Z.

Best regards.

NAeda
Contributor
0 Kudos

Hi,

Change the spelling in Table T015Z, Just go to TCODE sm30 with V_T015Z.

Thank you.

Aeda

former_member209120
Active Contributor
0 Kudos

Hi Sowmya,

Change the spelling in Table T015Z,

sm30 with V_T015Z.

Former Member
0 Kudos

Thanks all for the help.

FM is working fine.

-Sowmya