<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Regd: Converting Numbers in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283331#M153301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SPELL_AMOUNT : Convert numbers and figures in words&lt;/P&gt;&lt;P&gt;convert an amount into words &lt;/P&gt;&lt;P&gt;convert a number into words (CURRENCY=space) &lt;/P&gt;&lt;P&gt;set decimal point in an amount and return number of decimals for the currency (LANGUAGE=space) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HRCM_AMOUNT_TO_STRING_CONVERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FWOS_CURRENCY_DECIMALS_READ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_TO_FOREIGN_CURRENCY : Translate local currency amount into foreign currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2006 06:45:32 GMT</pubDate>
    <dc:creator>vinod_gunaware2</dc:creator>
    <dc:date>2006-03-07T06:45:32Z</dc:date>
    <item>
      <title>Regd: Converting Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283326#M153296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to Conver the Numbers into Alphabetical words i.e. if the toal value of a bill is Rs.6078.30/- in words how to convert it into words. like Ruppess Six thousand seventy eight and thiry paise only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with conversion from the last but while converting it gives an abap dump error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls Suggestions and Help will be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 06:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283326#M153296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T06:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regd: Converting Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283327#M153297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPELL_AMOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=================================================&lt;/P&gt;&lt;P&gt;I hope u are not getting the words for decimal values using the above fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function does give the wording of the decimal part , the structure which stores the result has two fields word and decword. Decword stores the wording for the decimal part.&lt;/P&gt;&lt;P&gt;e.g. if you enter 10.50 INR as the input , the output is &lt;/P&gt;&lt;P&gt;Word --&amp;gt; TEN&lt;/P&gt;&lt;P&gt;Decword --&amp;gt; FIFTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_amt type p decimals 2 value '10.50'.&lt;/P&gt;&lt;P&gt;data: s_spell like spell,&lt;/P&gt;&lt;P&gt;      v_desc type string.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   AMOUNT          = v_amt&lt;/P&gt;&lt;P&gt;   CURRENCY        = 'INR'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILLER          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   LANGUAGE        = SY-LANGU&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   IN_WORDS        = s_spell&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_FOUND       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TOO_LARGE       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS          = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;concatenate s_spell-word 'RUPEES AND'&lt;/P&gt;&lt;P&gt;            s_spell-decword 'PAISE'&lt;/P&gt;&lt;P&gt;            into v_desc separated by space.&lt;/P&gt;&lt;P&gt;write: v_desc.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Eswar Kanakanti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 06:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283327#M153297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T06:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regd: Converting Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283328#M153298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ramesh &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the functional module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;AMOUNT = IS_HEADER-NETWR&lt;/P&gt;&lt;P&gt;CURRENCY = IS_HEADER-WAERK&lt;/P&gt;&lt;P&gt;LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;IN_WORDS = G_AMOUNT_WORDS&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;TOO_LARGE = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tyr this code it will help you&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_FI_AMT_WRDS_CONVERT .&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*" IMPORTING&lt;/P&gt;&lt;P&gt;*" REFERENCE(AMT)&lt;/P&gt;&lt;P&gt;*" EXPORTING&lt;/P&gt;&lt;P&gt;*" REFERENCE(WORD) TYPE SPELL-WORD&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;amt_c1 = amt.&lt;/P&gt;&lt;P&gt;replace '.' with 'D' into amt_c1.&lt;/P&gt;&lt;P&gt;SEARCH amt_c1 for 'D'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;amt_wh1 = amt_c1+0(sy-fdpos).&lt;/P&gt;&lt;P&gt;wrk_fdpos = sy-fdpos + 1.&lt;/P&gt;&lt;P&gt;amt_dc1 = amt_c1+wrk_fdpos(2).&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;amt_wh1 = amt_c1.&lt;/P&gt;&lt;P&gt;amt_dc1 = '00'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;amtnmr = amt_wh1.&lt;/P&gt;&lt;P&gt;amtdec = amt_dc1.&lt;/P&gt;&lt;P&gt;CONCATENATE amtnmr amtdec INTO amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;amount = amount&lt;/P&gt;&lt;P&gt;currency = 'INR'&lt;/P&gt;&lt;P&gt;filler = ' '&lt;/P&gt;&lt;P&gt;language = 'E'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;in_words = amountrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*WRITE: / 'amount in figures: ' ,'Rs.--&amp;gt;', AMTNMR,'.',AMTDEC.&lt;/P&gt;&lt;P&gt;*WRITE: / 'Amount in WORDS.: ' ,' Rs.' ,AMOUNTRS-WORD,&lt;/P&gt;&lt;P&gt;*'AND' ,AMOUNTRS-DECWORD ,'Paisa Only'.&lt;/P&gt;&lt;P&gt;*SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: unit1,digit1,unit2,digit2,unit3,digit3,unit4,digit4,word1,word2,&lt;/P&gt;&lt;P&gt;word3,word4,word.&lt;/P&gt;&lt;P&gt;digit1 = amtnmr+14.&lt;/P&gt;&lt;P&gt;unit1 = amtnmr+13.&lt;/P&gt;&lt;P&gt;digit2 = amtnmr+12.&lt;/P&gt;&lt;P&gt;unit2 = '0'.&lt;/P&gt;&lt;P&gt;digit3 = amtnmr+11.&lt;/P&gt;&lt;P&gt;unit3 = amtnmr+10.&lt;/P&gt;&lt;P&gt;digit4 = amtnmr+9.&lt;/P&gt;&lt;P&gt;unit4 = amtnmr+8.&lt;/P&gt;&lt;P&gt;digit5 = amtnmr+7.&lt;/P&gt;&lt;P&gt;unit5 = amtnmr+6.&lt;/P&gt;&lt;P&gt;digit6 = amtnmr+5.&lt;/P&gt;&lt;P&gt;unit6 = '0'.&lt;/P&gt;&lt;P&gt;digit7 = amtnmr+4.&lt;/P&gt;&lt;P&gt;unit7 = amtnmr+3.&lt;/P&gt;&lt;P&gt;digit8 = amtnmr+2.&lt;/P&gt;&lt;P&gt;unit8 = amtnmr+1.&lt;/P&gt;&lt;P&gt;digit9 = amtnmr.&lt;/P&gt;&lt;P&gt;unit9 = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*WRITE:/ 'UNIT9 = ' , UNIT9, 'DIGIT9 = ', DIGIT9.&lt;/P&gt;&lt;P&gt;IF ( unit1 NE '0' ) OR ( digit1 NE '0' ).&lt;/P&gt;&lt;P&gt;SELECT SINGLE wort INTO word1 FROM t015z WHERE einh = unit1&lt;/P&gt;&lt;P&gt;AND ziff = digit1 AND spras = 'E'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;word1 = t015z-wort.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;REPLACE ';' WITH '' INTO word1.&lt;/P&gt;&lt;P&gt;*write: / word1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF unit2 NE '0' OR digit2 NE '0'.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM t015z WHERE einh = unit2&lt;/P&gt;&lt;P&gt;AND ziff = digit2 AND spras = 'E'.&lt;/P&gt;&lt;P&gt;word2 = t015z-wort.&lt;/P&gt;&lt;P&gt;REPLACE ';' WITH '' INTO word2.&lt;/P&gt;&lt;P&gt;CONCATENATE word2 ' HUNDRED ' INTO word2.&lt;/P&gt;&lt;P&gt;*REPLACE '(FEMININE)' WITH '' INTO WORD2.&lt;/P&gt;&lt;P&gt;*write: / word2.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF unit3 NE '0' OR digit3 NE '0'.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM t015z WHERE einh = unit3&lt;/P&gt;&lt;P&gt;AND ziff = digit3 AND spras = 'E'.&lt;/P&gt;&lt;P&gt;word3 = t015z-wort .&lt;/P&gt;&lt;P&gt;CONCATENATE word3 ' THOUSAND ' INTO word3.&lt;/P&gt;&lt;P&gt;REPLACE ';' WITH '' INTO word3.&lt;/P&gt;&lt;P&gt;*write: / word3.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF unit4 NE '0' OR digit4 NE '0'.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM t015z WHERE einh = unit4&lt;/P&gt;&lt;P&gt;AND ziff = digit4 AND spras = 'E'.&lt;/P&gt;&lt;P&gt;word4 = t015z-wort.&lt;/P&gt;&lt;P&gt;REPLACE ';' WITH '' INTO word4.&lt;/P&gt;&lt;P&gt;CONCATENATE word4 ' LAKH ' INTO word4.&lt;/P&gt;&lt;P&gt;*WRITE: / WORD4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF unit5 NE '0' OR digit5 NE '0'.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM t015z WHERE einh = unit5&lt;/P&gt;&lt;P&gt;AND ziff = digit5 AND spras = 'E'.&lt;/P&gt;&lt;P&gt;word5 = t015z-wort.&lt;/P&gt;&lt;P&gt;REPLACE ';' WITH '' INTO word5.&lt;/P&gt;&lt;P&gt;*write: / word5.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF unit6 NE '0' OR digit6 NE '0'.&lt;/P&gt;&lt;P&gt;*UNIT6 = 'H'.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM t015z WHERE einh = unit6&lt;/P&gt;&lt;P&gt;AND ziff = digit6 AND spras = 'E'.&lt;/P&gt;&lt;P&gt;word6 = t015z-wort.&lt;/P&gt;&lt;P&gt;REPLACE ';' WITH ' ' INTO word6.&lt;/P&gt;&lt;P&gt;CONCATENATE word6 ' HUNDRED ' INTO word6.&lt;/P&gt;&lt;P&gt;*REPLACE '(FEMININE)' WITH '' INTO WORD6.&lt;/P&gt;&lt;P&gt;*write: / word6.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF unit7 NE '0' OR digit7 NE '0'.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM t015z WHERE einh = unit7&lt;/P&gt;&lt;P&gt;AND ziff = digit7 AND spras = 'E'.&lt;/P&gt;&lt;P&gt;word7 = t015z-wort.&lt;/P&gt;&lt;P&gt;REPLACE ';' WITH ' ' INTO word7.&lt;/P&gt;&lt;P&gt;CONCATENATE word7 ' THOUSAND ' INTO word7.&lt;/P&gt;&lt;P&gt;*write: / word7.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF unit8 NE '0' OR digit8 NE '0'.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM t015z WHERE einh = unit8&lt;/P&gt;&lt;P&gt;AND ziff = digit8 AND spras = 'E'.&lt;/P&gt;&lt;P&gt;word8 = t015z-wort.&lt;/P&gt;&lt;P&gt;REPLACE ';' WITH '' INTO word8.&lt;/P&gt;&lt;P&gt;CONCATENATE word8 ' LAKHS ' INTO word8.&lt;/P&gt;&lt;P&gt;*write: / word8.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF digit9 NE '0'.&lt;/P&gt;&lt;P&gt;unit9 = '0'.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM t015z WHERE einh = unit9&lt;/P&gt;&lt;P&gt;AND ziff = digit9 AND spras = 'E'.&lt;/P&gt;&lt;P&gt;word9 = t015z-wort.&lt;/P&gt;&lt;P&gt;REPLACE ';' WITH ' ' INTO word9.&lt;/P&gt;&lt;P&gt;*REPLACE '(FEMININE)' WITH ' ' INTO WORD9.&lt;/P&gt;&lt;P&gt;CONCATENATE word9 ' HUNDRED ' INTO word9.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CONCATENATE word9 word8 word7 word6 word5 ' CRORE ' INTO wordc&lt;/P&gt;&lt;P&gt;SEPARATED BY space.&lt;/P&gt;&lt;P&gt;*WRITE:/ 'Amount in Rs.-------&amp;gt;'.&lt;/P&gt;&lt;P&gt;IF amountrs-decword NE 'ZERO'.&lt;/P&gt;&lt;P&gt;CONCATENATE ' AND PAISE ' amountrs-decword INTO dcwrd&lt;/P&gt;&lt;P&gt;SEPARATED BY space.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF amtnmr &amp;gt; 9999999.&lt;/P&gt;&lt;P&gt;*WRITE: / WORDC.&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;CONCATENATE 'RUPEES' wordc word4 word3 word2 word1 dcwrd 'ONLY'&lt;/P&gt;&lt;P&gt;INTO word SEPARATED BY space.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CONCATENATE 'RUPEES'word4 word3 word2 word1 dcwrd 'ONLY'&lt;/P&gt;&lt;P&gt;INTO word SEPARATED BY space.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CLEAR dcwrd.&lt;/P&gt;&lt;P&gt;*WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; WORD.&lt;/P&gt;&lt;P&gt;*WRITE: 'AND' ,AMOUNTRS-DECWORD ,'Paise Only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kishore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Harikishore Sreenivasulu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 06:37:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283328#M153298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T06:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regd: Converting Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283329#M153299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM SPELL_AMOUNT&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
