Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question