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: 

spell_amount i want in lakh

Former Member
0 Kudos

DATA : invamt TYPE vbrp-netwr.

.

DATA : t_spell LIKE spell OCCURS 0 WITH HEADER LINE.

DATA : amtword(255) TYPE c.

invamt = 100100.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

amount = invamt

currency = 'INR'

filler = space

language = 'E'

IMPORTING

in_words = t_spell

EXCEPTIONS

not_found = 1

too_large = 2

OTHERS = 3.

CONCATENATE 'RS. ' t_spell-word ' AND ' t_spell-decword ' ONLY ' INTO amtword.

WRITE : /1 amtword.

*********************************************

Amount in word printing as RS.ONE HUNDRED THOUSAND ONE HUNDRED ANDZERO ONLY

But I want ONE LAKH ONE HUNDRED ONY.

HOW IT WILL COME?

REGARDS

MANOJ PISE.

3 REPLIES 3

Former Member
0 Kudos

Hi,

use the function module HR_IN_CHG_INR_WRDS

rgds,

bharat.

Former Member
0 Kudos

hi MAnoj,

Try to do using FM 'Amount_in_words'.

Thanx,

Khan

Former Member
0 Kudos

Use Program RF_SPELL to get total amount in WORDS.

But i am not sure we can get like "Rupees three hundred thirty and forty only" instead it would be like THREE HUNDRED THIRTY FORTY.

Or else u can use the same FM spell_amount to get the amount in words. Here u may need to combine the 2 fields in the structure of exporting parameters like WORD and DECWORD.

If u need to get Ruppes or Dollar infront of it u may have to pick it from table TCURC, i believe....by putting currency as input....

(or)

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'

***********Reward points,if found useful