Getting Started Newsletters Store Products Services & Support About SCN Downloads Industries Training & Education Partnership Developer Center Lines of Business University Alliances Events & Webinars Innovation Login Register Welcome, Guest Search the Community Activity Communications Actions Brow se 1 Tweet 1 created by prasun saha on Feb 20, 2013 5:45 AM, last modified by prasun saha on Feb 20, 2013 6:16 AM Applies to: This article talks about Lookup concept in SAP BW. For more information, visit the Business Intelligence homepage. Author: Prasun Saha Company: Accenture Created on: 21st February 2013 Author Bio Prasun Saha is working for Accenture as an SAP BI Consultant and specializes in SAP BI, Informatica. Contents: Lookup definition in SAP BW Technique to use lookup concept in BW Look Up Using Start Routine and Field Level routine 1. 3.1 STEPS TO FOLLOW Lookup through END routine: 4.1 STEPS TO FOLLOW Lookup defination SAP BW: Concept of Lookup is same in SAP BW as other Data warehousing tools . For performing lookup a key column with the source BW table and lookup table must match. Lookup table can be any SAP BW infoproviders (like, DSO , MD table,Fact table etc.) If the key columns in source or result package are matched with the lookup table key column then those corresponding rows will only be passed to output Target. Others can be taken in reject. We need to pass a key column from source table and we will get the required data once the key column matches Technique to use lookup concept in BW: Lookup normally we can do in Start routine, Field level Routine and in End routine. In this document we will explain lookup through Start and Field routine Lookup through END routine A scenario where we can use Lookup in BW: Let us say we have 5 characteristics in DSO and we created Info Cube on this DSO. Now user wants one more characteristic extra in InfoCube for Data Analysis. Suppose we have those required Characteristic in BI, but we don't have it in source (here it is DSO). In this above case by using lookup we can populate the values for the extra characteristic values in InfoCube while loading data from DSO if we have a common key present between DSO and Infocube. Look Up Using Start Routine and Field Level routine: In the below example we have a source DSO and we are sending data to a Target Open Hub. We have to calculate a Key figure “TO be delivered Quantity” which is not coming from our Source DSO. We will get this field from another DSO “ZM......7 “and it will be our Lookup Table KEYS BETWEEN SOURCE AND LOOKUP TABEL: The matching keys between our Source DSO and Lookup table are Purchase Document Number ( EBELN) Item Number of Purchase document (EBELP) FIELD TO BE RETURNED FROM LOOKUP TABLE: It is ‘TO BE DELIVERRED QUANTITY’ ‘TO BE DELIVERRED QUANTITY’ is a calculated field which is found by doing a minus operation between Quantity and Received quantity of look up DSO ZM….7 TO BE DELIVERRED QUANTITY’==(Sum of ) Quantity on Purchase document and Item number - ( Sum of ) Received quantity on Purchase document and Item number Lookup in SAP BW Share Like 2 Version 1