Application Development 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: 

ABAP statement to find total no. of recs

Former Member
0 Kudos

Hi,

There is a table with two fields f1 and f2.

f1 is the primary key of the table.

For a particular value of f2 I want to know the total no of records in the above table.

What is the most efficient way to do it.

Please guide me,

Thanks,

CD

1 ACCEPTED SOLUTION

Former Member
0 Kudos

select count * into l_recs from dbtable where f2 = value.

regards,

Advait

1 REPLY 1

Former Member
0 Kudos

select count * into l_recs from dbtable where f2 = value.

regards,

Advait