<?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: REG:Function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542305#M246979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming you are giving numeric value and want to spell out the value. &lt;/P&gt;&lt;P&gt;Use SPELL_AMOUT and don't provide currency.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2006 09:42:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-02T09:42:25Z</dc:date>
    <item>
      <title>REG:Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542302#M246976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to convert numeric value into text format.&lt;/P&gt;&lt;P&gt;any function module is there.&lt;/P&gt;&lt;P&gt;it's very help full for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you ,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 09:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542302#M246976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T09:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: REG:Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542303#M246977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;C14W_NUMBER_CHAR_CONVERSION&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 09:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542303#M246977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T09:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: REG:Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542304#M246978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi SN, &lt;/P&gt;&lt;P&gt; If that is the amount use FM &amp;lt;b&amp;gt;SPELL_AMOUNT&amp;lt;/b&amp;gt; else use &amp;lt;b&amp;gt;C14W_NUMBER_CHAR_CONVERSION&amp;lt;/b&amp;gt; based on your requirement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 09:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542304#M246978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T09:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: REG:Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542305#M246979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming you are giving numeric value and want to spell out the value. &lt;/P&gt;&lt;P&gt;Use SPELL_AMOUT and don't provide currency.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 09:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542305#M246979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T09:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: REG:Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542306#M246980</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 this one....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function module....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_CONVERT_AMOUNT_TO_WORDS.&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;*"     VALUE(F_AMOUNT) LIKE  KONV-KAWRT&lt;/P&gt;&lt;P&gt;*"     VALUE(F_CURRENCY) LIKE  EKKO-WAERS&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(WORDS) LIKE  SPELL-WORD&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      ZERO_VALUE&lt;/P&gt;&lt;P&gt;*"      INCORRECT_AMOUNT&lt;/P&gt;&lt;P&gt;*"      AMOUNT_HIGH&lt;/P&gt;&lt;P&gt;*"      INVALID_CURRENCY&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   tables : tcurt.&lt;/P&gt;&lt;P&gt;   data: maxno type p.&lt;/P&gt;&lt;P&gt;   data : words1 like SPELL.&lt;/P&gt;&lt;P&gt;   SELECT SINGLE * FROM TCURt WHERE WAERS = F_CURRENCY&lt;/P&gt;&lt;P&gt;                               and SPRAS = 'EN'.&lt;/P&gt;&lt;P&gt;   if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   raise invalid_currency.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;   if F_CURRENCY = 'INR'.&lt;/P&gt;&lt;P&gt;  maxno = 10 ** 10.&lt;/P&gt;&lt;P&gt;  if ( F_AMOUNT &amp;gt;= maxno ).&lt;/P&gt;&lt;P&gt;    raise AMOUNT_HIGH.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data declaration----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: ten(10),single(6),final(130),dec(20),res type i,rp(7).&lt;/P&gt;&lt;P&gt;  data: a1 type i,a2 type i,str(20),d type p,m type i,wrdrep(20).&lt;/P&gt;&lt;P&gt;  data: cntr type i,f1 type i,f2 type i,f3 type i,f4 type i,f5 type i.&lt;/P&gt;&lt;P&gt;  data: f6 type i,f7 type i,f8 type i,f9 type i,f10 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  d = ( F_AMOUNT * 100 ) div 100.&lt;/P&gt;&lt;P&gt;  res = ( F_AMOUNT * 100 ) mod 100.&lt;/P&gt;&lt;P&gt;  if res &amp;gt; 100.&lt;/P&gt;&lt;P&gt;  raise incorrect_amount.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  f1 = res div 10.&lt;/P&gt;&lt;P&gt;  f2 = res mod 10.&lt;/P&gt;&lt;P&gt;  perform setnum using f1 f2 changing wrdrep.&lt;/P&gt;&lt;P&gt;  f1 = 0. f2 = 0.&lt;/P&gt;&lt;P&gt;  dec = wrdrep.&lt;/P&gt;&lt;P&gt;  cntr = 1.&lt;/P&gt;&lt;P&gt;*Go in a loop dividing the numbers by 10 and store the&lt;/P&gt;&lt;P&gt;*residues as a digit in f1 .... f9&lt;/P&gt;&lt;P&gt;  while ( d &amp;gt; 0 ).&lt;/P&gt;&lt;P&gt;    m = d mod 10.&lt;/P&gt;&lt;P&gt;    d = d div 10.&lt;/P&gt;&lt;P&gt;    case cntr.&lt;/P&gt;&lt;P&gt;      when 1. f1 = m.&lt;/P&gt;&lt;P&gt;      when 2. f2 = m.&lt;/P&gt;&lt;P&gt;      when 3. f3 = m.&lt;/P&gt;&lt;P&gt;      when 4. f4 = m.&lt;/P&gt;&lt;P&gt;      when 5. f5 = m.&lt;/P&gt;&lt;P&gt;      when 6. f6 = m.&lt;/P&gt;&lt;P&gt;      when 7. f7 = m.&lt;/P&gt;&lt;P&gt;      when 8. f8 = m.&lt;/P&gt;&lt;P&gt;      when 9. f9 = m.&lt;/P&gt;&lt;P&gt;      when 10. f10 = m.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;    cntr = cntr + 1.&lt;/P&gt;&lt;P&gt;  endwhile.&lt;/P&gt;&lt;P&gt;  cntr = cntr - 1.&lt;/P&gt;&lt;P&gt;*Going in loop and sending pair of digits to function setnum to get&lt;/P&gt;&lt;P&gt;*the standing value of digits in words&lt;/P&gt;&lt;P&gt;  while ( cntr &amp;gt; 0 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if ( cntr &amp;lt;= 2 ).&lt;/P&gt;&lt;P&gt;      perform setnum using f2 f1 changing wrdrep.&lt;/P&gt;&lt;P&gt;      concatenate final wrdrep into final separated by ' '.&lt;/P&gt;&lt;P&gt;    elseif ( cntr = 3 ).&lt;/P&gt;&lt;P&gt;      if ( f3 &amp;lt;&amp;gt; 0 ).&lt;/P&gt;&lt;P&gt;        perform setnum using 0 f3 changing wrdrep.&lt;/P&gt;&lt;P&gt;        concatenate final wrdrep 'Hundred' into final separated by ' '.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    elseif ( cntr &amp;lt;= 5 ).&lt;/P&gt;&lt;P&gt;      if ( f5 &amp;lt;&amp;gt; 0 ) or ( f4 &amp;lt;&amp;gt; 0 ).&lt;/P&gt;&lt;P&gt;        perform setnum using f5 f4 changing wrdrep.&lt;/P&gt;&lt;P&gt;    concatenate final wrdrep 'Thousand' into final separated by ' '.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      if ( cntr = 4 ).&lt;/P&gt;&lt;P&gt;        cntr = 5.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    elseif ( cntr &amp;lt;= 7 ).&lt;/P&gt;&lt;P&gt;      if ( f7 &amp;lt;&amp;gt; 0 ) or ( f6 &amp;lt;&amp;gt; 0 ).&lt;/P&gt;&lt;P&gt;        perform setnum using f7 f6 changing wrdrep.&lt;/P&gt;&lt;P&gt;        concatenate final wrdrep 'Lakh' into final separated by ' ' .&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    elseif ( cntr &amp;lt;= 9 ).&lt;/P&gt;&lt;P&gt;      perform setnum using f9 f8 changing wrdrep.&lt;/P&gt;&lt;P&gt;      concatenate final wrdrep 'Crore' into final separated by ' ' .&lt;/P&gt;&lt;P&gt;    elseif ( cntr = 10 ).&lt;/P&gt;&lt;P&gt;      perform setnum using 0 f10 changing wrdrep.&lt;/P&gt;&lt;P&gt;  concatenate final wrdrep 'Hundred' 'And' into final separated by ' '.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    cntr = cntr - 2.&lt;/P&gt;&lt;P&gt;  endwhile.&lt;/P&gt;&lt;P&gt;*Output the final&lt;/P&gt;&lt;P&gt;  if ( final = ' One' ).rp = 'Rupee'.else. rp = 'Rupees'.endif.&lt;/P&gt;&lt;P&gt;  if ( final = '' ) and ( dec = '' ).&lt;/P&gt;&lt;P&gt;    final = 'NIL'.&lt;/P&gt;&lt;P&gt;  elseif ( final = '' ).&lt;/P&gt;&lt;P&gt;    concatenate 'Paise' dec 'Only' into final separated by ' ' .&lt;/P&gt;&lt;P&gt;  elseif ( dec = '' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    concatenate rp final 'Only' into final separated by ' ' .&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    concatenate rp final 'Paise' dec 'Only' into final separated by ' '&lt;/P&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  words = final.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;  call function 'SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     AMOUNT          = F_AMOUNT&lt;/P&gt;&lt;P&gt;     CURRENCY        = F_CURRENCY&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    FILLER          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    LANGUAGE        = SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     IN_WORDS        = words1&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;words = words1-word.  endif.&lt;/P&gt;&lt;P&gt;concatenate tcurt-ktext words 'Only' into words separated by ' '&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;  endif.&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;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  SETNUM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      converts a number into words                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  a1,a2     two digits for 2nd and 1st place&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  str       outpur in words&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ten(10),single(6),str(20).&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form setnum using a1 a2 changing str.&lt;/P&gt;&lt;P&gt;  ten = ''.single = ''.&lt;/P&gt;&lt;P&gt;  if ( a1 = 1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case a2.&lt;/P&gt;&lt;P&gt;      when 0. ten = 'Ten'.&lt;/P&gt;&lt;P&gt;      when 1. ten = 'Eleven'.&lt;/P&gt;&lt;P&gt;      when 2. ten = 'Twelve'.&lt;/P&gt;&lt;P&gt;      when 3. ten = 'Thirteen'.&lt;/P&gt;&lt;P&gt;      when 4. ten = 'Fourteen'.&lt;/P&gt;&lt;P&gt;      when 5. ten = 'Fifteen'.&lt;/P&gt;&lt;P&gt;      when 6. ten = 'Sixteen'.&lt;/P&gt;&lt;P&gt;      when 7. ten = 'Seventeen'.&lt;/P&gt;&lt;P&gt;      when 8. ten = 'Eighteen'.&lt;/P&gt;&lt;P&gt;      when 9. ten = 'Nineteen'.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case a2.&lt;/P&gt;&lt;P&gt;      when 1. single = 'One'.&lt;/P&gt;&lt;P&gt;      when 2. single = 'Two'.&lt;/P&gt;&lt;P&gt;      when 3. single = 'Three'.&lt;/P&gt;&lt;P&gt;      when 4. single = 'Four'.&lt;/P&gt;&lt;P&gt;      when 5. single = 'Five'.&lt;/P&gt;&lt;P&gt;      when 6. single = 'Six'.&lt;/P&gt;&lt;P&gt;      when 7. single = 'Seven'.&lt;/P&gt;&lt;P&gt;      when 8. single = 'Eight'.&lt;/P&gt;&lt;P&gt;      when 9. single = 'Nine'.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;    case a1.&lt;/P&gt;&lt;P&gt;      when 2. ten = 'Twenty'.&lt;/P&gt;&lt;P&gt;      when 3. ten = 'Thirty'.&lt;/P&gt;&lt;P&gt;      when 4. ten = 'Forty'.&lt;/P&gt;&lt;P&gt;      when 5. ten = 'Fifty'.&lt;/P&gt;&lt;P&gt;      when 6. ten = 'Sixty'.&lt;/P&gt;&lt;P&gt;      when 7. ten = 'Seventy'.&lt;/P&gt;&lt;P&gt;      when 8. ten = 'Eighty'.&lt;/P&gt;&lt;P&gt;      when 9. ten = 'Ninety'.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if ( single &amp;lt;&amp;gt; '' ) and ( ten &amp;lt;&amp;gt; '' ).&lt;/P&gt;&lt;P&gt;    concatenate ten single into str separated by ' '.&lt;/P&gt;&lt;P&gt;  elseif single = ''.&lt;/P&gt;&lt;P&gt;    str = ten.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    str = single.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                               " SETNUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward all the helful answers...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 09:42:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542306#M246980</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2006-08-02T09:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: REG:Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542307#M246981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use the FM &amp;lt;b&amp;gt;SPELL_AMOUNT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 09:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542307#M246981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T09:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: REG:Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542308#M246982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;i want to convert  1 means one&lt;/P&gt;&lt;P&gt;                  2 means two&lt;/P&gt;&lt;P&gt;like that not curreny field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spell_amount &lt;/P&gt;&lt;P&gt;C14W_NUMBER_CHAR_CONVERSION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any other function module is there..&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;sn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 09:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542308#M246982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T09:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: REG:Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542309#M246983</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;Consider this code using &amp;lt;b&amp;gt;SPELL_AMOUNT&amp;lt;/b&amp;gt; just pass the number 1, 2 ... and will get in words. If not this then use &amp;lt;b&amp;gt;CASE...ENDCASE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CASE int.

WHEN 1.

var = 'ONE'

WHEN 2.

var = 'TWO'

ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Just copy the code and execute.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  zztest_prd_1                            .

DATA : amount   TYPE i,
       in_words TYPE STANDARD TABLE OF spell WITH HEADER LINE.



DO 9 TIMES.

  amount = sy-index.

  CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
      amount    = amount
      language  = sy-langu
    IMPORTING
      in_words  = in_words
    EXCEPTIONS
      not_found = 1
      too_large = 2
      OTHERS    = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

  READ TABLE in_words WITH KEY number = amount.
  WRITE : /(5) amount,
           10(15) in_words-word.


ENDDO.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 10:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542309#M246983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T10:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: REG:Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542310#M246984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the simplest solution is to read table T015Z with language, unit and figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example in T015Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Language = EN&lt;/P&gt;&lt;P&gt;Unit = 0&lt;/P&gt;&lt;P&gt;Figure = 1&lt;/P&gt;&lt;P&gt;Number in words = ONE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It ends with semi-colon but surely you can use translate command to replace it with space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 10:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module/m-p/1542310#M246984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T10:13:55Z</dc:date>
    </item>
  </channel>
</rss>

