<?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: Different amount filed format in Development &amp; Quality server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331096#M1991587</link>
    <description>&lt;P&gt;Don't do those explicit conversion from currency amount to text and implicitly back conversion in the WHERE clause. The internal value of the field can be used in the where criteria, your conversion may result in wrong amount conversions related to number of decimal for the currency code.&lt;/P&gt;&lt;P&gt;If you actually require the cleared items/amounts related to a clearing document, look at some FMs such as GET_CLEARED_ITEMS 'Cleared items for a payment document'.&lt;/P&gt;&lt;P&gt;Or can you explain your exact requirement?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 15:38:59 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2021-03-23T15:38:59Z</dc:date>
    <item>
      <title>Different amount filed format in Development &amp; Quality server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331094#M1991585</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am facing the issue while fetching the data based on amount filed (DMBTR). I observed that in development server amount filed stores data like - 60.000,00, where as same data was stored in Quality server like - 60,000.00. Please suggest how to handle this error to fetch the data using select query.&lt;/P&gt;
  &lt;P&gt;DATA : lv_bal_amnt(13) type c.&lt;/P&gt;
  &lt;P&gt;IF lt_balance[] IS NOT INITIAL.&lt;BR /&gt;&lt;BR /&gt; CLEAR ls_balance.&lt;BR /&gt; LOOP AT lt_balance INTO ls_balance.&lt;BR /&gt;&lt;BR /&gt; CLEAR : ls_payment, lv_bal_amnt.&lt;BR /&gt; READ TABLE lt_payment INTO ls_payment WITH KEY utr_number = ls_balance-utr_number&lt;BR /&gt; customer_code = ls_balance-customer_code&lt;BR /&gt; company_code = ls_balance-company_code.&lt;BR /&gt; IF sy-subrc EQ 0.&lt;BR /&gt;&lt;BR /&gt; lv_bal_amnt = ls_balance-amount.&lt;BR /&gt;REPLACE ALL OCCURRENCES OF '.' IN lv_bal_amnt WITH space.&lt;BR /&gt;REPLACE ALL OCCURRENCES OF ',' IN lv_bal_amnt WITH '.'.&lt;BR /&gt;CONDENSE lv_bal_amnt NO-GAPS.&lt;BR /&gt;&lt;BR /&gt; CLEAR : wa_bsid.&lt;BR /&gt; SELECT SINGLE * FROM bsid INTO wa_bsid WHERE bukrs = 'MIL' AND&lt;BR /&gt; belnr = ls_payment-clearing_doc AND&lt;BR /&gt; gjahr = ls_payment-fiscal_year AND&lt;BR /&gt; zuonr = ls_balance-ori_document AND&lt;BR /&gt; blart = 'KC' AND&lt;BR /&gt; dmbtr = lv_bal_amnt. " ls_balance-amount.&lt;/P&gt;
  &lt;P&gt;ENDLOOP.&lt;/P&gt;
  &lt;P&gt;Please suggest any faction module to resolve my issue.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Development Data: (&lt;/U&gt;Amount Filed - 500.000,00&lt;U&gt;)&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1903413-development-data.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Quality Data: (&lt;/U&gt;Amount Field - 12,205.64&lt;U&gt;)&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1903414-quality-data.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 12:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331094#M1991585</guid>
      <dc:creator>former_member305980</dc:creator>
      <dc:date>2021-03-23T12:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Different amount filed format in Development &amp; Quality server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331095#M1991586</link>
      <description>&lt;P&gt;That setting is present in your user profile in SU01D tcode&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1900264-capture.png" /&gt;&lt;/P&gt;&lt;P&gt;Also, I am not sure why you're doing those REPLACE ALL OCCURENCES string operations. If your LS_BALANCE-AMOUNT is of type DMBTR, then you can pass it as it is to the select query.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 13:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331095#M1991586</guid>
      <dc:creator>former_member736527</dc:creator>
      <dc:date>2021-03-23T13:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Different amount filed format in Development &amp; Quality server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331096#M1991587</link>
      <description>&lt;P&gt;Don't do those explicit conversion from currency amount to text and implicitly back conversion in the WHERE clause. The internal value of the field can be used in the where criteria, your conversion may result in wrong amount conversions related to number of decimal for the currency code.&lt;/P&gt;&lt;P&gt;If you actually require the cleared items/amounts related to a clearing document, look at some FMs such as GET_CLEARED_ITEMS 'Cleared items for a payment document'.&lt;/P&gt;&lt;P&gt;Or can you explain your exact requirement?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 15:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331096#M1991587</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2021-03-23T15:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Different amount filed format in Development &amp; Quality server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331097#M1991588</link>
      <description>&lt;P&gt;Please edit your question, select your code and press the "CODE" button to make it correctly colorized/indented, so that it's easier for us to analyze it. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 15:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331097#M1991588</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-23T15:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Different amount filed format in Development &amp; Quality server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331098#M1991589</link>
      <description>&lt;P&gt;Comma and dot are rendered almost the same in SAP Community, except if you use Code button. For people who wonder which one has decimal separator comma or dot, here is the question better formatted:&lt;/P&gt;&lt;P&gt;development server amount filed stores data like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;- 60.000,00&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where as same data was stored in Quality server like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;- 60,000.00&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Mar 2021 15:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331098#M1991589</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-23T15:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Different amount filed format in Development &amp; Quality server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331099#M1991590</link>
      <description>&lt;P&gt;Dear Taha Farosh,&lt;/P&gt;&lt;P&gt;Thanks for your information, issue was resolved.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-amount-filed-format-in-development-quality-server/m-p/12331099#M1991590</guid>
      <dc:creator>former_member305980</dc:creator>
      <dc:date>2021-03-25T16:23:26Z</dc:date>
    </item>
  </channel>
</rss>

