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

Function Module to convert amount to amount in words

Dear Guru ,

I want to know is there any sap standard Function Module to convert amount value to amount in words

Thanks & Regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jul 04, 2008 at 06:28 AM

    HR_IN_CHG_INR_WRDS

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 04, 2008 at 06:26 AM

    try:

    CALL FUNCTION 'SPELL_AMOUNT'

    EXPORTING

    amount = zsum

    currency = is_bil_invoice-hd_komk-waerk

    language = 'E'

    IMPORTING

    in_words = gt_amtwords

    EXCEPTIONS

    not_found = 1

    too_large = 2

    OTHERS = 3.

    .

    plz reward points if dis helps

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2008 at 06:30 AM

    Hi..

    Use FM SPELL_AMOUNT.

    This function module converts an amount or number into words. It can be used as follows:

    Convert a number into words

    To do this, the transfer parameters LANGUAGE and AMOUNT have to be entered.

    Convert an amount into words

    To do this, the fields LANGUAGE, CURRENCY, and AMOUNT have to be entered.

    Program RF_SPELL contains a sample call of the function module. You can use it for test purposes.

    REPORT ZSPELL.

    TABLES SPELL.

    DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.

    DATA : PAMOUNT LIKE SPELL-NUMBER VALUE '1234510'.

    SY-TITLE = 'SPELLING NUMBER'.

    PERFORM SPELL_AMOUNT USING PAMOUNT 'USD'.

    WRITE: 'NUMBERS', T_SPELL-WORD, 'DECIMALS ', T_SPELL-DECWORD.

    FORM SPELL_AMOUNT USING PWRBTR PWAERS.

    CALL FUNCTION 'SPELL_AMOUNT'

    EXPORTING

    AMOUNT = PAMOUNT

    CURRENCY = PWAERS

    FILLER = SPACE

    LANGUAGE = 'E'

    IMPORTING

    IN_WORDS = T_SPELL

    EXCEPTIONS

    NOT_FOUND = 1

    TOO_LARGE = 2

    OTHERS = 3.

    ENDFORM. " SPELL_AMOUNT

    I hope it helps.

    Reward pts if helpful

    Regards

    - Rishika Bawa

    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.