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

spell_amount

Former Member
0 Likes
694

i have written a program using the function spell_amount and i got the output. now i need it in the format whole number and decimal without the skip statement.

for instance 12.345.678,30 should be spelled as one hundred and twenty three thousands four hundred fifty six hundred seventy eight AND three zero.

can u please give reply

5 REPLIES 5
Read only

Former Member
0 Likes
650

Hi nagaveni,

1. u can use the fm HR_IN_CHG_INR_WRDS

regards,

amit m.

Read only

0 Likes
650

tell me the function in abap

Read only

0 Likes
650

Hi again,

1. use like this.

2.

report abc.

DATA : AMT LIKE PC207-BETRG.

DATA : WRDS(500) TYPE C.

AMT = 569045.

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'

EXPORTING

AMT_IN_NUM = AMT

IMPORTING

AMT_IN_WORDS = WRDS

EXCEPTIONS

DATA_TYPE_MISMATCH = 1

OTHERS = 2

.

WRITE 😕 AMT.

WRITE 😕 WRDS.

regards,

amit m.

Read only

Former Member
0 Likes
650

try out with

RF_SPELL

and check the below link as well

Read only

anversha_s
Active Contributor
0 Likes
650

hi,

use this.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

amount = amount

currency = 'INR'

filler = ' '

language = 'E'

IMPORTING

in_words = amountrs.

rgds

anver

pls mark hlpful asnwers