<?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: Function Module Help. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189883#M1374415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinab Mishra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA:  v_decimal(2) TYPE n,&lt;/P&gt;&lt;P&gt;             v_decimales(6) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  p_amount  = p_amount * 100.&lt;/P&gt;&lt;P&gt;  v_decimal = p_amount MOD 100.&lt;/P&gt;&lt;P&gt;  p_amount  = p_amount / 100.&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    = p_amount&lt;/P&gt;&lt;P&gt;      currency  =  v_waers&lt;/P&gt;&lt;P&gt;      language  = sy-langu&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      in_words  = it_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;      CONCATENATE it_spell-word&lt;/P&gt;&lt;P&gt;                  'AND'&lt;/P&gt;&lt;P&gt;                  v_decimal&lt;/P&gt;&lt;P&gt;                  INTO p_total SEPARATED BY space.&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;José&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2009 20:48:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-13T20:48:29Z</dc:date>
    <item>
      <title>Function Module Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189879#M1374411</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;Is there any function module to convert currency into words??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, I know the function modules SPELL_AMOUNT and HR_IN_CHG_INR_WRDS are used for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my requirement is little different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement goes something like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the amount is $23.43 or Rs 23.43 then the words should come like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Twenty Three dollars and forty three cents or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Twenty Three ruppes and forty three paise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any kind of help will be really appreciated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhinab Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 18:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189879#M1374411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T18:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189880#M1374412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is any FM which handles after decimals ...&lt;/P&gt;&lt;P&gt;Instead split the amount and call FM separately (two times) ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 19:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189880#M1374412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T19:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189881#M1374413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to achieve this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like the cents and paise??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 19:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189881#M1374413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T19:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189882#M1374414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only way is to aplit your amount into two variables .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split v_amount at ',' into v_f1 v_dec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now call FM 2 times passing the above variables ... &lt;/P&gt;&lt;P&gt;Concatenate both ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 19:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189882#M1374414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T19:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189883#M1374415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinab Mishra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA:  v_decimal(2) TYPE n,&lt;/P&gt;&lt;P&gt;             v_decimales(6) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  p_amount  = p_amount * 100.&lt;/P&gt;&lt;P&gt;  v_decimal = p_amount MOD 100.&lt;/P&gt;&lt;P&gt;  p_amount  = p_amount / 100.&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    = p_amount&lt;/P&gt;&lt;P&gt;      currency  =  v_waers&lt;/P&gt;&lt;P&gt;      language  = sy-langu&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      in_words  = it_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;      CONCATENATE it_spell-word&lt;/P&gt;&lt;P&gt;                  'AND'&lt;/P&gt;&lt;P&gt;                  v_decimal&lt;/P&gt;&lt;P&gt;                  INTO p_total SEPARATED BY space.&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;José&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 20:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189883#M1374415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T20:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189884#M1374416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt;SPELL_AMOUNT is the right function module.
&amp;lt;li&amp;gt;Try the sample program.
&lt;PRE&gt;&lt;CODE&gt;REPORT ztest.
DATA:langu      LIKE sy-langu,
     currency   LIKE payr_fi-waers VALUE 'USD',
     amount     LIKE payr_fi-rwbtr VALUE '123456789.12'.
DATA:wa_spell   TYPE spell.
CALL FUNCTION 'SPELL_AMOUNT'
  EXPORTING
    amount    = amount
    currency  = currency
    filler    = space
    language  = sy-langu
  IMPORTING
    in_words  = wa_spell
  EXCEPTIONS
    not_found = 1
    too_large = 2
    OTHERS    = 3.
IF sy-subrc EQ 0.
  DATA:full_in_words TYPE string.
  CONCATENATE wa_spell-word 'dollors' 'and' wa_spell-decword 'cents'
         INTO full_in_words
 SEPARATED BY space.
  WRITE full_in_words.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 02:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189884#M1374416</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-14T02:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189885#M1374417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abhinav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please split your amount at '.', and put into two variables and call SPELL_AMOUNT FM two times for each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that just concatenate both variable and pass it to final amount field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM for displaying amount after decimal is not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope above will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 03:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-help/m-p/6189885#M1374417</guid>
      <dc:creator>SujeetMishra</dc:creator>
      <dc:date>2009-10-14T03:42:47Z</dc:date>
    </item>
  </channel>
</rss>

