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 issue

Former Member
0 Likes
686

Hi,

i am having some trouble with select query.

lets say for example i have to select some customers for a given country, and the customer is entered using SELECT-OPTIONS . i have written this query -

SELECT *

FROM zmmknits

INTO TABLE it_final

WHERE vendor_name IN vndrname

AND country_v IN cntry

AND ( approved_cust1 IN cust OR

approved_cust2 IN cust OR

approved_cust3 IN cust OR

approved_cust4 IN cust OR

approved_cust5 IN cust OR

approved_cust6 IN cust OR

approved_cust7 IN cust OR

approved_cust8 IN cust OR

approved_cust9 IN cust OR

approved_cust10 IN cust ).

the problem i am facing is that say for example the customer entered is GEORGE and for the given country the customer is George Patro or George Wells, so according to my query its not pulling up these records which it should pull for my report.

kindly help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
656

<<Copy and paste from SAP Help deleted and awarded points removed>>

Edited by: Matt on Jan 29, 2009 9:27 AM

5 REPLIES 5
Read only

Former Member
0 Likes
657

<<Copy and paste from SAP Help deleted and awarded points removed>>

Edited by: Matt on Jan 29, 2009 9:27 AM

Read only

0 Likes
656

This message was moderated.

Read only

0 Likes
656

thank you very much for your reply... however we should note that LIKE or NOT LIKE works with parameters... and my data is entered through SELECT-OPTIONS

Read only

0 Likes
656

SELECT-OPTIONs offer you to enter pattern like

*GEORGE*

on the screen field, and they work like LIKE clause with %GEORGE%

Read only

0 Likes
656

thanks again to you... but can you just elaborate your answer a little bit as to how can i make SELECT-OPTIONS enter the data as GEORGE