PARAMETERS:
  SPRACHE    LIKE SY-LANGU      DEFAULT SY-LANGU,
  WAEHRUNG   LIKE PAYR_FI-WAERS DEFAULT 'DEM',
  BETRAG     LIKE PAYR_FI-RWBTR DEFAULT '123456789.12',
  FILLER(1)  TYPE C             DEFAULT ' '.
SELECTION-SCREEN END OF BLOCK 1.

TABLES: PAYR_FI, SPELL.

AT SELECTION-SCREEN OUTPUT.
  IF WAEHRUNG IS INITIAL.
    PAYR_FI-WAERS = '0'.
  ELSE.
    PAYR_FI-WAERS = WAEHRUNG.
  ENDIF.

AT SELECTION-SCREEN ON WAEHRUNG.
  IF WAEHRUNG IS INITIAL.
    PAYR_FI-WAERS = '0'.
  ELSE.
    PAYR_FI-WAERS = WAEHRUNG.
  ENDIF.

START-OF-SELECTION.
  CALL FUNCTION 'SPELL_AMOUNT'
       EXPORTING
            LANGUAGE = SPRACHE
            CURRENCY = WAEHRUNG
            AMOUNT   = BETRAG
            FILLER   = FILLER
       IMPORTING
            IN_WORDS = SPELL.

  PERFORM BETRAG_SCHREIBEN.

  WRITE:
      / SPELL-DIG15,
      8 SPELL-DIG14,
     15 SPELL-DIG13,
     22 SPELL-DIG12,
     29 SPELL-DIG11,
     36 SPELL-DIG10,
     43 SPELL-DIG09,
     50 SPELL-DIG08,
      / SPELL-DIG07,
      8 SPELL-DIG06,
     15 SPELL-DIG05,
     22 SPELL-DIG04,
     29 SPELL-DIG03,
     36 SPELL-DIG02,
     43 SPELL-DIG01.
  SKIP 2.
  WRITE:
      / SPELL-WORD(64),
      / SPELL-WORD+64(64),
      / SPELL-WORD+128(64),
      / SPELL-WORD+192.
  SKIP.
  WRITE:
      / SPELL-DECWORD(64),
      / SPELL-DECWORD+64(64).
  SKIP 2.
  WRITE:
      / SPELL-NUMBER,
        SPELL-DECIMAL.

