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
Loading dimension from SAP BW system?
-
- Posts: 14
- Joined: Mon Mar 28, 2011 9:21 am
- OLAP Product: TM1
- Version: 9.5
- Excel Version: 200
-
- 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?
Well.....you could put in a conditional test in the TI to skip the elements that start with '01' like:
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.
Code: Select all
IF(SUBST(Dealer,1,2)@='01');
ItemSkip;
ENDIF;
-
- 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?
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?
Other thing is when I try ItemReject in TI, process keeps on executing & server hangs.
Is there any other way to achieve this?
- 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?
First of all, I think the right code for you should be:
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:
Not sure why you don't want to use this approach.
Code: Select all
IF(SUBST(Dealer,1,2) @<> '01');
ItemSkip;
ENDIF;
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%'
Kamil Arendt