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

FM or table name to capture text based on currency code

Former Member
0 Likes
982

Hi guys,

I have a function module to conver the amount in INR into words.

viz. input : 123.50 INR --> One Hundred Twenty Three Rupees & Fifty Paise.

I hardcoded the text 'Rupees' & 'Paise' in it. but I want to capture the text based on the Currecy code.

I want to enhance the FM to more generic one. i.e. I should work for all the currencies.

Can anyone suggest me a FM or table name to capture them.

Thanks in Advance,

Hi guys,

I have a function module to conver the amount in INR into words.

viz. input : 123.50 INR --> One Hundred Twenty Three Rupees & Fifty Paise.

I hardcoded the text 'Rupees' & 'Paise' in it. but I want to capture the text based on the Currecy code.

I want to enhance the FM to more generic one. i.e. I should work for all the currencies.

Can anyone suggest me a FM or table name to capture them.

Thanks in Advance,

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
570

Hi Surendher,

1. FM : function spell_amount

2. Currency code : -> see table TCURT

( only for the main unit)

to spell main (rupee) and 2nd unit (paise) ,

you've to copy and expand table TCURT:

e.g.: MANDT SPRAS WAERS LTEXT KTEXT UNIT2

001 EN INR Indian Rupees Rupees Paise

001 EN EUR Euro Euro Cent

Grx Andreas

Read only

0 Likes
570

Than Q very much Andreas,yes that is the good way.