<?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 problem with dynamic calculations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-calculations/m-p/1603014#M270740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; i got formula from PLMK-Formule1 table like 
C00010 * C00020 like that.

my ITAB contain values like 0010 --- 1.2
                            0020 --- 1.3
                            0030 --- space
so my reqirement is i want to read 0010 value from ITAB using formule C00010 like that 
and finally that calculated result populated in ITAB.
ie 0030 --- 1.56&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2006 15:12:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-05T15:12:21Z</dc:date>
    <item>
      <title>problem with dynamic calculations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-calculations/m-p/1603014#M270740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; i got formula from PLMK-Formule1 table like 
C00010 * C00020 like that.

my ITAB contain values like 0010 --- 1.2
                            0020 --- 1.3
                            0030 --- space
so my reqirement is i want to read 0010 value from ITAB using formule C00010 like that 
and finally that calculated result populated in ITAB.
ie 0030 --- 1.56&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 15:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-calculations/m-p/1603014#M270740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T15:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem with dynamic calculations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-calculations/m-p/1603015#M270741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per your definition the records in ITAB has values&lt;/P&gt;&lt;P&gt;0010, 0020 etc...in that case follow the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lformula -&amp;gt; C00010 * C00020.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense lformula no-gap.&lt;/P&gt;&lt;P&gt;translate lformula with '*$+$-$/$'.&lt;/P&gt;&lt;P&gt;split lformula at '$' into lval1 lval2.&lt;/P&gt;&lt;P&gt;if lop CA '*/'.&lt;/P&gt;&lt;P&gt;lfval = 1.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;lfval = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;do 2 times.&lt;/P&gt;&lt;P&gt;if sy-index = 1.&lt;/P&gt;&lt;P&gt;lfield = lval1+2(4).&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;lfield = lval2+2(4).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;read table itab with key val = (lfield).&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  case lop.  "Operator +, - , * and /.&lt;/P&gt;&lt;P&gt;    when '*'.&lt;/P&gt;&lt;P&gt;      lfval = itab-value * lfval.&lt;/P&gt;&lt;P&gt;    when '/'.&lt;/P&gt;&lt;P&gt;      lfval = itab-value / lfval.&lt;/P&gt;&lt;P&gt;    when '+'.&lt;/P&gt;&lt;P&gt;      lfval = itab-value + lfval.&lt;/P&gt;&lt;P&gt;    when '-'.&lt;/P&gt;&lt;P&gt;      lfval = itab-value - lfval.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;move '0030' to itab-val.&lt;/P&gt;&lt;P&gt;move lfval to itab-value.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 15:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-calculations/m-p/1603015#M270741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T15:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem with dynamic calculations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-calculations/m-p/1603016#M270742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain me what are the name fields for your ITAB that contain your data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;  David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2006 15:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-calculations/m-p/1603016#M270742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-05T15:34:51Z</dc:date>
    </item>
  </channel>
</rss>

