cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with authority check sy-subrc 4

former_member666258
Participant
0 Kudos
2,419

Hello friends, how are you? I have a little problem and I've been giving it a head for some time, I created an authorization scope (su20), a class for my object and an authorization object (su21), I assigned it to a role manually (pfcg) and I have that role, I wrote my simple code and when it executes it returns 4 that according to search and means “Authorization check not Success. One or more authorizations were found for the authorization object in the user master record and include the value sets, but not the specified values, or the wrong authorization fields or too many fields were specified. " Attached images of what he did:

su20 su20.png

su21

pfcg

code

i dpn't get it why if it comment id "ACTVT" sy-subrc returns 0 but when is not comment it returns 4 but i should receive 2 parameter that's the wey i created the object.

Accepted Solutions (1)

Accepted Solutions (1)

RaymondGiuseppi
Active Contributor

Execute SU53 and check for the exact values checked as well as currently entered authorization in buffer, you could try toreset the authorization buffer from this transaction.

NB: For activity field did you try with '03' or DUMMY.

Answers (0)