on 09-22-2008 1:50 PM
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
Hi,
Could you please let us know,
what is the Receiver JDBc structure created by you.
warm regards
mahesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.