2008 Mar 11 7:19 AM
Hi,
I have a value say 222.20 .
When I use CALL FUNCTION 'HR_IN_CHG_INR_WRDS' then it gives output as:-
TWO HUNDRED TWENTY TWO Rupees TWENTY Paise.
But I want output as:
TWO HUNDRED TWENTY TWO And 20/100.
Plz. help.
Thanks in advance.
Manoj kumar
2008 Mar 11 7:36 AM
Hi,
do like this.
field-symbols:<fs> type any.
split amt at '.' into rs <ps>.
pass rs to the function module and get the text then concatenate (<ps>)/100 into final variable and then print it.
rgds,
bharat.
2008 Mar 11 7:26 AM
i guess you can not get such o/p by any FM .
but you can do it programatically.
1) just split the amount at decimal.
2) pass the whole no to function module and get the word description in one sting.
3) get the decimal part converted to whole no like 0.55 will be converted as .55*100 = 55.
4)then take a string and get values concatenated like 55,/,100.
where / and 100 will always remain same.
5) now concatenate the string 1 from word desc and this string 2 in staring3
6) string 3 is the required o/p.
2008 Mar 11 7:30 AM
2008 Mar 11 7:36 AM
Hi,
do like this.
field-symbols:<fs> type any.
split amt at '.' into rs <ps>.
pass rs to the function module and get the text then concatenate (<ps>)/100 into final variable and then print it.
rgds,
bharat.