<?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 for converting character to currency in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-character-to-currency/m-p/1681335#M300287</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;Try ISM_CONVERT_CHAR_TO_CURR&lt;/P&gt;&lt;P&gt;function module.&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 helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Manas Ranjan Panda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Nov 2006 12:28:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-06T12:28:45Z</dc:date>
    <item>
      <title>Function module for converting character to currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-character-to-currency/m-p/1681333#M300285</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 got a field with the currency data type, but the text file given to me has only character. so i need a &lt;/P&gt;&lt;P&gt;Function Module to convert the character field to currency.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 12:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-character-to-currency/m-p/1681333#M300285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T12:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for converting character to currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-character-to-currency/m-p/1681334#M300286</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 HRCM_STRING_TO_AMOUNT_CONVERT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass the string , thousand separator,decimal separator, if it is currecy pass currecy key WAERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v_dcpfm    TYPE usr01-dcpfm,
      v_amount   TYPE bseg-wrbtr,
      v_char(16) TYPE C.
 
SELECT SINGLE dcpfm FROM usr01
                    INTO v_dcpfm
                   WHERE bname = sy-uname.
IF v_dcpfm = 'X'.
*-- decimal point is '.' and thousands separator is ','
  TRANSLATE v_char USING ', '.
  CONDENSE v_char NO-GAPS.
  v_amount = v_char.

ELSEIF v_dcpfm = 'Y'.
*-- decimal point is ',' and thousands separator is '.'
  TRANSLATE v_char USING '. '.
  CONDENSE v_char NO-GAPS.
  v_amount = v_char.

ELSE.
*-- decimal point is ',' and thousands separator is space
  CONDENSE v_char NO-GAPS.
  v_amount = v_char.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 12:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-character-to-currency/m-p/1681334#M300286</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-06T12:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for converting character to currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-character-to-currency/m-p/1681335#M300287</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;Try ISM_CONVERT_CHAR_TO_CURR&lt;/P&gt;&lt;P&gt;function module.&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 helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Manas Ranjan Panda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 12:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-character-to-currency/m-p/1681335#M300287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T12:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for converting character to currency</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-character-to-currency/m-p/1681336#M300288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi clara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the 'PACK' command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 12:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-character-to-currency/m-p/1681336#M300288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T12:32:31Z</dc:date>
    </item>
  </channel>
</rss>

