on 02-10-2016 1:47 AM
HI
I have JDBC to Proxy scenario. I have to pull data from two views and then post it to ECC system. They want to do this as single innterface,
Firtly when I used receiver communication channel and tried to pull the metadata to ESR, I am not able to do that. I think we can pull only metadat of JDBC tables to the PI system
Secondly. the structure of the tables are like this
Fistrt view
Table_XYZ
Customer
MobileNumber
Second view
Table_ABC
EmpNumber
Phone
Address
Region
How should I create the datat type for this? I mean sender data type. Can these two views be integrated in one interface?
Another point that I noted is this: Customer from first table and EmpNumber from secon table are going to the same field in ECC table. Both views are updated in the same ECC table
I created the Receiver data type for proxy like this:
DT_xyz
Table_XYz
Customer
MobileNumber
Table_ABC
EmpNumber
Phone
Address
Region
I gave both Table_XYZ and Table_ABC as unbounded. Is this structure correct?
Is it possible to do this as single interface? Is it possible to impport views into PO
Hi Midhun,
Your source data _ type structure is wrong it should be like this :
MT_Source
Rows.... 0..n
Field1
Field2
Fieldn
For receiving from two view their need to have any forign key/primary key relationship between those to view depending on this you can write a sql query in your sender jdbc channel.
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Query SQL Statement select * from Table_ABC, Table_XYS
UPDATE <TEST>
can I use these two select all data from both views?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
+
Alternatively a view does this join in the DBMS (Sender) as well.
Regards,
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
You have two options to do this.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
Souce Datatype should be like this:
Table_DT
row (0...unbounded)
Customer/EmpNumber
Mobilenumber
Phone
Address
region
and in Sender CC
Query SQL Statement: Select a.Customer, a.MobileNumber, b.Phone, b.Address, b.region from Table_XYZ a, Table_ABC b where a.FLAG = '0' and a.Customer = b.EmpNumber.
The above Query will fetch data from two tables based on joint condition.
Regards,
Siva.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.