<?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: Computation dilemma in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/computation-dilemma/m-p/1137556#M113584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES: ZTF0158.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE EWT EWT2&lt;/P&gt;&lt;P&gt; INTO ( v_tm_interco_ewt  , i_ewt2 )&lt;/P&gt;&lt;P&gt; FROM ZTF0158&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_am1 = ( t_upload_ii-amount * lv_glob ) * v_tm_interco_ewt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_ovat = ( t_upload_ii-amount - lv_ob ) * v_tm_interco_ewt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2006 06:15:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-14T06:15:48Z</dc:date>
    <item>
      <title>Computation dilemma</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/computation-dilemma/m-p/1137555#M113583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently modifying a report where in I must replace all hardcoded computations with the values from a certain table. the fields which I will be getting values from is EWT and EWT2 from the ZTF0158 table. The value of EWT and EWT2 is 1.1 and 11 respectively but it can be changed anytime by the user. So in the program, instead of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_am1 = ( t_upload_ii-amount * lv_glob ) * 1.1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would do instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_am1 = ( t_upload_ii-amount * lv_glob ) * v_tm_interco_ewt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***v_tm_interco_ewt gets its value from the ZTF0158 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is this, how can I change hard coded computations like the value .1 since the value in EWT is 1.1.So instead of .1 I would put in the variable v_tm_interco_ewt but it has a value of 1.1. I have posted below the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_ovat = ( t_upload_ii-amount - lv_ob ) * '.1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help would greatly be appreciated.Thanks guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 06:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/computation-dilemma/m-p/1137555#M113583</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-02-14T06:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Computation dilemma</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/computation-dilemma/m-p/1137556#M113584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES: ZTF0158.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE EWT EWT2&lt;/P&gt;&lt;P&gt; INTO ( v_tm_interco_ewt  , i_ewt2 )&lt;/P&gt;&lt;P&gt; FROM ZTF0158&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_am1 = ( t_upload_ii-amount * lv_glob ) * v_tm_interco_ewt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_ovat = ( t_upload_ii-amount - lv_ob ) * v_tm_interco_ewt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 06:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/computation-dilemma/m-p/1137556#M113584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-14T06:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Computation dilemma</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/computation-dilemma/m-p/1137557#M113585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi viraylab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to declare another variable with decimal 1 for&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v_tm_interco_ewt(3) type c value '1.1'.&lt;/P&gt;&lt;P&gt;data v_tm_interco_ewt2 type p decimals 1.&lt;/P&gt;&lt;P&gt;v_tm_interco_ewt2 = v_tm_interco_ewt / 10.&lt;/P&gt;&lt;P&gt;write: v_tm_interco_ewt2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;lv_ovat = ( t_upload_ii-amount - lv_ob ) * v_tm_interco_ewt2.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 06:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/computation-dilemma/m-p/1137557#M113585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-14T06:17:53Z</dc:date>
    </item>
  </channel>
</rss>

