<?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: database query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-query/m-p/1684525#M301494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you are asking for, simply coded, is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if f6= "dnlab".&lt;/P&gt;&lt;P&gt;  totalcost = (f2 * ((1 + f4) * f5)) + (f3 * ((1 + f4) * f5)).&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  totalcost = (f2 * f5) + (f3 * f5). &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course this would be done in a loop. Does this help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy Zugay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Nov 2006 21:25:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-06T21:25:31Z</dc:date>
    <item>
      <title>database query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-query/m-p/1684524#M301493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have an internal table...itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1***&lt;STRONG&gt;f2&lt;/STRONG&gt;*****&lt;STRONG&gt;f3&lt;/STRONG&gt;*****&lt;STRONG&gt;f4&lt;/STRONG&gt;***&lt;STRONG&gt;f5&lt;/STRONG&gt;********&lt;STRONG&gt;f6&lt;/STRONG&gt;***totalcost&lt;/P&gt;&lt;P&gt;1 ***&lt;STRONG&gt;218.02&lt;/STRONG&gt;*&lt;STRONG&gt;312.03&lt;/STRONG&gt;*&lt;STRONG&gt;0.00&lt;/STRONG&gt;*&lt;STRONG&gt;110.00&lt;/STRONG&gt;*****&lt;STRONG&gt;R&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;2**** 109.01**&lt;STRONG&gt;416.04&lt;/STRONG&gt;*&lt;STRONG&gt;0.00&lt;/STRONG&gt;*&lt;STRONG&gt;110.00&lt;/STRONG&gt;*****&lt;STRONG&gt;R&lt;/STRONG&gt;***	&lt;/P&gt;&lt;P&gt;3**** 109.01**&lt;STRONG&gt;416.04&lt;/STRONG&gt;*&lt;STRONG&gt;0.00&lt;/STRONG&gt;*&lt;STRONG&gt;110.00&lt;/STRONG&gt;*****&lt;STRONG&gt;u&lt;/STRONG&gt;***	&lt;/P&gt;&lt;P&gt;4**** 19.01***&lt;STRONG&gt;46.04&lt;/STRONG&gt;*&lt;STRONG&gt;0.00&lt;/STRONG&gt;**&lt;STRONG&gt;110.00&lt;/STRONG&gt;*****&lt;STRONG&gt;R&lt;/STRONG&gt;***	&lt;/P&gt;&lt;P&gt;5**** 19.01***&lt;STRONG&gt;46.04&lt;/STRONG&gt;*&lt;STRONG&gt;0.00&lt;/STRONG&gt;**&lt;STRONG&gt;110.00&lt;/STRONG&gt;******DNLAB	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to find out totalcost = ( f2 &lt;STRONG&gt;(1 + f4 )&lt;/STRONG&gt;f5 + f3 &lt;STRONG&gt;(1+f4)&lt;/STRONG&gt;f5 &lt;/P&gt;&lt;P&gt;but here condition is we should use the f4 value where f6= dnlab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me to find out this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 16:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-query/m-p/1684524#M301493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T16:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: database query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-query/m-p/1684525#M301494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you are asking for, simply coded, is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if f6= "dnlab".&lt;/P&gt;&lt;P&gt;  totalcost = (f2 * ((1 + f4) * f5)) + (f3 * ((1 + f4) * f5)).&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  totalcost = (f2 * f5) + (f3 * f5). &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course this would be done in a loop. Does this help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy Zugay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 21:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-query/m-p/1684525#M301494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T21:25:31Z</dc:date>
    </item>
  </channel>
</rss>

