<?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: simple currency data type  calculation doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503608#M1422192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello nag,&lt;/P&gt;&lt;P&gt;thnkas for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same code i have executed in se38 so its value is coming 121.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but actually i am writting this code in VOFM routine.......in Formulas...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where this code is making calculations as net_price = 5.00 * 2.00 = 1000.00...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can u suggest any other thing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jan 2010 06:26:31 GMT</pubDate>
    <dc:creator>former_member227140</dc:creator>
    <dc:date>2010-01-06T06:26:31Z</dc:date>
    <item>
      <title>simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503600#M1422184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;net_price2 = '12.10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : NET_PRICE2 TYPE  CHAR20,&lt;/P&gt;&lt;P&gt;       NET_PRICE TYPE KBETR,&lt;/P&gt;&lt;P&gt;       NET_PRICE1 TYPE CHAR20,&lt;/P&gt;&lt;P&gt;       C TYPE CHAR20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C = 1.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB2.&lt;/P&gt;&lt;P&gt;NET_PRICE = ITAB2-KBETR * C.&lt;/P&gt;&lt;P&gt;C = NET_PRICE.&lt;/P&gt;&lt;P&gt;SHIFT C LEFT DELETING LEADING SPACE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NET_PRICE1 = C * NET_PRICE2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this code i have two values for ITAB2-KBETR .those are 5.00 and 2.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for first record in loop i am getting value of net_price as (5.00* 1 = 5.00)&lt;/P&gt;&lt;P&gt;but for secodn record what the problem i am facing in i am getting net_price as (5.00*2.00 = 1000.00)......though i want it to&lt;/P&gt;&lt;P&gt;come like 10.&lt;/P&gt;&lt;P&gt;so that net_price1 should come like 12.10 * 10 = 121.....&lt;/P&gt;&lt;P&gt;what i shd do..this type of code now working..please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 04:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503600#M1422184</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2010-01-06T04:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503601#M1422185</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 this&lt;/P&gt;&lt;P&gt;DATA : lv_kbetr(20).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB2.&lt;/P&gt;&lt;P&gt;lv_kbetr =  ITAB2-KBETR &lt;/P&gt;&lt;P&gt;CONDENse lv_kbetr  NO gaps.&lt;/P&gt;&lt;P&gt;NET_PRICE = lv_kbetr  * C.&lt;/P&gt;&lt;P&gt;C = NET_PRICE.&lt;/P&gt;&lt;P&gt;SHIFT C LEFT DELETING LEADING SPACE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 04:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503601#M1422185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T04:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503602#M1422186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello rasheed,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;thnks for the reply first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still i am facing same probelm.after  going through second record of itab2..it still shows the value of &lt;/P&gt;&lt;P&gt;net_price as 1000.00 (actually what it is doing is net_price = 5.00 * 2.00 = 1000.00)......&lt;/P&gt;&lt;P&gt;any other idea.??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 05:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503602#M1422186</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2010-01-06T05:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503603#M1422187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;copy the result into a character type before displaying. or take both variables in char variables and then multiply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumit Nene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 05:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503603#M1422187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T05:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503604#M1422188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sumit...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even i tried in that way also...i am not getting desired results...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 05:22:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503604#M1422188</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2010-01-06T05:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503605#M1422189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Use follwoing code..&lt;/P&gt;&lt;P&gt;Declare all varibel as type of KBETR (no need of char)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : NET_PRICE2 TYPE kbetr value '12.10',
NET_PRICE TYPE KBETR,
NET_PRICE1 TYPE KBETR,
C TYPE KBETR.

C = 1.
LOOP AT ITAB2.
NET_PRICE = ITAB2-KBETR * C.
C = NET_PRICE.
*SHIFT C LEFT DELETING LEADING SPACE. " del
ENDLOOP.
NET_PRICE1 = C * NET_PRICE2.
WRITE:/ NET_PRICE1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your issue,&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 05:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503605#M1422189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T05:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503606#M1422190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello nag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even i tried this ..but the problem is  during second record....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;net_price = 5.00 * 2.00 = 1000.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its doing.......so there lies the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 05:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503606#M1422190</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2010-01-06T05:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503607#M1422191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the type of ITAB2-KBTER (is it also type kbter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried folloing code -- result is 121&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZTEST_133294.
DATA : NET_PRICE2 TYPE kbetr value '12.10',
NET_PRICE TYPE KBETR,
NET_PRICE1 TYPE KBETR,
C TYPE KBETR.
DATA: BEGIN OF ITAB2 OCCURS 0,
         KBETR TYPE KBETR,
      END OF ITAB2.
      ITAB2-KBETR = '5.00'.
      APPEND ITAB2.
      ITAB2-KBETR = '2.00'.
      APPEND ITAB2.