FORM BETRAG_SCHREIBEN.
  NEW-PAGE NO-TITLE.
  IF WAEHRUNG EQ SPACE OR WAEHRUNG EQ '0'.
    WRITE:
      /(23) BETRAG CURRENCY '0'.
  ELSE.
    WRITE:
      /(23) BETRAG CURRENCY WAEHRUNG, WAEHRUNG.
  ENDIF.
  SKIP 2.
ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 06:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283329#M153299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T06:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regd: Converting Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283330#M153300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM SPELL_AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 06:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283330#M153300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T06:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regd: Converting Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283331#M153301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SPELL_AMOUNT : Convert numbers and figures in words&lt;/P&gt;&lt;P&gt;convert an amount into words &lt;/P&gt;&lt;P&gt;convert a number into words (CURRENCY=space) &lt;/P&gt;&lt;P&gt;set decimal point in an amount and return number of decimals for the currency (LANGUAGE=space) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HRCM_AMOUNT_TO_STRING_CONVERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FWOS_CURRENCY_DECIMALS_READ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT_TO_FOREIGN_CURRENCY : Translate local currency amount into foreign currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 06:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283331#M153301</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-03-07T06:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regd: Converting Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283332#M153302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;data c1 type SPELL.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   AMOUNT          = '1000'&lt;/P&gt;&lt;P&gt;   CURRENCY        = 'RS'&lt;/P&gt;&lt;P&gt;   LANGUAGE        = sy-langu&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   IN_WORDS        = c1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write c1-word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it will take 1000 as 10.00,it will display the output as ten.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 06:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283332#M153302</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-03-07T06:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regd: Converting Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283333#M153303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this also.Kindly reward points if it helps.&lt;/P&gt;&lt;P&gt;data c1(100).&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_IN_CHG_INR_WRDS'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    amt_in_num               = '10.00'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   AMT_IN_WORDS             = c1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   write c1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 06:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283333#M153303</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-03-07T06:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regd: Converting Numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283334#M153304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try with this FM &amp;lt;b&amp;gt;HR_IN_CHG_INR_WRDS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 07:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regd-converting-numbers/m-p/1283334#M153304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T07:20:30Z</dc:date>
    </item>
  </channel>
</rss>

