cancel
Showing results for 
Search instead for 
Did you mean: 

Updating two tables through JDBC

Former Member
0 Kudos

<b>Hai,

Can anybody please answer the following question?

How can I update two table in Receiver by using JDBC Adapter at receiver side from single source structure.

Thanks in advance.</b>

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

Create following structure for inbound data type to insert data in DB using JDBC receiver adapter here dbTableName1 is for first table and dbTableName2 for second table .

<StatementName2>

<dbTableName1 action="UPDATE_INSERT">

<table>realDbTableName</table>

<access>

<col1>val1</col1>

<col2>val2</col2>

</access>

<access>

<col1>val11</col1>

</access>

</dbTableName1>

<dbTableName2 action="UPDATE_INSERT">

<table>realDbTableName</table>

<access>

<col1>val1</col1>

<col2>val2</col2>

</access>

<access>

<col1>val11</col1>

</access>

</dbTableName2>

</StatementName2>

Thanks ,

Suvarna

pls award pts if it helps

bhavesh_kantilal
Active Contributor
0 Kudos

Create multiple STATEMENT level tags one for each table to be updated with the Action as UPDATE and the Access Containing the corresponding Column Names.

Refer this link for the details,

http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

Regards

Bhavesh

Shabarish_Nair
Active Contributor
0 Kudos