on 08-15-2015 11:59 AM
Hi,
My Sceneriois Proxy-to-JDBC Synchrous. Senderis sendingidto JDBC and JDBC need to select the data based on this id and send it back to proxy.
Select A,B,C,Sales_id, Sales_Date where Sales_id=id and Sales_Date= between today and Today-20 is the data we need to select from JDBC.
I have created recieveras follows:
Root
<Statement>
<dbTableName>
Action
Table
<Access>
A
B
C
Sales_ID
Sales_Date
<Key1>
Sales_ID
But i am a little bit confused about Sales_Date field and its Condition, Where to mantian in structure and How to pass condition.
Hi Veera,
You can handle your requirement in the below ways
1)Using SQL_QUERY -->you can directly give your query as an input (Make use of placeholders to pass values dynamically to SQL query )
Defining an SQL_QUERY Statement - Advanced Adapter Engine - SAP Library
2)As above said you can go for stored procedure .
NOTE:Required logic need to implement in d/b by creating a stored procedure
Document Formats for the Receiver JDBC Adapter - SAP XI: Runtime - SAP Library
Regards
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Veera,
When you have condition like 'between' , 'group by ' etc ..better handle by stored procedure .Where the conditions are all mentioned in stored procedure and u need to call that stored procedure with required parameters.
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.