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 DISTINCT

Former Member
0 Likes
776

This is the select statement I am using -

SELECT DISTINCT FIELD1 AS FIELD1 FROM TABLE UP TO 1 ROWS

INTO TABLE I_TAB.

This is selecting the line but getting a initial line.

Its not retrieving any data.

Please tell me what has to be modified here?

Thanks,

Archana.

7 REPLIES 7
Read only

Former Member
0 Likes
734

what are you trying to retrieve?

Read only

0 Likes
734

FIELD1 data Ravi.

Read only

0 Likes
734

You want the first field in the table in the first record?

May be the first record has a blank value in it.

Regards,

Ravi

Read only

0 Likes
734

Hi

Try query with out using UP TO 1 ROWS

Regards

Pavan

Read only

Former Member
0 Likes
734
REPORT  YEST_DB.

data: i_tab type vbap_t.

SELECT DISTINCT vbeln FROM  vbap up to 1 rows
INTO TABLE I_TAB.

break-point.
Read only

0 Likes
734

Its still retrieving the bank lines.

Whats wrong?

Thanks,

Archana.

Read only

Former Member
0 Likes
734

Thanks for the help.