<?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: decimals changed!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344213#M1230784</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;In EKpo ,NETPR is of type Curr decimals 2.&lt;/P&gt;&lt;P&gt;So,it will store the value with only decimals in the screen field of Po&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2009 04:47:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-06T04:47:03Z</dc:date>
    <item>
      <title>decimals changed!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344211#M1230782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;          i am stuck in one doubt i have a piece of code which i execute for creating a po in sap where the quantity is 50 and price is 800 after gettin into sap its getting stored as &lt;/P&gt;&lt;P&gt;                           &lt;/P&gt;&lt;P&gt;                             &lt;/P&gt;&lt;P&gt;  price                       PerOP       U          Matl GrouP&lt;/P&gt;&lt;P&gt; 80,000.00              100            EA              007      3&lt;/P&gt;&lt;P&gt;                             &lt;/P&gt;&lt;P&gt;  where as in need to get it stored as 800.0000 with four digits after decimals can u guide wat changes i need to do....                           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT po_items.&lt;/P&gt;&lt;P&gt;    CLEAR: before_decimal, after_decimal, len_after_decimal, power.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  only check when price field is not empty&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IF NOT ( po_items-net_price IS INITIAL and po_items-item_cat = 'D').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE po_items-net_price TO price.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    split the netpr into before decimal and after decimal&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      SPLIT  price AT delimiter INTO before_decimal&lt;/P&gt;&lt;P&gt;                                             after_decimal.&lt;/P&gt;&lt;P&gt;      len_after_decimal = STRLEN( after_decimal ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    adjust netpr, peinh field only if netpr field has&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    more than decimal allowed found&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF len_after_decimal &amp;gt; decimal_allowed AND decimal_allowed &amp;gt; 0.&lt;/P&gt;&lt;P&gt;        power = len_after_decimal - decimal_allowed.&lt;/P&gt;&lt;P&gt;        po_items-price_unit = 10 ** power.&lt;/P&gt;&lt;P&gt;        po_items-net_price = po_items-net_price * po_items-price_unit.&lt;/P&gt;&lt;P&gt;        MODIFY po_items.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING po_items TO l_poitems.&lt;/P&gt;&lt;P&gt;    APPEND l_poitems.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 04:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344211#M1230782</guid>
      <dc:creator>former_member224405</dc:creator>
      <dc:date>2009-03-06T04:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: decimals changed!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344212#M1230783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the value of NETPR before passing to FM and check if NETPR accepts 4 decimals or not. I guess the value is getting multiplied by 100 and giving the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 04:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344212#M1230783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T04:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: decimals changed!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344213#M1230784</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;In EKpo ,NETPR is of type Curr decimals 2.&lt;/P&gt;&lt;P&gt;So,it will store the value with only decimals in the screen field of Po&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 04:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344213#M1230784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T04:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: decimals changed!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344214#M1230785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wat should i do to make it store as 4 digits after decimal any hard code ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 04:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344214#M1230785</guid>
      <dc:creator>former_member224405</dc:creator>
      <dc:date>2009-03-06T04:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: decimals changed!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344215#M1230786</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;Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;power = len_after_decimal - decimal_allowed.&lt;/P&gt;&lt;P&gt;po_items-price_unit = 10 ** power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is having problem. It multiplies your vaue with 10 power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 04:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344215#M1230786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T04:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: decimals changed!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344216#M1230787</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;If u want that field to store with 4 decimals in your program, then &lt;/P&gt;&lt;P&gt;take packed variable with decimals 4 and move netpr to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data w_p type p decimals 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_p = netpr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 08:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-changed/m-p/5344216#M1230787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T08:50:29Z</dc:date>
    </item>
  </channel>
</rss>

