on 03-17-2010 7:41 AM
Hi,
can we update 3 different tables using recevier JDBC..if so how will be the structure of recevier JDBC message??
Can we write JOIN query (which takes the data from 3 different table) in recevier JDBC..If so how can we do this??
Thanks
Murali
In receiver JDBC Structure, we have one node Statement.
Use this Statement1, Statement2, Statement3 as per your requirement for data posting in 3 tables.
map all the fields for all the statements or as per requirement.
Post the same using one Receiver JDBC CC.
3 statements will run & will update 3 tables. table names you will give in Table node of Statements.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
For your first question snadeep answere will work. For your second question the following will help you.
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1725. [original link is broken] [original link is broken] [original link is broken]
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murali,
can we update 3 different tables using recevier JDBC..if so how will be the structure of recevier JDBC message??
Yes, as Sandeep said, you will have 3 statement and in each statement mention the table names....
Can we write JOIN query (which takes the data from 3 different table) in recevier JDBC..If so how can we do this??
In the place of action="SQL_DML" please type as SQL_QUERY....then write your join query...
Regds,
Pinangshuk.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murali,
Please clear my doubt as you mentioned what need to be given in the table name because you are retriving data from three tables.At sender jdbc if you are trying to have three different select from three tables then it will give error at sender jdbc adapter.Because PI will receive three recordset which it will not be able to handle. I believe you can create a stored procedure and do the join and then send the data to PI.
Clarify whether you want three tables to be updated at receiver side? I think you are working towards sender.
Regards,
Nutan
Hi Murali,
>>can we update 3 different tables using recevier JDBC..if so how will be the structure of recevier JDBC message??
Yes... But then you may be interested in the foreign key lock etc problems with the DB tables and also the mututal update or rollback..
So as a start check the link http://help.sap.com/saphelp_nw04/helpdata/en/4d/8c103e05df2e4b95cbcc68fed61705/content.htm
>>Can we write JOIN query (which takes the data from 3 different table) in recevier JDBC..If so how can we do this??
Never tried but you can use action as SQL_QUERY and give a try...
Also it will be better if you search SDN you will get more hint/help
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
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.