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

Former Member
0 Likes
687

Hi,

I want to write a select query to fetch the records, which has field (say objnr) should start with "PR"

I tried giving as follows:

SELECT * from <dbtab> into table <itab> where objnr = 'PR%'.

But the output is not coming.

What is the correct way to fetch only those records?

Regards,

Kalai

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
666

SELECT * from <dbtab> into table <itab> where objnr like 'PR%'.

5 REPLIES 5
Read only

Former Member
0 Likes
667

SELECT * from <dbtab> into table <itab> where objnr like 'PR%'.

Read only

Former Member
0 Likes
666

USE LIKE SELECT * from <dbtab> into table <itab> where objnr LIKE 'PR%'.

Read only

Former Member
0 Likes
666

Hi,

SELECT * from <dbtab> into table <itab>

where objnr LIKE 'PR%'.

Don't forget to reward if useful....

Read only

Vijay
Active Contributor
0 Likes
666

hi

try like this

SELECT * from <dbtab> into table <itab> where objnr CP 'PR'.

REGARDS

vijay

reward points if helpful

Read only

Former Member
0 Likes
666

Hi,

please go through the below code i hopw it will u an idea.

Select single <PRECEDENCE>

FROM <tab>

INTO TABLE <ITAB>

WHERE OBJNR LIKE 'PR%'

UPTO 100 ROWS.

Regards.