Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help with Logic....

Former Member
0 Kudos

Hi:

My ABAP knowledge is pretty much NIL and so looking for some help. Sorry to bother you all...

In BI, I need to write a code in Update Rules, that checks for values in a Lookup table and does the Key figure

calculation. For every record, KF "AMT1" in "Cube 2" needs to be determined using the Comp_Code, Cust#,

and KF "AMT" available in Cube1.

There is a lookup table "DISCNT" with Co. Code, Cust#, Discount % fields. In Update Rule, it need to go thru' the

Lookup Table to see if there is a corresponding record with "Co. Code", "Cust#"

IF the recod exists, then use the corrsponding Discount % value from Lookup table and determine AMT1

[which is AMT * Discount %]

ELSE

Make "AMT1" = 0 (i.e. if the Customer does not exist in Lookup table, then Discount Amount is ZERO)

ENDIF.

I am not familiar with how to loop thru the Lookup table to deteremine if customer exists there. (Lookup table

will be maintained via a utility by users).

Can anyone provide the sytax and the logic for looping... please,

Thanks.....Shaun

1 REPLY 1

ThomasZloch
Active Contributor
0 Kudos

Sorry, these forum are not meant as training ground for Non-ABAPers. Please consult (online) documentation or an ABAP resource near you.

Also use meaningful subject lines when posting again.

Thread locked.

Thomas