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: 

AUTHORITY-CHECK returns always SY-SUBRC = 0

Former Member
0 Kudos

Hello,

I defined the following authorization object: Y_CI_RRCIS; the only authoritation field for this object is ACTVT with the value 03. After adding this to a role and assigning it to me I´d expect that:

AUTHORITY-CHECK OBJECT 'Y_CI_RRCIS'
    ID 'ACTVT' FIELD '03'.

returns SY-SUBRC = 0 and

AUTHORITY-CHECK OBJECT 'Y_CI_RRCIS'
    ID 'ACTVT' FIELD '04'.

returns SY-SUBRC not 0. However, testing with any FIELD value I always get SY-SUBRC = 0 !!!

Isn´t it possible to only define ACTVT for an auth object? Will this always return SY-SUBRC = 0 ???

Thank you for your help.

Stefan

Edited by: Stefan Obermeier on Jul 22, 2010 10:18 PM

4 REPLIES 4

former_member193335
Active Participant
0 Kudos

I suggest you verify your own authorizations. It's possible you have SAP_ALL privileges and for that reason validation returns you always 0 in sy-subrc.

Regards.

Rafael Rojas.

0 Kudos

No, I do not have SAP_ALL. Is there any other role which can cause this? The mentioned authorization object is only contained of the role I´ve created for it.

Best regards,

Stefan

0 Kudos

Hi stefan ,

In su01 check in profiles tab ...i think u are having Profile SAP_ALL, if this exists delete that and check it.

Ram.

0 Kudos

Hello Ram,

no, sorry, I do not have SAP_ALL (in roles or Profiles).

Regards,

Stefan