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: 

Amount in words with 'AND' in between.

Former Member
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

u find the hundred keyword as u need 'AND' everytime after hundred and concatenate an 'AND' in between that wil help you.

Former Member
0 Kudos

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

0 Kudos

Hi Raju,

I didnt get what you suggested.

After calling the FM,what is required?

0 Kudos

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

Former Member
0 Kudos

FM spell amount will work for it

keep Rockin

vivek