<?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: convert amount in words - smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597170#M1083838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PERFORM convert_2_words USING EXCISE_AMT&lt;/P&gt;&lt;P&gt;CHANGING EXCISE_WRDS.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  convert_2_words&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;AMT        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;WRDS       text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM convert_2_words USING    amt&lt;/P&gt;&lt;P&gt;CHANGING wrds.&lt;/P&gt;&lt;P&gt;DATA : input TYPE pc207-betrg.&lt;/P&gt;&lt;P&gt;input = amt.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_IN_CHG_INR_WRDS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;amt_in_num         = input&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;amt_in_words       = wrds&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;data_type_mismatch = 1&lt;/P&gt;&lt;P&gt;OTHERS             = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "convert_2_words&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2008 10:15:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-23T10:15:53Z</dc:date>
    <item>
      <title>convert amount in words - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597165#M1083833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , &lt;/P&gt;&lt;P&gt;   i have prepared an invoice bill in smartform.i want the grandtotal value to be displayed in words..is there any function module what we have script like convert_amount_in_words...do we have any such in smartforms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 10:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597165#M1083833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T10:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: convert amount in words - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597166#M1083834</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 SPELL_AMOUNT function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 10:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597166#M1083834</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-10-23T10:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: convert amount in words - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597167#M1083835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u this Fm&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'SPELL_AMOUNT'
  EXPORTING
    amount   = a
  IMPORTING
    in_words = gv_words.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 10:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597167#M1083835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T10:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: convert amount in words - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597168#M1083836</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;you can use &lt;STRONG&gt;HR_IN_CHG_INR_WRDS&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 10:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597168#M1083836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T10:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: convert amount in words - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597169#M1083837</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;PRE&gt;&lt;CODE&gt;

this is my own customised Function Module..You can use this...
import
AMOUNT	TYPE	KONV-KAWRT	                     	Condition base value
CURRENCY	TYPE	CHAR3	                     	3-Byte field

export
WORDS	TYPE	C
FUNCTION zconvert_amnt_to_words.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(AMOUNT) TYPE  KONV-KAWRT
*"     REFERENCE(CURRENCY) TYPE  CHAR3
*"  EXPORTING
*"     REFERENCE(WORDS) TYPE  C
*"----------------------------------------------------------------------
  DATA: w_amount(255)  TYPE c,
          w_out_amt(255) TYPE c,
          amt_in_inr TYPE pc207-betrg.

  amt_in_inr = amount.
  IF currency = 'INR'.
    CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
      EXPORTING
        amt_in_num         = amt_in_inr
      IMPORTING
        amt_in_words       = w_amount
      EXCEPTIONS
        data_type_mismatch = 1
        OTHERS             = 2.
    IF sy-subrc &amp;lt;&amp;gt; 0.
*    RAISE data_type_mismatch.
    ENDIF.

    IF w_amount CS 'Rupee' AND w_amount NS 'Rupees'.
      IF w_amount CS 'Paise'.
        REPLACE 'Rupee' WITH 'And' INTO w_amount.
      ELSE.
        REPLACE 'Rupee' WITH space INTO w_amount.
      ENDIF.
      CONCATENATE  w_amount ' Only' INTO w_amount.
    ELSEIF w_amount CS 'Rupees'.
      IF w_amount CS 'Paise'.
        REPLACE 'Rupees' WITH 'And' INTO w_amount.
      ELSE.
        REPLACE 'Rupees' WITH space INTO w_amount.
      ENDIF.
      CONCATENATE  w_amount ' Only' INTO w_amount.
    ELSE.
      CONCATENATE w_amount ' Only' INTO w_amount.
    ENDIF.

    TRANSLATE w_amount TO UPPER CASE.

    words = w_amount.
  ENDIF.



ENDFUNCTION.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 10:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597169#M1083837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T10:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: convert amount in words - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597170#M1083838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PERFORM convert_2_words USING EXCISE_AMT&lt;/P&gt;&lt;P&gt;CHANGING EXCISE_WRDS.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  convert_2_words&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;AMT        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;WRDS       text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM convert_2_words USING    amt&lt;/P&gt;&lt;P&gt;CHANGING wrds.&lt;/P&gt;&lt;P&gt;DATA : input TYPE pc207-betrg.&lt;/P&gt;&lt;P&gt;input = amt.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_IN_CHG_INR_WRDS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;amt_in_num         = input&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;amt_in_words       = wrds&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;data_type_mismatch = 1&lt;/P&gt;&lt;P&gt;OTHERS             = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "convert_2_words&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 10:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597170#M1083838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T10:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: convert amount in words - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597171#M1083839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;the same function module can be used in Smartform.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 10:16:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597171#M1083839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T10:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: convert amount in words - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597172#M1083840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 10:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-amount-in-words-smartforms/m-p/4597172#M1083840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T10:17:17Z</dc:date>
    </item>
  </channel>
</rss>

