Authorization-check P_PCR fails...
I have a little authorization problem...
I created a role with authorizationobject P_PCR.
Payroll Area B8 Activity Change
In my program i have following code to check authorization :
GET pernr. AUTHORITY-CHECK OBJECT 'P_PCR' ID 'ABKRS' FIELD pernr-abkrs ID 'ACTVT' FIELD '02'. IF sy-subrc NE 0. REJECT. ENDIF. * further processing..
Everytime i execute this code, sy-subrc eq 4... :(.
When i look into SU53 :
The authorization check failed Authorization obj. <i>P_PCR</i> HR: Payroll Control Record Object Class <i>HR</i> Human Resources B8 Activity 02
My user is added to the role, so i don't see anymore why i can't execute this report ... Does anyone has an idea for me ?