‎2007 Feb 11 6:09 PM
Hi all,
I HAVE CREATED A CLASS USING SU21 AND I CREATED A OBJECT TO THE CLASS WITH FIELDS
1)ACTVT
2)WERKS
THEN I CREATED AROLE IN PFCG AND I GAE A PROFILE NAME THEN I CLICKED ON AUTHORIZATION , THEN I SELECTED , DO NOT SELECT TEMPLATES.
THEN I CLICKED MANUALLY AND ADDED THE OBJECT I CREATED , THEN I ADDED A PLANT TO A WERKS FIELD AND * (FULL AUTHORIZATION) TO ACTVT FIELD.
THEN I SAVED IT AND GENERATED IT.
THEN I WENT TO USER TAB AND I GAVE A USER ,SAVED , I DID COMPARE USING COMPLETE COMPARE AND COME BACK AND SAVED IT AGAIN AND JUST CAME OUT OF THE ROLE.
NOW I CALLED THE OBJECT IN ONE OF MY PROGRAM, WITH THE SAME PLANT AND ACTVT SAY 2.
IT WORKED FINE FOR MY LOGIN I.E SY-SUBRC EQ 0 , I EVEN WORKED FINE FOR OTHER LOGINS I.E IAM GETTING SY-SUBRC 12
while creating a request for role, i had two options,
1)personalization
2)user assignment
i selected personalization
I used personalization while creating a request for role.
let me know the reason for not working in QAS
now its not working in dev too
MY THOUGHTS ARE
1) DOES THE PLANT AUTHORIZATION GIVEN BY SECURITY PEOPLEIS OVERWRITING MY OBJECT OR IS THERE SOME REASON .
BUT I WHEN I RELEASED IT THATS WHEN THE PROBLEM OCCURS.
IN QAS ,EVEN BEFORE ADDING USERS THE SY-SUBRC EQ 0.
in QAS , ALL USERS ARE GETTING AUTHORIZATION
thanks
venki
‎2007 Feb 11 7:55 PM
Hi Venki,
Try by providing MANDT field also in authority check statement.
Can tell have u created Trans code for object or are u running the program through se38. If you are running it drectly frin se38 thencreate a z Trans code & try it QAS.
Ashven
‎2007 Feb 11 8:28 PM
Hi,
can you be more clear,
i have created fields
actvt and werks in su21
assigned * to actvt
abc to werks in pfcg in authorization data
in the user tab i gave my name
i am using it my se 38 program and checking for sy-subrc.
i don't where should i include mandt..
iam running in se 38.
i don't why ypou want me to create a t code for the program, because i am checking whether the user has access to a particular plant.
let me know if iam wrong
thanks
venkat