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

Count unauthorized

Former Member
0 Likes
432

Hi all,

I'm getting data from PNP logical database but it's possible a user that runs the report doesn't has authorization to access some employees. When I do GET PERNR the table doesn't comes with these employees which the user has no authorization to see. I have to count these employees with no authorization.

Please help. Thanks!

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
415

Hi,

May be you can call


  authority-check object 'P_ABAP'
    id 'REPID' field sy-cprog
    id 'COARS' field '2'.

before calling GET PERNR.

aRs

Read only

Former Member
0 Likes
415

And how can I count the number of employees on that situation?

Read only

Former Member
0 Likes
415

Can you help?