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

Former Member
0 Likes
634

Hi all

I have a report as mentioned below.But i want to select only the first 2 record from the table without using control-break statments.Please help.

Vijay

1 ACCEPTED SOLUTION
Read only

prasanth_kasturi
Active Contributor
0 Likes
614

hi,

use the following statement

select <your fields>

from <dbtab> " database table

into table <itab> " your internal table

up to 2 rows.

reward if helpful

prasanth

5 REPLIES 5
Read only

Former Member
0 Likes
614

make use of select upto 2 rows statement if u want to select from dbase

Read only

prasanth_kasturi
Active Contributor
0 Likes
615

hi,

use the following statement

select <your fields>

from <dbtab> " database table

into table <itab> " your internal table

up to 2 rows.

reward if helpful

prasanth

Read only

Former Member
0 Likes
614

Use SELECT UPTO N ROWS statement

Read only

Former Member
0 Likes
614

use the following

select field1 field2 field3 ...

from table_name

into itab

upto 2 rows

where .......

Please reward points if this works.

Read only

Former Member
0 Likes
614

Hi,

To select 'n' particular no. of records from table then use

select <f1> <f2> from table into itab where condition up to n rows.

Regards,

vineela.