cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP HR - How to check pernr authorization in custom report without LDB

0 Kudos

I have developed custom report without using LDB and i need to check if pernr is authorized or accessible by user who will be executing report. Currently i see when user is executing report, he/she is able to see all pernr's in the system but actually user doesnt have access to all pernr. Is there a way i can restrict this?

Accepted Solutions (0)

Answers (2)

Answers (2)

lucylan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

If what you want to do is to avoid authorization check in logical database PNP, then you can consider
using the P_ABAP authorization object for your own specific report by setting COARS as 2.
In this way, PNP logical database authorization check on P_ORGIN will be disabled for this report.

Attention is that, please be cautious to use SAPDBPNP in REPID in P_ABAP, because it will affect all
the reports that use PNP logical database, including standard reports.

Best regards.
Lucy Lan

lucylan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

May I know what LDB exactly refers to on your end ?

Best regards.
Lucy