<?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: string to amount in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-amount/m-p/4064339#M971519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do it in this way&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt; l_field TYPE string,&lt;/P&gt;&lt;P&gt; l_amount TYPE TSLVT12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_field = '1234156345655'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HRCM_STRING_TO_AMOUNT_CONVERT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    string                    = l_field&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DECIMAL_SEPARATOR         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  THOUSANDS_SEPARATOR       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   WAERS                     = 'USD '&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   BETRG                     = l_amount&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   CONVERT_ERROR             = 1&lt;/P&gt;&lt;P&gt;   OTHERS                    = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2008 06:33:33 GMT</pubDate>
    <dc:creator>Subhankar</dc:creator>
    <dc:date>2008-07-03T06:33:33Z</dc:date>
    <item>
      <title>string to amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-amount/m-p/4064336#M971516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt; how to convert string to amount field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 06:08:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-amount/m-p/4064336#M971516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T06:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: string to amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-amount/m-p/4064337#M971517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi bala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this can be easily achieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first move the amount in string field to type p field and then write the type p field to a type c field with currency addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: amt(20) .&lt;/P&gt;&lt;P&gt;data: pamt(16) type p decimals 2 .&lt;/P&gt;&lt;P&gt;data: camt(30) .&lt;/P&gt;&lt;P&gt;amt = '12345678.80' .&lt;/P&gt;&lt;P&gt;pamt = amt .&lt;/P&gt;&lt;P&gt;write pamt to camt currency 'USD' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out the above sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the code explained here in this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="268146"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or check out this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1202983"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 06:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-amount/m-p/4064337#M971517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T06:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: string to amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-amount/m-p/4064338#M971518</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 with fm HRCM_STRING_TO_AMOUNT_CONVERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 06:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-amount/m-p/4064338#M971518</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2008-07-03T06:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: string to amount</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-amount/m-p/4064339#M971519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do it in this way&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt; l_field TYPE string,&lt;/P&gt;&lt;P&gt; l_amount TYPE TSLVT12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_field = '1234156345655'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HRCM_STRING_TO_AMOUNT_CONVERT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    string                    = l_field&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DECIMAL_SEPARATOR         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  THOUSANDS_SEPARATOR       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   WAERS                     = 'USD '&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   BETRG                     = l_amount&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   CONVERT_ERROR             = 1&lt;/P&gt;&lt;P&gt;   OTHERS                    = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 06:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-amount/m-p/4064339#M971519</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2008-07-03T06:33:33Z</dc:date>
    </item>
  </channel>
</rss>

