cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization required to execute workflow

Former Member
0 Kudos

Hi experts,

I have created a simple workflow with only one step to send a mail to a particular user say (XYZ).

When I execute with userid1 the workflow is executed successfully and the mail is sent.

When I execute with userid2 the workitem is created and is in 'Ready' state, but no mail is sent to user XYZ.

Userid2 has the same roles and profiles as that of userid1 as shown in SU01.But I still doubt in the authorization object level, there might be something missing to userid2.

Hence I want you to suggest an authorization object which is exactly required to resolve my issue on userid2 or there might be something else other than authorization issue.

Please suggest.

Regards,

Karthik

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

SU53 is better option. Please check this transaction code after executing with USER2.

Former Member
0 Kudos

Hi All,

sorry for late reply.

Userid2 has SAP_ALL profile now. But still not getting mails to his SAP inbox.

I noticed one thing, when I checked the logs of workflow mail step (executed by userid1) the step history shows like this:

Background work item created

Background Processing Started

Work Item Processing Complete

Result Processing

But the mail step log (executed by user id2) shows like this:

Background work item created

Background Processing Started ( Mail step status: READY )

Please suggest.

Regards,

Karthik

former_member185167
Active Contributor
0 Kudos

Hello,

Please let us know the solution when you eventually find it.

In the step history, what user is shown as having executed these steps in both cases?

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hi Rick,

When its executed through userid1 the agent name is displayed as expected (Userid2 is the agent i have provided in the mail step).

When its executed through userid2 the agent name is blank in workflow log.

Regards,

Karthik

former_member185167
Active Contributor
0 Kudos

Hello,

The agent name can't be blank, if you look at Step History there is always a username associated with each step, the username it was executed under.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hi Karthik,

Switch on Authorization trace in ST01 for user id2 and execute the workflow.

Do the same with userid1.

Then compare both trace files to identify the missing authorization.

Regards,

Raja.D

former_member183917
Active Contributor
0 Kudos

Hi- can you check the WF log, and compare the WF log by triggering WF with Userid1 and Userid2

Vinoth

suresh_subramanian2
Active Contributor
0 Kudos

Hello Karthik !

Since you doubt at authorization levels objects assigned to userid2, you can check in the tables AGR_USERS and AGR_1251 to know the authorization objects assigned to userid2.

Enter the user name at AGR_USERS table and collect the role name.Enter that role name in table AGE_1251 and get to know the authorization objects assigned to the user from the field "OBJECT".

Regards,

S.Suresh.

former_member185167
Active Contributor
0 Kudos

Hello,

Use SU53 to see if it is an authorization problem.

How do you start the workflow?

regards

Rick Bakker

hanabi technology

nabheetscn
Active Contributor
0 Kudos

Is it a send email step you are using or anything elsr...? Wat type of task it is..?

Nabheet