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: 

convert amount to in words

Former Member
0 Kudos

Hi all ,

i wanr to convert amount(which in numeric ) into words

ex 1234 i want one thousand two hundared thirty four

plz tell me function will help me or other solution

Regards

Bhavesh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

try this FM.



 fm HR_IN_CHG_INR_WRDS

Thanks

Arun

Edited by: Arun Kayal on Apr 17, 2009 9:55 AM

6 REPLIES 6

Former Member
0 Kudos

use FM SPELL_AMOUNT

Former Member
0 Kudos

Hi

USE FM : 'SPELL_AMOUNT'

Kiran

Former Member
0 Kudos

Hi,

try this FM.



 fm HR_IN_CHG_INR_WRDS

Thanks

Arun

Edited by: Arun Kayal on Apr 17, 2009 9:55 AM

prince_isaac
Active Participant
0 Kudos

hie

check the following code.


  x_amount = z_payslip01-amount.

  CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
      amount    = x_amount
      currency  = 'ZWS'
    IMPORTING
      in_words  = xwords
    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.

  CONCATENATE xwords-word 'Kerd' xwords-decword 'Cents'
  INTO z_payslip01-amount_in_words SEPARATED BY space.

regards

Prince Isaac

former_member184119
Active Contributor
0 Kudos

Hi ,

Please search before post !! Asking simple questions which you can find yourself in search is against SDN rules.

Regards

sas

Former Member
0 Kudos

Use the function module SPELL_AMOUNT