<?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: Regarding Decimal in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026504#M962294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Move the values to another varaiable of data type 'I' , it will display the whole numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ponraj.s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 08:55:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T08:55:59Z</dc:date>
    <item>
      <title>Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026502#M962292</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;        I need to remove decimal  places, wats the best way to do that, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: DMBTR = 3900.00, but i just want to display as 3,900&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Mon, 23 Jun 2008 08:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026502#M962292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026503#M962293</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;define a variable from type int and move your value inside it before you give it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026503#M962293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026504#M962294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Move the values to another varaiable of data type 'I' , it will display the whole numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ponraj.s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026504#M962294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026505#M962295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : v_DMBTR type DMBTR value '3900.00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write v_DMBTR decimals 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026505#M962295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026506#M962296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just move values in type ' I '..it will round your values.so output will be without decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026506#M962296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026507#M962297</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 can use below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : var1 type p decimasl 3 value '100.000'.&lt;/P&gt;&lt;P&gt;data : var2 type i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;var2 = var1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;write : var2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;O/P : 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;Snehi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026507#M962297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026508#M962298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: v_test type p decimals 2 value '3900.00'.&lt;/P&gt;&lt;P&gt;data: out type p .&lt;/P&gt;&lt;P&gt;out = v_test .&lt;/P&gt;&lt;P&gt;write:/ out decimals 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 09:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026508#M962298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026509#M962299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try to do the same , declared variable type int and tried to move the value, but wen i update the amount to internal table again it takes as 3900.00, &lt;/P&gt;&lt;P&gt;   I am trying to avoid decimals because IDR dosent support decimal, expected result is 3,900, &lt;/P&gt;&lt;P&gt;but what I am getting is 390,000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 09:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026509#M962299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T09:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026510#M962300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to print dmbtr without decimal then try dmbtr(C) , C will remove decimal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 09:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026510#M962300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T09:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026511#M962301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soyunee,&lt;/P&gt;&lt;P&gt;   Take the value into a character type field using write statement with currency or unit depanding on the type(i think for you it should be CURRENCY ) &lt;/P&gt;&lt;P&gt;     WRITE VALUE TO L_NETP CURRENCY WAERK.&lt;/P&gt;&lt;P&gt;here Value = 3900.00 and L_NETP is character field of same size as VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CURRENCY WAERK is the syntax try to put it as it is.&lt;/P&gt;&lt;P&gt;if any problem please let me know &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3,900 (For comma) depends on decimal format defind in T005X table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 09:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026511#M962301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T09:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026512#M962302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This problem is becouse of the veriable you are using for your internal table &lt;/P&gt;&lt;P&gt;it is happening like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value in the field of internal table is : 3900.25&lt;/P&gt;&lt;P&gt;now you take this to an integer value it will be  3900&lt;/P&gt;&lt;P&gt;But when you will update this value back to ur internal table it will be 3900.00 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just declear one more internal table with same structure just change that particular field to char or integer type  loop on the first table and copy the values to secand table.&lt;/P&gt;&lt;P&gt;delete the first table now you use your secand table in your program for further processing.&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;Regards&lt;/P&gt;&lt;P&gt;Bikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 09:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026512#M962302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T09:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026513#M962303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur, &lt;/P&gt;&lt;P&gt;               Here is the code for clear understading, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;ORIGINAL&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM tcurf  WHERE fcurr EQ tbl_i_vbkpf-waers&lt;/P&gt;&lt;P&gt;                                                     AND tcurr = tbl_i_vbkpf-hwaer.&lt;/P&gt;&lt;P&gt;            IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;              l_kursf =  tbl_i_vbkpf-kursf * ( tcurf-tfact ) / ( tcurf-ffact ).&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;            IF tbl_i_vbkpf-waers NE 'IDR'.&lt;/P&gt;&lt;P&gt;                tbl_i_vbsegs-dmbtr = tbl_i_vbsegs-wrbtr * g_tbl_i_vbkpf-kursf * 10.&lt;/P&gt;&lt;P&gt;             ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Local curreny is always IDR.&lt;/P&gt;&lt;P&gt; with the above coding I am facing issues when the document currency is JPY, the result is multiple of 10 for the original amount coz its multiplied by 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODIFIED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    tbl_i_vbsegs-dmbtr = tbl_i_vbsegs-wrbtr * l_kursf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this JPY to IDR is fine but the result USD to IDR  is multiple of 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 09:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026513#M962303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T09:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026514#M962304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: LV_DEC TYPE P DECIMALS 2,&lt;/P&gt;&lt;P&gt;      LV_CHAR TYPE CHAR20,&lt;/P&gt;&lt;P&gt;      LV_NUM TYPE CHAR20,&lt;/P&gt;&lt;P&gt;      LV_DEC1 TYPE CHAR20.&lt;/P&gt;&lt;P&gt;LV_DEC = '3902.00'.&lt;/P&gt;&lt;P&gt;LV_CHAR = LV_DEC.&lt;/P&gt;&lt;P&gt;SPLIT LV_CHAR AT '.' INTO LV_NUM LV_DEC1.&lt;/P&gt;&lt;P&gt;WRITE: LV_NUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 10:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026514#M962304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T10:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026515#M962305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi soyunee,&lt;/P&gt;&lt;P&gt;   you are facing this problem probably because you are multiplying value with character value try to do all manupalation ,multiplication,operation with the original type not with the character type you have taken.&lt;/P&gt;&lt;P&gt;   and at last convert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       WRITE tbl_i_vbsegs-dmbtr TO L_VALUE CURRENCY tbl_i_vbkpf-waers &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stil face problem tell me exact place you are using write statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 10:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-decimal/m-p/4026515#M962305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T10:27:29Z</dc:date>
    </item>
  </channel>
</rss>

