cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI call stored procedure and retrieve results with query

Former Member
0 Kudos

Hi PI experts,

in on of our projects we have a synchronous scenario where we first need to call a stored procedure with some input parameters and then query (select) some database tables which were updated by the stored procedure:

SAP <=> PI <=> JDBC

As part of the JDBC access, we would have to first call the stored procedure and then do the select to obtain the data.

Any ideas how to do this using the JDBC receiver adapter (without ccBPM)?

Any help is appreciated.

Best regards,

Matthias

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Any ideas how to do this using the JDBC receiver adapter (without ccBPM)?

Any help is appreciated.

One possible approach I can think of is use SAP -> PI -> JDBC(SP) request and send some dummy response from the SP to  jdbc as response  and in the response mapping you can use jdbc lookup to do select (query) those updated database tables or JDBC UDF or java mapping if the query is so complex  and send the response to SAP back.

SAP (request) - PI --> JDBC(SP) Request

JDBC(Resp) -PI->(response mapping jdbc lookup)->SAP

Former Member
0 Kudos

Hi Baskar

thanks for your reply, actually had the same idea but wanted to see if there could be another option.

Regards,

Matthias

former_member181985
Active Contributor
0 Kudos

hi Matthias,

It is better to have complete functionality in stored procedure itself.

- inputs to stored procedure for processing

- commit in stored procedure based on processing

- select statement in stored procedure to return to PI (stored procedure response)

Regards,

Praveen Gujjeti

Answers (0)