Sunday, December 19, 2010
Use the Function Module SPELL_AMOUNT to convert the integer into text.


  1. Convert a number into words: To do this, the transfer parameters LANGUAGE and AMOUNT have to be entered. 
  2. Convert an amount into words: To do this, the fields LANGUAGE, CURRENCY, and AMOUNT have to be entered. 
  3.  Set the number of places before and after the decimal point for an amount: To do this, the parameters CURRENCY and AMOUNT have to be entered. The LANGUAGE field must be transferred with the value SPACE. This option optimizes the runtime of the function module.


REPORT ZTEST_NOTEPAD.

DATA words LIKE spell.

PARAMETERS:P_int type I.

START-OF-SELECTION.

  CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
      amount   = p_int
      language = sy-langu
    IMPORTING
      in_words = words.

  WRITE words-word.

2 comments:

  1. how to convert amount in words in web dynpro alv and pass to end of list

    ReplyDelete
  2. how to convert amount in words in web dynpro alv and pass it the end of list

    ReplyDelete

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.