Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 01:00 PM

    Hi,

    Could you please let us know,

    what is the Receiver JDBc structure created by you.

    warm regards

    mahesh.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 12:59 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.