<?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/2392361#M532138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data :       TOTAL1(10) TYPE I.
DATA  begin of in_word occurs 0.
             include structure spell.
data    end of in_word.

CALL FUNCTION 'SPELL_AMOUNT'
 EXPORTING
   AMOUNT          =  TOTAL1
   CURRENCY        =  CHWAERK
   FILLER          = ' '
   LANGUAGE        = SY-LANGU
 IMPORTING
   IN_WORDS        =  in_word
 EXCEPTIONS
   NOT_FOUND       = 1
   TOO_LARGE       = 2
   OTHERS          = 3&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2007 07:40:09 GMT</pubDate>
    <dc:creator>gopi_narendra</dc:creator>
    <dc:date>2007-06-18T07:40:09Z</dc:date>
    <item>
      <title>Spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392357#M532134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please explain about import and export paramters of spell_amount&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 07:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392357#M532134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T07:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392358#M532135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Import parametrs&lt;/P&gt;&lt;P&gt;AMOUNT			0&lt;/P&gt;&lt;P&gt;CURRENCY	LIKE	SY-WAERS	SPACE&lt;/P&gt;&lt;P&gt;FILLER			SPACE&lt;/P&gt;&lt;P&gt;LANGUAGE	LIKE	SY-LANGU	SY-LANGU&lt;/P&gt;&lt;P&gt;Export paramter&lt;/P&gt;&lt;P&gt;IN_WORDS	LIKE	SPELL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 07:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392358#M532135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T07:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392359#M532136</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;DATA v_int TYPE i VALUE '1000'.&lt;/P&gt;&lt;P&gt;DATA words LIKE SPELL.&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          = v_int&lt;/P&gt;&lt;P&gt;   LANGUAGE        = SY-LANGU&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   IN_WORDS        = words&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;WRITE words-word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close the thread if it is answered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;hari krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 07:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392359#M532136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T07:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392360#M532137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the  below example  for all the parameters of the Function Module .....&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 07:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392360#M532137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T07:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392361#M532138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data :       TOTAL1(10) TYPE I.
DATA  begin of in_word occurs 0.
             include structure spell.
data    end of in_word.

CALL FUNCTION 'SPELL_AMOUNT'
 EXPORTING
   AMOUNT          =  TOTAL1
   CURRENCY        =  CHWAERK
   FILLER          = ' '
   LANGUAGE        = SY-LANGU
 IMPORTING
   IN_WORDS        =  in_word
 EXCEPTIONS
   NOT_FOUND       = 1
   TOO_LARGE       = 2
   OTHERS          = 3&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 07:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392361#M532138</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-06-18T07:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392362#M532139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;       chk this prog by increasing the amount&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;REPORT ZSPELL.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TABLES SPELL.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : PAMOUNT LIKE SPELL-NUMBER  VALUE '123451022343333235'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SY-TITLE = 'SPELLING NUMBER'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PERFORM SPELL_AMOUNT USING PAMOUNT 'USD'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;WRITE: 'NUMBERS', T_SPELL-WORD, 'DECIMALS ', T_SPELL-DECWORD.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM SPELL_AMOUNT USING PWRBTR PWAERS.&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    = PAMOUNT&lt;/P&gt;&lt;P&gt;            CURRENCY  = PWAERS&lt;/P&gt;&lt;P&gt;            FILLER    = SPACE&lt;/P&gt;&lt;P&gt;            LANGUAGE  = 'E'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            IN_WORDS  = T_SPELL&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;ENDFORM.                               " SPELL_AMOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 07:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392362#M532139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T07:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392363#M532140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can we cover decimals with spell_amount&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 15:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392363#M532140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T15:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392364#M532141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanq for answer could you explain how we can cover decimals in this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 15:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392364#M532141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T15:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392365#M532142</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;Pass the amount after Decimal to the Spell amount seperately and then concatenate the two parts of the amount. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example : 30.60 USD &lt;/P&gt;&lt;P&gt;Store the amount in a character string. Split the string at decimal point using a SPLIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: amount_total(10),&lt;/P&gt;&lt;P&gt;           round(7),&lt;/P&gt;&lt;P&gt;           dec_part(3).&lt;/P&gt;&lt;P&gt;DATA: dec(1) TYPE c VALUE '.',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;amount_total = '30.69'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT amount_total AT dec INTO  round dec_part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First pass variable 'round' to Spell_amount and then in the second call pass variable 'Dec_PART' and concatenate the two results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waseem Imran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then concatenate the results. and the resulting string will be 30 Dollars 60 Cents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 18:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spell-amount/m-p/2392365#M532142</guid>
      <dc:creator>former_member214498</dc:creator>
      <dc:date>2007-06-18T18:47:02Z</dc:date>
    </item>
  </channel>
</rss>

