<?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: SAPScript converting numeric to word by using FM spell_amount in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-converting-numeric-to-word-by-using-fm-spell-amount/m-p/3752703#M902786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dhiraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the type declarations of the fields which r passed to the parameters of the Function modules&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 = &lt;STRONG&gt;wa-seatnum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*CURRENCY = ' '&lt;/P&gt;&lt;P&gt;*FILLER = ' '&lt;/P&gt;&lt;P&gt;LANGUAGE = 'EN'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;IN_WORDS = &lt;STRONG&gt;word&lt;/STRONG&gt;&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;&lt;STRONG&gt;please try this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:   result TYPE vbak-netwr,
          words TYPE spell.

     CALL FUNCTION 'SPELL_AMOUNT'
        EXPORTING
          amount    = result
          currency  = wa_tabl-waerk
          filler    = ' '
          language  = sy-langu
        IMPORTING
          in_words  = words
        EXCEPTIONS
          not_found = 1
          too_large = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;raam&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2008 09:52:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-22T09:52:32Z</dc:date>
    <item>
      <title>SAPScript converting numeric to word by using FM spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-converting-numeric-to-word-by-using-fm-spell-amount/m-p/3752701#M902784</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;I am using FM SPELL_AMOUNT to convert from numeric to word, but when i run the driver program, i get an exception TYPE CONFLICT WHEN CALLING FUNCTION MODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the syntax of function module call:-&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 = wa-seatnum&lt;/P&gt;&lt;P&gt;*CURRENCY = ' '&lt;/P&gt;&lt;P&gt;*FILLER = ' '&lt;/P&gt;&lt;P&gt;LANGUAGE = 'EN'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;IN_WORDS = word&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;Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 09:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-converting-numeric-to-word-by-using-fm-spell-amount/m-p/3752701#M902784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T09:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript converting numeric to word by using FM spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-converting-numeric-to-word-by-using-fm-spell-amount/m-p/3752702#M902785</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;Like any function module, the data type of your variables need to match the definition in the function module.  So, either wa-seatnum or word need to be changed to have the same defintion as the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The short dump will tell you which field is incorrect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 09:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-converting-numeric-to-word-by-using-fm-spell-amount/m-p/3752702#M902785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript converting numeric to word by using FM spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-converting-numeric-to-word-by-using-fm-spell-amount/m-p/3752703#M902786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dhiraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the type declarations of the fields which r passed to the parameters of the Function modules&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 = &lt;STRONG&gt;wa-seatnum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*CURRENCY = ' '&lt;/P&gt;&lt;P&gt;*FILLER = ' '&lt;/P&gt;&lt;P&gt;LANGUAGE = 'EN'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;IN_WORDS = &lt;STRONG&gt;word&lt;/STRONG&gt;&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;&lt;STRONG&gt;please try this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:   result TYPE vbak-netwr,
          words TYPE spell.

     CALL FUNCTION 'SPELL_AMOUNT'
        EXPORTING
          amount    = result
          currency  = wa_tabl-waerk
          filler    = ' '
          language  = sy-langu
        IMPORTING
          in_words  = words
        EXCEPTIONS
          not_found = 1
          too_large = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;raam&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 09:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-converting-numeric-to-word-by-using-fm-spell-amount/m-p/3752703#M902786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAPScript converting numeric to word by using FM spell_amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-converting-numeric-to-word-by-using-fm-spell-amount/m-p/3752704#M902787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Use the Function Module SPELL_AMOUNT to convert the integer into text.&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;Regards,&lt;/P&gt;&lt;P&gt;Shiva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 09:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-converting-numeric-to-word-by-using-fm-spell-amount/m-p/3752704#M902787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T09:56:10Z</dc:date>
    </item>
  </channel>
</rss>

