<?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: SPELL_AMOUNT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191934#M467332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : money TYPE i,
value LIKE sy-waers,
lang LIKE sy-langu,
in_letters LIKE spell.

money = 1000.
CALL FUNCTION 'SPELL_AMOUNT'
  EXPORTING
    amount    = money
  IMPORTING
    in_words  = in_letters
  EXCEPTIONS
    not_found = 1
    too_large = 2
    OTHERS    = 3.
IF sy-subrc &amp;lt;&amp;gt; 0.
ENDIF.

WRITE : / money, value, in_letters-word.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2007 21:15:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-07T21:15:57Z</dc:date>
    <item>
      <title>SPELL_AMOUNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191930#M467328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Can any one help me with following code.? Please fix the errors in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : MONEY TYPE I,&lt;/P&gt;&lt;P&gt;            VALUE LIKE SY-WAERS,&lt;/P&gt;&lt;P&gt;            LANG LIKE SY-LANGU,&lt;/P&gt;&lt;P&gt;IN_LETTERS LIKE SPELL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONEY = 1000.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SPELL AMOUNT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;AMOUNT = MONEY&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;IN_WORDS = IN_LETTERS&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;IF SY-SUBRC &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : / AMOUNT, VALUE, IN_LETTERS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191930#M467328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T20:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: SPELL_AMOUNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191931#M467329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess data type for MONEY should be N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check and confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 21:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191931#M467329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T21:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: SPELL_AMOUNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191932#M467330</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;Check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : money      TYPE p DECIMALS 2,&lt;/P&gt;&lt;P&gt;       in_letters LIKE spell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;money = '1000.00'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          amount    = money&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          in_words  = in_letters&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;&lt;/P&gt;&lt;P&gt;WRITE : / in_letters-WORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 21:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191932#M467330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T21:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: SPELL_AMOUNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191933#M467331</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: MONEY LIKE PAYR-RWBTR,
      VALUE LIKE SY-WAERS,
      LANG  LIKE SY-LANGU,
      IN_LETTERS LIKE SPELL.
                                                                        
MONEY = 1000.
VALUE = SY-WAERS.
LANG = SY-LANGU.
                                                                        
CALL FUNCTION 'SPELL_AMOUNT'
  EXPORTING
    AMOUNT    = MONEY
    CURRENCY  = VALUE
    LANGUAGE  = LANG
  IMPORTING
    IN_WORDS  = IN_LETTERS
  EXCEPTIONS
    NOT_FOUND = 1
    TOO_LARGE = 2
    OTHERS    = 3.
                                                                        
WRITE : / MONEY, VALUE, IN_LETTERS-WORD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 21:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191933#M467331</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-07T21:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: SPELL_AMOUNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191934#M467332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : money TYPE i,
value LIKE sy-waers,
lang LIKE sy-langu,
in_letters LIKE spell.

money = 1000.
CALL FUNCTION 'SPELL_AMOUNT'
  EXPORTING
    amount    = money
  IMPORTING
    in_words  = in_letters
  EXCEPTIONS
    not_found = 1
    too_large = 2
    OTHERS    = 3.
IF sy-subrc &amp;lt;&amp;gt; 0.
ENDIF.

WRITE : / money, value, in_letters-word.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 21:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191934#M467332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T21:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: SPELL_AMOUNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191935#M467333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output I am getting is One Thousand.&lt;/P&gt;&lt;P&gt;I would like to have output as One thousand dollars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE = SY-WAERS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 00:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191935#M467333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T00:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: SPELL_AMOUNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191936#M467334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output I am getting is One Thousand.&lt;/P&gt;&lt;P&gt;I would like to have output as One thousand dollars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE = SY-WAERS. What does this statement do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 00:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191936#M467334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T00:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: SPELL_AMOUNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191937#M467335</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;Try this code.Now it is not showing any error.Reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : MONEY TYPE I,&lt;/P&gt;&lt;P&gt;VALUE LIKE SY-WAERS,&lt;/P&gt;&lt;P&gt;LANG LIKE SY-LANGU,&lt;/P&gt;&lt;P&gt;IN_LETTERS TYPE SPELL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONEY = 1000.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SPELL_AMOUNT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;AMOUNT = MONEY&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;IN_WORDS = IN_LETTERS&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&amp;lt;b&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0&amp;lt;b&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : / &amp;lt;b&amp;gt;MONEY&amp;lt;/b&amp;gt;, VALUE, &amp;lt;b&amp;gt;IN_LETTERS-word&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 02:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2191937#M467335</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-05-08T02:42:40Z</dc:date>
    </item>
  </channel>
</rss>

