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

Select Query not working properly

Former Member
0 Likes
686

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.

2 REPLIES 2
Read only

Former Member
0 Likes
539

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

Read only

0 Likes
539

Hi Rob,

Thanks for response.I found the real cause.Since col5 is date type query is failing for Col5 = ' '.

Thanks,Rek.