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: 

counting the records

former_member487858
Active Participant
0 Kudos

HI all,

I want to count the number of distinct a/c numbers from a standard table and want to store that in a local variable

Is that possible in ABAP.

Thanks in advance.

Shree

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

User COUNT DISTINCT addition of the Select

Like:


SELECT COUNT( DISTINCT HKONT ) INTO L_HKONT
FROM BSEG.

Regards,

Naimesh Patel

former_member487858
Active Participant
0 Kudos

solved