on 05-17-2011 9:05 AM
Hi.
I'm trying to make an syncron (RFC <==> JDBC) message where I got an request from an RFC. This request should update an DB and then return with the updated fields.
The updata works fine, but I did not get the changed fields back in my responsmessage.
I use two mappingprogram. One for the update(RFC => JDBC and one for the respons JDBC = > RFC.
But my respons like like this.:
- <InsertStatement_response>
<update_count>1</update_count>
<insert_count>0</insert_count>
</InsertStatement_response>
I will be very happy if someone could give me an link to an exampel which describe this scenario.
Thanks/ perarne
Thank's to all. I solved my problem with two syncronus message. One with the UpdateInsert and one with select.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But my respons like like this.:
- <InsertStatement_response>
<update_count>1</update_count>
<insert_count>0</insert_count>
</InsertStatement_response>
The response is quite valid.
This request should update an DB and then return with the updated fields.
Do a normal RFC_Req --> JDBC_Req mapping.....in the response mapping (JDBC_Resp to RFC_Resp) inlcude a JDBCLookup which will lookup (select) for the updated fields....then you can use the output of the lookup to send to RFC_Resp.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take the help from below link :
/people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
Use Stored Procedures at JDBC side for response.
OR
you can use 2 Asynchronous interfaces RFC - JDBC (INSERT DATA in table) & JDBC - RFC (SELECT DATA from Table).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response. You too spantaleoni.
This interface is trigged from the web( => SAP => PI =>JDBC) and I have trid with two Asynchronous interfaces but I have a problem when there is busy trafic in PI and the first message queue up.
Therefore I ment an synchronous message will be better.
Stored Procedures will be difficult/costly to set up on the on the AS400/iSeries.
/perarne
You cannot create Synchronous scenario using Update and respone as Select. One way is doing stored procedure. Other option is feasible too. Here it is...
RFC (Sender Request )---> JDBC (UDF) does update ---> JDBC ( Receiver Select Request) --> JDBC Select Response --> mapping --> RFC Response.
PI 7.1 Jdbc graphical lookup might not support insert , so you can use UDF for inserting data.
Refer this link too
/people/arpil.gupta/blog/2008/11/03/workaround-for-jdbc-scenarios
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.