2006 Dec 11 1:16 PM
hello gurus,
I am having an text in the input fiedl based on that i
am searching the fields
I ant to use the %
how can i retirieive it based ont that
CONCATENATE '%' reason_text '%' INTO reason_text.
SELECT * FROM table INTO CORRESPONDING FIELDS OF TABLE close_reason
WHERE reason_text CP reason_text.
it throws an error meesage
how can i do it
senthil
2006 Dec 11 1:20 PM
HI Senthil
For Patterns: Use LIKE for comparision.
Eg:
select fld1 fld2.... into table itab
from <itab>
where fld1 LIKE 'PAT%'.In your case it should be:
CONCATENATE '%' reason_text '%' INTO reason_text.
SELECT * FROM table INTO CORRESPONDING FIELDS OF TABLE close_reason
WHERE reason_text <b>LIKE</b> reason_text.
Kind Regards
Eswar
2006 Dec 11 1:20 PM
HI Senthil
For Patterns: Use LIKE for comparision.
Eg:
select fld1 fld2.... into table itab
from <itab>
where fld1 LIKE 'PAT%'.In your case it should be:
CONCATENATE '%' reason_text '%' INTO reason_text.
SELECT * FROM table INTO CORRESPONDING FIELDS OF TABLE close_reason
WHERE reason_text <b>LIKE</b> reason_text.
Kind Regards
Eswar
2006 Dec 11 1:24 PM
2006 Dec 11 1:21 PM
Hi Senthil,
You could make use of the LIKE addition in the SELECT statement,
SELECT * FROM table INTO CORRESPONDING FIELDS OF TABLE close_reason
WHERE reason_text LIKE reason_text.
Please make your queries more informative
Regards
Wenceslaus