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

Native SQL to retrieve range

Former Member
0 Likes
564

Hi,

I have an requirement in which i need to retreive the data from oracle database(ODS) using native sql.

In the selection screen iam giving select option for lotid. Based on the lotid i need to retrieve the data from ODS.

If the user enters range for eg 1 to 5, how can i use that range in native sql query?

Regards,

Arun.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
415

Hi

Prepare your sql statement in ABAP , and execute it while activating the trace,

Then display trace and goto EXPLAIN SQL , here you will get the sql statement in native SQL ,now this statement will differ from the database you want to run the native sql on since, the statement you get will be native to the database your sap server is running on

But it should be similar .

Try it out.

1 REPLY 1
Read only

Former Member
0 Likes
416

Hi

Prepare your sql statement in ABAP , and execute it while activating the trace,

Then display trace and goto EXPLAIN SQL , here you will get the sql statement in native SQL ,now this statement will differ from the database you want to run the native sql on since, the statement you get will be native to the database your sap server is running on

But it should be similar .

Try it out.