on 12-02-2009 8:21 AM
Hi,
We have 'n' databases. All the databases have identical tables and views but some tables in few database have custom columns.
Ex. 'database1' has table 'sites' with the following columns
1. sitenumber
2. sitename
3. siteaddress
4. phone
5. email
'database2' has table 'sites' with the following columns
1. sitenumber
2. sitename
3. siteaddress
4. phone
5. email
6. IsDepot
The condition says that
"If IsDepot field is present in the site table then list sites where IsDepot equals 0 or null otherwise list all sites"
How do i create a condition at the universe level which checks whether the object 'IsDepot" is present in the database or not.
A single universe needs to be created for this purpose
Hi
This is the perfect use case for Data Federator which manages connections to multiple sources and let you define you own schema and the mappings (called mapping rules) between the sources and this schema.
In the mapping rules, you can implement your own business logic including case statements.
If the isDepot field is not available in the source, DF will generate a null.
You can find more details about Data Federator on our [Blog|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/u/251908199] [original link is broken] [original link is broken];.
Hope this helps,
Fred
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
We have implemented a solution for the IsDepot problem as mentioned above.
It is not done at the BO Universe level but at the SQL Server database level.
Steps Followed:
1. Created a stored procedure which checks the 'syscolumns' table for available fields
2. The SP creates a temp table with a value list based on previously mentioned conditions
3. This temp table can be used in the universe or a condition can be used to filter data based on this temp table.
Thanks,
Arun
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.