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

Problem while using Comparison Operator 'CA' in select queries

Former Member
0 Likes
2,332

Hi ,

I have written select query like this.

SELECT * FROM rsdodso INTO TABLE gt_rsdodso

WHERE odsobject CA s_obj-low.

then I am getting error 'CA is not a valid comparison operator'.

Would you please suggest me how to use Comparison operators.

Regards,

K.krishna.

Moderator Message: Basic Post. Thread Locked. Points unassigned.

Edited by: kishan P on Dec 27, 2010 1:07 PM

3 REPLIES 3
Read only

Former Member
0 Likes
1,275

Hi,

Use 'IN' and not CA. You cannot use CA in where clause. Write CA in if .. endif.

SELECT * FROM rsdodso INTO TABLE gt_rsdodso

WHERE odsobject IN s_obj.

if gt_rsdodso-ODSOBJECT CA '0D_FC_D01'.

endif.

Regards,

Srini.

Moderator Message: Do NOT answer basic questions.

Edited by: kishan P on Dec 27, 2010 1:07 PM

Read only

Former Member
0 Likes
1,275

answered

Read only

Former Member
0 Likes
1,275

Hi,

The 'Contains' Comparision Operators are not supported on selects if you press F1 on select you should be able to find the list of operators supported. I am not sure of what your requirement is but may be you can use the 'LIKE' to fulfill it.

Regards,

Himanshu