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

string operation

Former Member
0 Likes
530

I want to select MATNR which starts with 'd' or 'g' or 'b' or 'y' into an internal table......how?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
510

try with wild characters in where of select statement

4 REPLIES 4
Read only

Former Member
0 Likes
511

try with wild characters in where of select statement

Read only

0 Likes
510

TRYING WITH WILD CARD IN WHERE CLAUSE DOESNT GIVE SUCESSFUL SELECTION..MEANS SY-SUBRC = 4 IN THAT CASE... SO SUGGEST SOME WHAT DIFFERENT....

Read only

Former Member
0 Likes
510

Try

SELECT * FROM mara INTO CORRESPONDING FIELDS OF TABLE lt WHERE matnr = 'P%' OR matnr like 'G%' OR matnr like 'B%' OR matnr like 'Y%'.

Regards

Tamil

Read only

Former Member
0 Likes
510

hi mathew

First select all records database table and put it into Internal table

Then use relational operator Like CP (Contain patten) and then filter the data

Regards

Deva