‎2007 Oct 23 2:58 AM
hi all,
i hv created authorization object via SU21. ZZ_program, I am trying to modify but it prompts warning:
<b>Field assignment for object ZZ_PROGRAM cannot be changed as auth. for it exist
Message no. 01221
Diagnosis
You attempted to change an object for which authorizations exist. Authorization fields for the object cannot be changed here.
Procedure
If you want to change the object anyway, you must first delete all authorization belonging to this object. Consider that other systems may also be affected.</b>
after i enter the message, it prompts the whereuse list
<b>Where-Used List
Authorization Object
ZZ_PROGRAM
Berechtigungen
AA________00
Rollen
ZZPROGRAM </b>
after that, the fields are all greyed off, i am unable to change the authorizatiion fields and i do not understand the where use list result, can anybody pls help ?
i am working on sap 4.7
‎2007 Oct 23 3:05 AM
You are using this Authorization object in the program. So you are not able to delete it.
Comment code in the program, activate the program and try again.
ashish
‎2007 Oct 23 3:08 AM
Hi Ashish,
I have commented the coding in both my customised programs ZMPUm044 and zmpum020, the whereuse list given are not customised program error message
‎2007 Oct 23 3:13 AM
Can you check SU20 and SU21? I think the mapping with the Authorization field is present in SU20 so you are getting an error.
Please check this and let me know.
ashish
‎2007 Oct 23 3:19 AM
Hi Ashish,
In su20, the authorization object exists, i am trying to delete, but still gives me the same warning message and the field is greyed off, means am not able to delete or change .
Both su20 and su21 are inter-related, i try to delete either one but both give me the same warning message, end up i am unable to delete/change both
‎2007 Oct 23 3:24 AM
Goto SU20, select the field, go in change mode.
See section, "Use in Authorization Objects".Your Authorization object must be entered here. Delete it from the list and save the object.
That should help.
ashish
‎2007 Oct 23 3:30 AM
Hi Ashish,
There is not delete icon at the path you gave me , pls advice
‎2007 Oct 23 3:42 AM
Can you first delete the Authorization object in Su21 and then modify in SU20?
‎2007 Oct 23 3:46 AM
Hi Ashish,
I have tried to delete Su21 first but it still gave me the same warning message and i am unable to delete it
‎2007 Oct 23 3:47 AM
Can you check with your basis team if you have required authorizations?
‎2007 Oct 23 4:03 AM
There is one particular check with Table <b>USR12</b> (User Master Authorization Values) and also with table <b>AGR_1251</b> (Authorization data for the activity group).
SELECT distinct AUTH FROM USR12
appending table list
WHERE OBJCT = OBJECT
and AUTH ne '&_SAP_ALL'
and AUTH ne '&_SAP_APP'
order by auth.
if sy-subrc = 0.
insert 'Berechtigungen' into list index 1.
RC = 1.
endif.
append 'Rollen' to list.
index = sy-tabix.
SELECT distinct agr_name FROM AGR_1251
appending table list
WHERE OBJECT = OBJECT
order by agr_name.
If that is sucessful , you cannot change the authorization object.
See the content of <b>AGR_1251</b> table using your authorization object name. Then you will Role name from field AGR_1251-AGR_NAME
with this role name, go to Tcode: <b>PFCG</b>
and give the Role name and click on change button
In authorization tab.Chick on Change Authorization Data.
And find and remove this authorization object from there.
And then proceed with changing the Authorization object.
Hope this will solve ur issue.
‎2007 Oct 23 7:21 AM
hi guys,
my Basis guy has given me SAP_ALL, and am still unable to do ammendment.
i found out that in pfcg, the role i created contains the authorization obj, so i deleted it and only i can edit su20/21..
he said by rite, SAP_ALL is able to overwrite and do the ammendment