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

Dynamic native SQL constructs

Former Member
0 Likes
852

Hi Gurus,

I want to generate dynamic native sql constructs. Following is the code i am using but it genrates exception of invalid SQL statement

EXEC SQL.

OPEN c1 FOR

SELECT (l_t_code) FROM (s_tabnm) WHERE (l_t_codewhere)

ENDEXEC.

Please brief me how to create dynamic native SQL constructs .

Thanks

Sonal....

3 REPLIES 3
Read only

Former Member
0 Likes
516

The native SQL depends on the database.

Look up a help.sap.com

Read only

0 Likes
516

Check the program, ADBC_DEMO in SE38. It will help you create dynamic native SQL queries.

Read only

fabian_otto
Product and Topic Expert
Product and Topic Expert
0 Likes
516

Thanks!!! The Demo is great...