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

Authorization to test/execute custom class.

Former Member
0 Likes
1,029

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

8 REPLIES 8
Read only

Former Member
0 Likes
926

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

Read only

0 Likes
926

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

Read only

0 Likes
926

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

Read only

0 Likes
926

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

Read only

0 Likes
926

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

Read only

0 Likes
926

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

Read only

0 Likes
926

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

Read only

Former Member
0 Likes
926

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.