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

Select Query not working properly

Hi ,

I am using below Select query getting records from table where more then one column is space.But it is not getting any records from the table.


select * from ztab1

into table lt_im

FOR ALL ENTRIES IN lt_im


WHERE col1 = lt_im-col1

AND col2 = lt_im-col2

AND col3 = ' '


AND col4 = ' '

AND col5 = ' '.

If I use col3 <> ' '


col4 <> ' '

then it get records meeting above criterion.





Any help appericiated





Thanks,

Rek.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 24, 2012 at 06:54 PM

    The SELECT statement is working perfectly.

    Press F1 on FOR ALL ENTRIES and you'll see that it eliminates duplicates from the returned set.

    Rob

    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.