Skip to Content
author's profile photo Former Member
Former Member

Need to print amount in words in lower case..

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 05:22 PM

    Pass the amount to the fm in this thread

    display first letter as caps and rest in small

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 04:54 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 05:34 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.