cancel
Showing results for 
Search instead for 
Did you mean: 

Hierarchy from SQL table

Former Member
0 Kudos

Hello Friends,

I have a requirement for creating Customer Hierarchy from SQL table. Does anyone come across this situation. Does anyone know the procedure. We use dbconnect to extract data from SQL table. Customer attribute and text I extracted by creating views. Just wondering if anyone has done it form SQL tables.

thanks

jose

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Jose,

please check the nativ SQL Documentation of your source Database. Useually nativ SQL supports hierarcical SQL and its quite powerfull !

1. Step: Build and test a hierarchical native SQL

querry with the vendors querry tool

up to the exact needs

of your DataSource.

With Oracle its SQL*PLUS.

Make some thoughts about the extraction mode:

Delta / Full.

2. Step: Make a View out of it. Have in minde that

SAP BW accepts only 9 characters for column

names.

SAP Acceses views and tables in the same way.

With Oracle its: Create ore replace view xxx as

select .... ;

3. Step: Connect the database as a database source system

via SAP BW DB Connect. You might need some

help or setup support form the adminis.

For an Oracle database an adaption of SAP BWs

tnsamens.ora might be necessary.

4. Step: Select the view in the DB sourcesystem

and so on...

If Your sourcesystem is an Oracle database please

check the Oracle SQL Documentation at:

http://tahiti.oracle.com/

Oracle9i documentation, Release 2 (9.2)

list of books

SQL Reference -> Contents

Chapter 8 SQL Queries and Subqueries

Hierarchical Queries

Or call directly:

http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/queries4a.htm#2053937

You will need a free Oracle Technology Network (=SDN) account at otn.oracle.com.

Good Luck

Martin

edwin_harpino
Active Contributor
0 Kudos