<?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: Regarding Scripts... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647688#M610021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see this sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP function to convert Number to Words&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; The function allows you to covert easily from numbers to words.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 '1234510'.&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;regards,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*&lt;STRONG&gt;reward for useful answers&lt;/STRONG&gt;*&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2007 14:49:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-21T14:49:14Z</dc:date>
    <item>
      <title>Regarding Scripts...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647683#M610016</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 want to display the amount in words for a value in a layout. Which function module should be called &amp;amp; is there any possibility of calling that functional module from sap script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varadharajan.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 14:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647683#M610016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T14:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Scripts...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647684#M610017</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 FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPELL_AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Azad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 14:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647684#M610017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T14:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Scripts...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647685#M610018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SPELL_AMOUNT is the function module, but you cannot call it directly from the SAPscript.  You will need to either call it from your print program (if you are able to change it) before the form is created or call a subroutine from the SAPscript and call the FM from that subroutine.  How to call a subroutine from SAPscript is covered in the online help and by many threads in this forum.&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, 21 Aug 2007 14:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647685#M610018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Scripts...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647686#M610019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vara, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPELL_Amount is FM. I beleive you have to use this as a perform statement and create a small include program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 14:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647686#M610019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T14:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Scripts...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647687#M610020</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;&lt;/P&gt;&lt;P&gt;In the driver program we need to call the function module to convert amount in to the words. Go to Se38 click on pattern at function module give the function module name 'SPELL_AMOUNT' after that fill the required attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex :-&lt;/P&gt;&lt;P&gt;call function 'SPELL_AMOUNT'     &lt;/P&gt;&lt;P&gt;      exporting                   &lt;/P&gt;&lt;P&gt;           amount    = komk-fkwrt &lt;/P&gt;&lt;P&gt;           currency  = komk-waerk &lt;/P&gt;&lt;P&gt;           filler    = ' '        &lt;/P&gt;&lt;P&gt;            language  = nast-spras&lt;/P&gt;&lt;P&gt;           language  = 'E'        &lt;/P&gt;&lt;P&gt;      importing                   &lt;/P&gt;&lt;P&gt;           in_words  = text       &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is useful....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vasudeva Rao.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 14:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647687#M610020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Scripts...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647688#M610021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see this sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP function to convert Number to Words&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; The function allows you to covert easily from numbers to words.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 '1234510'.&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;regards,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*&lt;STRONG&gt;reward for useful answers&lt;/STRONG&gt;*&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 14:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647688#M610021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T14:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Scripts...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647689#M610022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vara, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just gone through the old question in this forum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saquib Khan has answered me the same question, his answer was very helpful to me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Find the FM "FM : SPELL_AMOUNT" in print program and see in which variable its populating ... are you working on International Payment Medium - Check (with check management) RFFOUS_C ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes variable name is "SPELL"&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So bottom line is, you variable &amp;amp;SPELL&amp;amp;, If you are using RFFOUS_C print program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Khan, once gain. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 14:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-scripts/m-p/2647689#M610022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T14:54:05Z</dc:date>
    </item>
  </channel>
</rss>

