Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP PI call stored procedure and retrieve results with query

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

Former Member
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question