cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute different queries in JDBC receiver based on inbound message

Former Member
0 Kudos

Dear Freinds,

We have the following situation...

Based on the inbound message at Receiver JDBC different query has to get executed. Problem is how to do this...

For e.g the following native SQL queries were executed in a sheduled background program (every 15 mts) which updates the legacy system running on Oracle.

UPDATE PROD_INV SET SAP_PROD_ORDER = :WA_PROD-SAP_PROD_ORDER

WHERE PARENT_COIL = :WA_TRAN_CTRL-PARENT_COIL AND

( ( PROD_FLAG = :C_Y AND SIZE_FLAG = :C_SPACE ) OR

( PROD_FLAG = :C_Y AND SIZE_FLAG IS NULL ) ) AND

ORD_NO = :WA_TRAN_CTRL-SALE_ORD_NO AND

ORD_ITEM_NO = :WA_TRAN_CTRL-SALE_ORD_ITEM

UPDATE PROD_INV SET SAP_PROD_ORDER = :GSAP_PROD_NO

WHERE PARENT_COIL = :WA_TRAN_CTRL-PARENT_COIL

-


UPDATE PROD_INV SET SAP_UPDATE = 'M'

WHERE COIL_NO = :WA_TRAN_CTRLMSC-COIL_NO

UPDATE PROD_INV SET SAP_UPDATE = :C_Y

WHERE PARENT_COIL = :WA_TRAN_CTRL-PARENT_COIL AND

( ( PROD_FLAG = :C_Y AND SIZE_FLAG = :C_S ) OR

( PROD_FLAG = :C_W AND SIZE_FLAG = :C_S ) )

Thanks & Regards

K. Ramesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member859847
Active Contributor
0 Kudos

Hi,

Could you please let us know,

what is the Receiver JDBc structure created by you.

warm regards

mahesh.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try using stored procedures option. Pass the parameters to the stored procedure from XI using JDBC receiver adapter and then execute the mentioned queries in that procedure.

Regards,

Ganesh