cancel
Showing results for 
Search instead for 
Did you mean: 

Need to print amount in words in lower case..

0 Kudos

Hi,

I need to print amount in words on check. If I use &SPELL-WORD&, it gives the amount in UPPER CASE...where as i want to print in normal way that is first letter capital and other letters in lower case. How do I do the formatting for this. Can someone please suggest.

Thanks & regards,

Vijayshree.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Pass the amount to the fm in this thread

Answers (2)

Answers (2)

messier31
Active Contributor
0 Kudos

Hi,

Use function module <b>SPELL_AMOUNT</b> to get amount words.

And the pass this to function module <b>STRING_UPPER_LOWER_CASE</b> with delimiter as SPACE.

This will give amount in words with proper formatting as required.

Enjoy SAP.

Pankaj Singh.

Former Member
0 Kudos

Hi,

Just use:

CALL FUNCTION 'SWA_STRING_TO_UPPERCASE'

EXPORTING

input_expression = fspell

preserve_existing_capitals = ' '

  • CAPITALIZE_AFTER_SPACE = 'X'

IMPORTING

output_expression = fspell

EXCEPTIONS

expression_truncated = 1

OTHERS = 2

I hope this helps,

Regards

Raju Chitale