C = 1.
LOOP AT ITAB2.
NET_PRICE = ITAB2-KBETR * C.
C = NET_PRICE.
*SHIFT C LEFT DELETING LEADING SPACE.
ENDLOOP.
NET_PRICE1 = C * NET_PRICE2.
WRITE:/ NET_PRICE1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Naga Mohan Kummara on Jan 6, 2010 6:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 05:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503607#M1422191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T05:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503608#M1422192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello nag,&lt;/P&gt;&lt;P&gt;thnkas for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same code i have executed in se38 so its value is coming 121.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but actually i am writting this code in VOFM routine.......in Formulas...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where this code is making calculations as net_price = 5.00 * 2.00 = 1000.00...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can u suggest any other thing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 06:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503608#M1422192</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2010-01-06T06:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503609#M1422193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a temp varible type (kbetr / F) and move ITAB2-KBETR before calculation and carry out calculations... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 06:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503609#M1422193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T06:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503610#M1422194</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 this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       kbetr type kbetr,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : NET_PRICE2 TYPE CHAR20,&lt;/P&gt;&lt;P&gt;NET_PRICE TYPE KBETR,&lt;/P&gt;&lt;P&gt;NET_PRICE1 TYPE CHAR20,&lt;/P&gt;&lt;P&gt;C TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kbetr = 5.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kbetr = 2.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C = 1.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;NET_PRICE = ITAB-KBETR * C.&lt;/P&gt;&lt;P&gt;C = NET_PRICE.&lt;/P&gt;&lt;P&gt;*SHIFT C LEFT DELETING LEADING SPACE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NET_PRICE1 = C * NET_PRICE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 06:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503610#M1422194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T06:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503611#M1422195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose this problem may be due to "Fixed Point Arithmetic" property.&lt;/P&gt;&lt;P&gt;It is set in the program, hence it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to check whether we can set this in VOFM formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raveesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: raveesh saurabh on Jan 6, 2010 9:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 08:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503611#M1422195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T08:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503612#M1422196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess Rajashekhar's trick should work.&lt;/P&gt;&lt;P&gt;He has declared C as an INTEGER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only thing is ITAB-KBETR should not have any decimal points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the example given by you, it should work.&lt;/P&gt;&lt;P&gt;I don't have the system currently hence can not check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know whether it worked or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I think it is because of "Fixed Point Arithmetic" attribute.&lt;/P&gt;&lt;P&gt;It is not set in your main program. And you VOFM formula has been included as an INCLUDE, and hence this include takes this attribute from the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raveesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 08:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503612#M1422196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T08:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503613#M1422197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have done like this........its working.....but do let me know your commnets ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK PREISFINDUNGSART EQ 'B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF T_KONP ,&lt;/P&gt;&lt;P&gt;        KBETR TYPE KONP-KBETR,&lt;/P&gt;&lt;P&gt;        MATNR TYPE A073-MATNR,&lt;/P&gt;&lt;P&gt;        KNUMH TYPE A073-KNUMH,&lt;/P&gt;&lt;P&gt;        END OF T_KONP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF T_A004,&lt;/P&gt;&lt;P&gt;        KNUMH TYPE A004-KNUMH,&lt;/P&gt;&lt;P&gt;        KBETR TYPE KONP-KBETR,&lt;/P&gt;&lt;P&gt;        KSCHL TYPE A004-KSCHL,&lt;/P&gt;&lt;P&gt;        END OF T_A004.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  ITAB TYPE STANDARD TABLE OF T_KONP WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        ITAB1 TYPE STANDARD TABLE OF T_A004 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        ITAB2 TYPE STANDARD TABLE OF T_A004 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : NET_PRICE2 TYPE kbetr value '12.10',&lt;/P&gt;&lt;P&gt;NET_PRICE TYPE P DECIMALS 6,&lt;/P&gt;&lt;P&gt;NET_PRICE1 TYPE KWERT,&lt;/P&gt;&lt;P&gt;C TYPE  P DECIMALS 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NET_PRICE2 = '12.10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT KNUMH INTO CORRESPONDING FIELDS OF TABLE ITAB1 FROM A004 WHERE&lt;/P&gt;&lt;P&gt;       MATNR = KOMP-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = '0'.&lt;/P&gt;&lt;P&gt;  SELECT KBETR KSCHL KNUMH INTO CORRESPONDING FIELDS OF TABLE ITAB2 FROM KONP FOR ALL&lt;/P&gt;&lt;P&gt;    ENTRIES IN ITAB1 WHERE KNUMH = ITAB1-KNUMH.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C = 1.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB2.&lt;/P&gt;&lt;P&gt;NET_PRICE = ITAB2-KBETR * C.&lt;/P&gt;&lt;P&gt;C = NET_PRICE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NET_PRICE1 = ( C * NET_PRICE2 ) / 10000 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XKWERT = NET_PRICE1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 12:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503613#M1422197</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2010-01-06T12:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503614#M1422198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by the code i posted.....like i have done......(previous post was total code)..but solved the problem by,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : NET_PRICE2 TYPE kbetr value '12.10',&lt;/P&gt;&lt;P&gt;NET_PRICE TYPE P DECIMALS 6,&lt;/P&gt;&lt;P&gt;NET_PRICE1 TYPE KWERT,&lt;/P&gt;&lt;P&gt;C TYPE  P DECIMALS 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C = 1.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB2.&lt;/P&gt;&lt;P&gt;NET_PRICE = ITAB2-KBETR * C.&lt;/P&gt;&lt;P&gt;C = NET_PRICE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NET_PRICE1 = ( C * NET_PRICE2 ) / 10000 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XKWERT = NET_PRICE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know u r comments&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 12:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503614#M1422198</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2010-01-06T12:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: simple currency data type  calculation doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503615#M1422199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 05:47:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-currency-data-type-calculation-doubt/m-p/6503615#M1422199</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2010-01-08T05:47:05Z</dc:date>
    </item>
  </channel>
</rss>

