<?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: Need Help with Logic.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-logic/m-p/6991258#M1494044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, these forum are not meant as training ground for Non-ABAPers. Please consult (online) documentation or an ABAP resource near you.&lt;/P&gt;&lt;P&gt;Also use meaningful subject lines when posting again.&lt;/P&gt;&lt;P&gt;Thread locked.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jun 2010 21:09:42 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2010-06-08T21:09:42Z</dc:date>
    <item>
      <title>Need Help with Logic....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-logic/m-p/6991257#M1494043</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;My ABAP knowledge is pretty much NIL and so looking for some help.  Sorry to bother you all...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In BI, I need to write a code in Update Rules, that checks for values in a Lookup table and does the Key figure&lt;/P&gt;&lt;P&gt;calculation.  For every record, KF "AMT1" in "Cube 2" needs to be determined using the Comp_Code,  Cust#,&lt;/P&gt;&lt;P&gt;and KF "AMT" available in Cube1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a lookup table "DISCNT" with Co. Code, Cust#, Discount % fields.  In Update Rule, it need to go thru' the &lt;/P&gt;&lt;P&gt;Lookup Table to see if there is a corresponding record with "Co. Code", "Cust#"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF the recod exists, then use the corrsponding Discount % value from Lookup table and determine AMT1 &lt;/P&gt;&lt;P&gt;    [which is   AMT * Discount %]&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;    Make "AMT1" = 0 (i.e. if the Customer does not exist in Lookup table, then Discount Amount is ZERO)&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with how to loop thru the Lookup table to deteremine if customer exists there.  (Lookup table &lt;/P&gt;&lt;P&gt;will be maintained via a utility by users).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide the sytax and the logic for looping... please,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.....Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 20:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-logic/m-p/6991257#M1494043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-08T20:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Logic....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-logic/m-p/6991258#M1494044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, these forum are not meant as training ground for Non-ABAPers. Please consult (online) documentation or an ABAP resource near you.&lt;/P&gt;&lt;P&gt;Also use meaningful subject lines when posting again.&lt;/P&gt;&lt;P&gt;Thread locked.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 21:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-logic/m-p/6991258#M1494044</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-06-08T21:09:42Z</dc:date>
    </item>
  </channel>
</rss>

