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

Search in select query

Former Member
0 Likes
629

Hi All,

I want to search table fields

select auart bezei from tvakt into corresponding fields of table itab.

now I want resctrict the selected values of field bezei to the ones that starts with 'Z'.

Pl send me sample code

Points assured

Regards

Shashikant

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
603

select auart bezei from tvakt into corresponding fields of table itab

where bezei like Z%.

This query will return all ther records where bezei starts with z.

Reward if helpful.

Thanks,

Imran.

Hi All,

I want to search table fields

select auart bezei from tvakt into corresponding fields of table itab.

now I want resctrict the selected values of field bezei to the ones that starts with 'Z'.

Pl send me sample code

Points assured

Regards

Shashikant

3 REPLIES 3
Read only

Former Member
0 Likes
604

select auart bezei from tvakt into corresponding fields of table itab

where bezei like Z%.

This query will return all ther records where bezei starts with z.

Reward if helpful.

Thanks,

Imran.

Read only

Former Member
0 Likes
603

If you want more flexiblity, put the search string in search string

CONCATENATE '%' Shashi'%' INTO srch_str.

select auart bezei from tvakt into corresponding fields of table itab

where bezei like srch_str.

This will query all the bezei which has shashi anywhere.

Reward if helpful.

Thanks,

Imran.

Read only

0 Likes
603

Thank you very much imran for ur previous answer

I hv rewarded ur answer

But in the same select query when I am trying to select auart which ha two alphabets LP it is selectin it correctly but it is giving me some two entry which has only two lettelrs DS

which is not supposed to come

but when I am checked the table tvakt on the basis of value DS it is giving me means diplaing the same entry with LP n not with DS

Regard

Shashikant