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

Regarding Currency

Former Member
0 Likes
598

Hi Abapers ,

I have a problem in which there is a requiremenr to convert the given amount into the alphabets of indonesian language ...

plz tell me is there any FM available to do so ....

Plz help it is urgent

Thnks

Sahil

Hi Abapers ,

I have a problem in which there is a requiremenr to convert the given amount into the alphabets of indonesian language ...

plz tell me is there any FM available to do so ....

Plz help it is urgent

Thnks

Sahil

4 REPLIES 4
Read only

Former Member
0 Likes
578

USe FM SPELL_AMOUNT

Regards,

Atish

Read only

Former Member
0 Likes
578

Message was edited by:

Karthikeyan Pandurangan

Read only

Former Member
0 Likes
578

Hi,

use Function Module : HR_IN_CHG_INR_WRDS

take help from code as below :

Data : amt type PC207-BETRG VALUE '1234.90'.

data : amt_in_words(100).

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'

EXPORTING

amt_in_num = amt

IMPORTING

AMT_IN_WORDS = AMT_IN_WORDS

  • EXCEPTIONS

  • DATA_TYPE_MISMATCH = 1

.

write : amt_in_words.

Regards,

Sandeep Kaushik

Read only

Former Member
0 Likes
578

Hi Sahil,

To convert into ur required language.

u can use FM

CALL FUNCTION 'SPELL_AMOUNT'

  • EXPORTING

  • AMOUNT = 0

  • CURRENCY = ' '

  • FILLER = ' '

  • LANGUAGE = SY-LANGU

  • IMPORTING

  • IN_WORDS =

  • EXCEPTIONS

  • NOT_FOUND = 1

  • TOO_LARGE = 2

  • OTHERS = 3

here u input ur amount

and change to language what u r using(instead of EN)

and store it in_words only.

If it is helpfull pls reward pts.

Regards

Srimanta