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

Where

Former Member
0 Likes
419

Hi,

How can I do this in ABAP ??

In Pseudocode:

select name,surname

from table

where name like %John%

How is the code in ABAP to the sentence where ?? (like)

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
401

and if 'John' isnt a constant ??

3 REPLIES 3
Read only

Former Member
0 Likes
401

TRY

select name,surname

from table

where name like '%John'

Read only

Former Member
0 Likes
402

and if 'John' isnt a constant ??

Read only

0 Likes
401

say v_name is the variable which contians the name.

CONCATENATE '%' v_name INTO v_name.

then use WHERE name LIKE v_name