Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Open cursor for internal table

Former Member
0 Likes
1,114

Hi folks,

I have a tricky question concerning the cursor function and internal tables. First of all, it is not possible to create a view. Instead I've to use a function module for extracting some data to the BI system.

Actually most of the time I work with SELECT (for outer joins) and internal tables. At the end I have a internal table and must open an cursor. As fact, I can't open a cursor for an internal table - only database tables are allowed.

 OPEN CURSOR WITH HOLD s_cursor FOR SELECT * FROM lt_temp. 

Does someone have a clue how to solve my problem? Obviously I have to use a db table for a open cursor statement but on the same way I have to use a internal table for all my previous SELECT-statements.

Thanks in advance for your help.

Regards,

Mrcl

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
642
Read only

0 Likes
642

Hi a®s

I don't use native sql due to the fact "[..] will not run under different database systems." as mentioned on help.sap.com.

Mrcl