Skip to Content

how to call an oracle procedure that returns a cursor in ABAP

Hi all,

Currently we encounter a problem.we try to execute a oracle procedure to get a list of stock material information stored in another system. but we don't know the correct way to call a procedure that return a cursor. can anyone help out?

Thanks and best regards!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on May 28, 2019 at 01:48 PM


    you can use the standard framework ADBC (package SDB_ADBC) to do that. Youy can call procedures from the DB (CL_SQL_STATEMENT->EXECUTE_PROCEDURE), and process the reuslt using the class CL_SQL_RESULT_SET that support the use of cursors (mthods NEXT, NEXT_PACKAGE, CLOSE......)

    You have an example in report ADBC_DEMO_PROC_CALLS_HDB:

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 29, 2019 at 12:37 AM

    Hi,Juan Carlos Rodriguez

    Thanks for your answer! I still wonder whether the ADBC support oracle procdure,as the demo you offer is designed for Hana Database.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.