<?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: Problem in spell_amount - plz solve in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357175#M1037328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Payamout (SPELL-NUMBER) has not decimals ! Try type P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had the same problem and call the fm twice...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_numX type SPELL-NUMBER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_num1 = payamout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_num2 = ( payamout * 100 ) mod 100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2008 13:33:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-22T13:33:46Z</dc:date>
    <item>
      <title>Problem in spell_amount - plz solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357173#M1037326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus..&lt;/P&gt;&lt;P&gt;My Problem is like this, &lt;/P&gt;&lt;P&gt;I want to populate the amount in full...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : T_SPELL LIKE SPELL,&lt;/P&gt;&lt;P&gt;       V_TOTAL TYPE YRATE VALUE '1985.64'.&lt;/P&gt;&lt;P&gt;DATA : PAMOUNT LIKE SPELL-NUMBER.&lt;/P&gt;&lt;P&gt;PAMOUNT = V_TOTAL.&lt;/P&gt;&lt;P&gt;PERFORM SPELL_AMOUNT USING PAMOUNT&lt;/P&gt;&lt;P&gt;WRITE:  T_SPELL-WORD,  'and',  T_SPELL-DECWORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SPELL_AMOUNT USING AMOUNT.&lt;/P&gt;&lt;P&gt;&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 = &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;&lt;/P&gt;&lt;P&gt;ENDFORM.        "SPELL_AMOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output is like this :- &lt;/P&gt;&lt;P&gt;One thousand nine hundred eighty-six and  zero&lt;/P&gt;&lt;P&gt;where as  i want output as -One thousand nine hundred eighty-five and  sixty four&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shirish Mishra on Aug 22, 2008 3:22 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shirish Mishra on Aug 22, 2008 3:23 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;LOCKED BY MODERATOR - URGENT, PLEASE HELP OR SIMILAR ARE FORBIDDEN&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Aug 22, 2008 4:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 13:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357173#M1037326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T13:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spell_amount - plz solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357174#M1037327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shirish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the FM &lt;/P&gt;&lt;P&gt;HR_IN_CHG_INR_WRDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return the output as shown in the variable AMT_IN_WORDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ONE THOUSAND NINE HUNDRED EIGHTY FIVE Rupees SIXTY FOUR Paise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify this by removing the word Rupees and Paise&lt;/P&gt;&lt;P&gt;from it and the output should be as you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace all occurences of 'rupees' with 'and'.&lt;/P&gt;&lt;P&gt;replace all occurences of 'paise' with ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prashant H Gupta on Aug 22, 2008 8:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 13:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357174#M1037327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T13:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spell_amount - plz solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357175#M1037328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Payamout (SPELL-NUMBER) has not decimals ! Try type P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had the same problem and call the fm twice...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_numX type SPELL-NUMBER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_num1 = payamout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_num2 = ( payamout * 100 ) mod 100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 13:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357175#M1037328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T13:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spell_amount - plz solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357176#M1037329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
report ztest828.


DATA : T_SPELL LIKE SPELL,
V_TOTAL TYPE p decimals 2 VALUE '1985.64'.
DATA : PAMOUNT TYPE p decimals 2  .
PAMOUNT = V_TOTAL.
PERFORM SPELL_AMOUNT USING PAMOUNT.
*WRITE: T_SPELL-WORD, 'and', T_SPELL-DECWORD.

FORM SPELL_AMOUNT USING AMOUNT.

data : l_num type SPELL-NUMBER.

l_num = amount.

CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = l_num
*CURRENCY =
FILLER = SPACE
LANGUAGE = 'E'
IMPORTING
IN_WORDS = T_SPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.


write : T_SPELL-WORD.


l_num = ( amount * 100 ) mod 100.

CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = l_num
*CURRENCY =
FILLER = SPACE
LANGUAGE = 'E'
IMPORTING
IN_WORDS = T_SPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.


write : T_SPELL-WORD.



ENDFORM. "SPELL_AMOUNT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 13:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357176#M1037329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T13:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spell_amount - plz solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357177#M1037330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mishra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this piece of code....might be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLES : spell.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA : w_rupees(6) VALUE 'RUPEES',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;w_paisa(3) VALUE 'Ps',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;w_and(3) VALUE 'AND',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;w_string TYPE string.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PARAMETERS: a TYPE i.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'SPELL_AMOUNT'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;amount          = a&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  CURRENCY        = ' '*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  FILLER          = ' '*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;   &lt;STRONG&gt;language        = sy-langu&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;IMPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;in_words        = spell&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;EXCEPTIONS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;not_found       = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;too_large       = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;OTHERS          = 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CONCATENATE w_rupees spell-word(128) w_and spell-decword(64) w_paisa INTO w_string SEPARATED BY space.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always Learner..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 14:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357177#M1037330</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2008-08-22T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spell_amount - plz solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357178#M1037331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi stephan,&lt;/P&gt;&lt;P&gt;Now output is coming like this :-&lt;/P&gt;&lt;P&gt;ONE THOUSAND NINE HUNDRED EIGHTY-SIX&lt;/P&gt;&lt;P&gt;SIXTY-FOUR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want ONE THOUSAND NINE HUNDRED EIGHTY-FIVE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 14:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357178#M1037331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T14:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spell_amount - plz solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357179#M1037332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shirish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;I want ONE THOUSAND NINE HUNDRED EIGHTY-FIVE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM ROUND before passing the value to spell_amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 14:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357179#M1037332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T14:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spell_amount - plz solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357180#M1037333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Routine updated ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;l_num = amount div 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report ztest828.


DATA : T_SPELL LIKE SPELL,
V_TOTAL TYPE p decimals 2 VALUE '1985.64'.
DATA : PAMOUNT TYPE p decimals 2  .
PAMOUNT = V_TOTAL.
PERFORM SPELL_AMOUNT USING PAMOUNT.
*WRITE: T_SPELL-WORD, 'and', T_SPELL-DECWORD.

FORM SPELL_AMOUNT USING AMOUNT.

data : l_num type SPELL-NUMBER.

l_num = amount div 1.

CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = l_num
*CURRENCY =
FILLER = SPACE
LANGUAGE = 'E'
IMPORTING
IN_WORDS = T_SPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.


write : T_SPELL-WORD.


l_num = ( amount * 100 ) mod 100.

CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = l_num
*CURRENCY =
FILLER = SPACE
LANGUAGE = 'E'
IMPORTING
IN_WORDS = T_SPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.


write : T_SPELL-WORD.



ENDFORM. "SPELL_AMOUNT


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Stephan Kaminski on Aug 22, 2008 5:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 15:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spell-amount-plz-solve/m-p/4357180#M1037333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T15:00:49Z</dc:date>
    </item>
  </channel>
</rss>

