‎2007 Mar 13 1:57 PM
Hello All,
What authorizations do I need to execute/test a custom class. What should I see in su53 that will tell me that I need this particular authorization.
Kind Regards.
Srinivas
‎2007 Mar 13 2:03 PM
Hi,
When you try to access that Class it says that you don't have some authorization to access that.
Take that authorization and assign to your user under a role, by creating it.
Hope this helps.
Regards,
Anji
‎2007 Mar 13 2:06 PM
When I try to test/execute the class, I get the message:
"You are not authorized to execute this object".
I am able to activate the class though. It doesn't say what authorization I need. And also could you be more elaborate when you said "Take that authorization and assign to your user under a role, by creating it."
Not able to test the class.
Regards
‎2007 Mar 13 2:12 PM
Hello,
Before executing put start the debugger by putting /h and set the break point at message.
Like Breakpoint>Statement>Message.
So u could see where u r getting the authorization proble.
Thanks.
Vasanth
‎2007 Mar 13 2:15 PM
First get the authorization error again by trying to execute the class. Then you can go to transaction SU53, which lists the recent most authorization error that you incurred. There you will find which authorization object is missing.
Then you have to tell this authorization object to your basis admin, to add to your user profile.
OR if you want it do it yourself and have required authorization
You can find all the profiles which contain the particular authorization by executing report RSUSR020 with the auth. object. You can then see all profiles using the auth. object, you pick one which suits you and add it into your profile settings in SU01
‎2007 Mar 13 2:19 PM
Hi Vasanth,
I think you said what I needed. But I didn't understand cause , where should I put /h and how/where should I set the break point.
When I goto Utilities>Breakpoints>Set/Delete.
I get the message on the bottom taskbar:
"You can only set breakpoints in an active, unchanged source"
No idea, what I should be doing.
Kind regards.
Srinivas
‎2007 Mar 13 2:27 PM
Hi Vishnu,
Like you said "on SU53, which lists the recent most authorization error that you incurred. There you will find which authorization object is missing."
How should I know where to find which object that's avoiding me to execute my custom class.
Regards.
Srinivas
‎2007 Mar 13 2:47 PM
Hi Srinivas,
Before execute type /h in command window where we will enter the Tcodes. Now press F8 u will see the debug screen in that set the break point as I said in the previous post and and press F8. The program control will stop where the authorization for ur userid fails.
Hope thsi helps u.
Regards,
Vasanth
‎2007 Mar 13 2:15 PM
Hi Srinivas,
To add an role to your profile,
1->goto transaction SU01.
2->enter your user name and press Change button (again authorization issue can occur here also..basis have to do these jobs)
3->choose tab Roles, click on the add entries button
4->enter the new role in the table control
But if you dont have the authorization to change user master, then you can only click the display button (in step 2).
Hope this gives an idea about maintaining roles/profiles/authorizations in user master.
Sajan Joseph.