Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 14, 2013 at 11:05 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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