<?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: BDC problem with decimal (Amount field) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823635#M1470523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the data source?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do have Japanese Yen in the input, they probably won't have decimals. You did not tell us what kind of problem you have.&lt;/P&gt;&lt;P&gt;As said, you will always get correct format with WRITE TO and option CURRENCY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anurag probably intended to suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE tab-wrbtr  TO l_curr CURRENCY l_ too1-WAERS. "WAERS is currency unit, Not WERKS, thats plant&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Mar 2010 14:11:35 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2010-03-28T14:11:35Z</dc:date>
    <item>
      <title>BDC problem with decimal (Amount field)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823629#M1470517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with decimal when recording BDC for TCode VK11 as following (Unit of measure EA):&lt;/P&gt;&lt;P&gt;1. I recorded the BDC with Unit = 'USD' (&lt;STRONG&gt;has 2 decimals&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;2. It worked fine with Unit USD or like USD (means have 2 decimals)&lt;/P&gt;&lt;P&gt;3. But it had problem with Unit which does not allow decimal (like JPY - Japan...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have a function module with input is Unit and output is the format of the Amount field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khanh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Mar 2010 09:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823629#M1470517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-28T09:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem with decimal (Amount field)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823630#M1470518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is very common problem faced in BDC programming.&lt;/P&gt;&lt;P&gt;What you should do is:&lt;/P&gt;&lt;P&gt;1Create a variable l_curr  type char15.&lt;/P&gt;&lt;P&gt;2. Select the currency type. I assume it'sa company code currency in your case, so select the currency type from t001 based on company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 Write for eg l_tab-wrbtr ( your currency field in BDC ) to l_curr CURRENCY l_ too1-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will automatically place correct currency decimals in l_curr and then pass this field in BDC currency field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Mar 2010 09:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823630#M1470518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-28T09:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem with decimal (Amount field)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823631#M1470519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anurag_n,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution sounds good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give me more detail or some sample code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khanh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Mar 2010 09:57:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823631#M1470519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-28T09:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem with decimal (Amount field)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823632#M1470520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's kind of pseudo code only :)... Try it and ask me if face any problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Mar 2010 10:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823632#M1470520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-28T10:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem with decimal (Amount field)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823633#M1470521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anurag_n,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with a z program as following.&lt;/P&gt;&lt;P&gt;But the output is still 152 in this case because as my undestanding, the output is 152.00&lt;/P&gt;&lt;P&gt;Please advise:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT Z_TEST.
DATA: l_curr type char15.
DATA: l_betr(132) type c.

l_betr = '152'.
Write l_betr to l_curr CURRENCY 'USD'.

WRITE l_curr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khanh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Mar 2010 10:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823633#M1470521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-28T10:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem with decimal (Amount field)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823634#M1470522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess here is l_betr you have defined as character field. Move currency field to l_curr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Mar 2010 10:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823634#M1470522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-28T10:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem with decimal (Amount field)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823635#M1470523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the data source?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do have Japanese Yen in the input, they probably won't have decimals. You did not tell us what kind of problem you have.&lt;/P&gt;&lt;P&gt;As said, you will always get correct format with WRITE TO and option CURRENCY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anurag probably intended to suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE tab-wrbtr  TO l_curr CURRENCY l_ too1-WAERS. "WAERS is currency unit, Not WERKS, thats plant&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Mar 2010 14:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823635#M1470523</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-03-28T14:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem with decimal (Amount field)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823636#M1470524</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 two are correct.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: l_curr type char15.
DATA: lv_rate TYPE waers VALUE 'JPY'.
DATA: lv_kbetr TYPE konp-kbetr VALUE '152.12'.

Write lv_kbetr to l_curr CURRENCY lv_rate.

WRITE l_curr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;The output is now 15,212&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not my problem, I need to clarify it once again.&lt;/P&gt;&lt;P&gt;In VK11, I can create more than 2 price conditions at once time.&lt;/P&gt;&lt;P&gt;I recorded a BDC with 2 price conditions at a time&lt;/P&gt;&lt;P&gt;     --&amp;gt; the first one used USD with 2 decimals&lt;/P&gt;&lt;P&gt;     --&amp;gt; the second one used JPY with 0 decimals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT when I call the BDC to save price conditions which has 0 decimals, it always through error 'Decimal places are not permitted'.&lt;/P&gt;&lt;P&gt;Could you please help me how to resolve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khanh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 01:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823636#M1470524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T01:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem with decimal (Amount field)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823637#M1470525</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;&lt;/P&gt;&lt;P&gt;I resolved my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason: When recording BDC, I moved the cursor to Amount field first, key in then I moved the cursor to Unit field --&amp;gt; The amount field automatically added decimals into the amount field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the position of these two fields in BDC can resolve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khanh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 04:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem-with-decimal-amount-field/m-p/6823637#M1470525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T04:18:19Z</dc:date>
    </item>
  </channel>
</rss>

