Loading dimension from SAP BW system?

Post Reply
swati_phadtare
Posts: 14
Joined: Mon Mar 28, 2011 9:21 am
OLAP Product: TM1
Version: 9.5
Excel Version: 200

Loading dimension from SAP BW system?

Post by swati_phadtare »

Hi
I want to load "dealer"dimension from BW system to TM1. We have around 4 lacs elements in BW system in a "dealer" dimension (out of which I need only 50000 in TM1). I have created a TI process to load these elements from BW to TM1.
I should only get those dealers in TM1 which starts with "01". How can I put this condition in TI which loads data from BW system?
Kindly Suggest.
Thanks & Regards
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Loading dimension from SAP BW system?

Post by tomok »

Well.....you could put in a conditional test in the TI to skip the elements that start with '01' like:

Code: Select all

IF(SUBST(Dealer,1,2)@='01');
  ItemSkip;
ENDIF;
but why not just modify your SQL query to exclude those items from the data source? That would be infinitely more efficient than reading through each record in a TI process and selectively ignoring those you don't want.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
swati_phadtare
Posts: 14
Joined: Mon Mar 28, 2011 9:21 am
OLAP Product: TM1
Version: 9.5
Excel Version: 200

Re: Loading dimension from SAP BW system?

Post by swati_phadtare »

Thanks for your suggestion, but I am not able to put sql condition here as we have to map target dimension with source dimension when we pull data from BW system.
Other thing is when I try ItemReject in TI, process keeps on executing & server hangs.
Is there any other way to achieve this?
User avatar
qml
MVP
Posts: 1096
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Loading dimension from SAP BW system?

Post by qml »

First of all, I think the right code for you should be:

Code: Select all

IF(SUBST(Dealer,1,2) @<> '01');
  ItemSkip;
ENDIF;
Secondly, when you say "when I try ItemReject in TI, process keeps on executing & server hangs", what do you mean and how have you reached the conclusion that server hangs? I Think it's much more likely that the TI just keeps executing (without the server "hanging"), and, considering your rather large data source, it's nothing surprising it takes time.

The only way to "fix" this is to apply any conditions directly in the query on the Data Source tab to make your data source smaller, like that:

Code: Select all

(...)
WHERE code LIKE '01%'
Not sure why you don't want to use this approach.
Kamil Arendt
Post Reply