Skip to Content
author's profile photo Former Member
Former Member

Select options with Native SQL

Hi,

Is there any way that I can retrieve data from an external Oracle DB table using native SQL and 2 select-options as 'where' criteria?

select-options: s_bukrs for ekko-bukrs,

s_bsart for ekko-bsart.

*-- connection to ext db

@$#

exec sql perform write_ln

select ebeln

from zext_ekko

into :wa

where [?!?!?!?] "Should retrieve data based on sel-optins

endexec

Thanks in Advance

Somesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2007 at 01:08 AM

    where condition may not work for native sql query's

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2007 at 09:16 PM

    If the low & high are mentioned in select-option then you can use BETWEEN as log operator in condition, i suppose. But if there are multiple values entered then it wont work. You can very well mention a parameter or a field of structure as conditon in WHERE clause of Select stmt in native SQL.

    Reward if its useful.

    Regards,

    Sail

    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.