01-23-2008 10:49 AM
Hi All,
I have a requiremnt where in i neeed to convert my amount to words and display in SAP script.
I can use the FM SPELL_AMOUNT.This will give the result in words.I need to have the AND in b/w these.
eg:123456789
result:ONE HUNDRED TWENTY-THREE MILLION FOUR HUNDRED FIFTY-SIX THOUSAND SEVEN HUNDRED EIGHTY-NINE.
My requirement:ONE HUNDRED AND TWENTY-THREE MILLION FOUR HUNDRED AND FIFTY-SIX THOUSAND SEVEN HUNDRED AND EIGHTY-NINE.
Any pointers would be appreciated.
01-23-2008 10:55 AM
u find the hundred keyword as u need 'AND' everytime after hundred and concatenate an 'AND' in between that wil help you.
01-23-2008 10:57 AM
Hi,
While calling FM SPELL_AMOUNT pass currency as 'INR'.Then You will get Concatenate IN_WORDS-WORDS 'AND' IN_WORDS-DECWORD into w_w. & USE W_W.
Regards
Raju Chitale
01-24-2008 5:03 AM
Hi Raju,
I didnt get what you suggested.
After calling the FM,what is required?
01-24-2008 5:16 AM
Hi,
DATA: w_words(200).
After calling FM USe: Concatenate IN_WORDS-WORD 'AND' IN_WORDS-DECWORD into W_WORDS. Now W_Words Will contain the string you required.
Regards
Raju Chitale
01-23-2008 11:21 AM