2008 Apr 05 10:02 AM
Hi,
I have to get the total amount in words. Im using spell_amount FM.
suppose amount is 330.40
If the currency is INR it should get the amount like Rupees three hundred thirty and forty only
If the currency is USD it should get the amount like Dollar three hundred thirty and forty only.
How can i get this.
2008 Apr 05 11:12 AM
Hi,
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....
Regards,
ABAPer 007
2008 Apr 05 10:54 AM
Hi,
Use this FM based on your selection conditon
CONVERT_TO_FOREIGN_CURRENCY Translate local currency amount into foreign currency
CONVERT_TO_LOCAL_CURRENCY Translate foreign currency amount to local currency
Regards
Lakshmiraj
2008 Apr 05 11:12 AM
Hi,
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....
Regards,
ABAPer 007
2008 Apr 07 7:20 AM