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

authority-check command is not checking Z objects...

Former Member
0 Likes
350

Hi all,

I needed to use SAP Enhancement PPCO0023, FM EXIT_SAPLCOMK_014, include ZXCO1U23 to check some Z* authority objects which I also created (SU21), in order to prevent unauthorized BOM change in the Process Order.

E.g.: I created authority object ZPOP_00002 with field ACTVT and included it in the User Profile ZPPMLTOP02.

I then use ABAP/4 command authority-check in the user-exit in order to check if the user has enough rights to change any material component quantity.

If authority-check returns sy-subrc <> 0, the user hasn't object ZPOP_00002 within his user rights (ZPPMLTOP02 has not been granted) and he receives an error message telling that he doesn't have enough rights to change a component quantity.

The weird thing is that I performed a lot of tests some days ago and it worked perfectly and now, suddenly, out of nothing, the ABAP/4 command authority-check simply stopped checking the authority object!!!!

Has anybody out there any hint in order to save this miserable poor creature?

Any hint will be more than appreciated and... valuable points will be rewarded...

May thanks in advance,

Alberto

1 REPLY 1
Read only

Former Member
0 Likes
283

There is a God damned button "Regenerate SAP_ALL" in SU21, which includes the authority object into SAP_All profile and I must have pressed it up unconsciously.

As I was in a development system and had this authority in my profile...