cancel
Showing results for 
Search instead for 
Did you mean: 

Approve a workitem using swia

Former Member
0 Kudos

Hi,

We have a scenario where an employee(A) created a SC and the workitem is sent to the manager(B) determined by the approval chain.User(C) is a substitue for manager(B).Both C as well as B are not able to approve the SC.Does any one know what the problem might be?

Is it possible to approve this SC using SWIA transaction? Please guide me.

Thanks in Advance,

Navin

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Is there any error message? Have they received the workitem in their inbox?

If nobody has received the workitem, I think the standard approval task is not general task.

In this case, please set the task as general task.

Regards,

Masa

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I figured out what is causing the problem.

There is a field approvalstate in Approverlist table.This table is populated by N-step approval BADI.

When the approver approves the SC, approvalstate should be set to 0 which is not happening.

i.e; even if the approver approves it, approvalstate is 2.Thus the loop continues and determines himself as the next approver.

Even if the workitem is forwarded to some other user and he approvers it,approval state remains 0.

For others it is working fine.Is there any solution for this.Please help!

Former Member
0 Kudos

sorry.

If the workitem is forwarded and approved the value in field approvalstate is 2 and not 0.

former_member184495
Active Contributor
0 Kudos

Hi NK,

you have mentioned that B and C are not able to approve, which means the work item is sent.

So could be an authorization issue of not being able to Release the SC.

Hope it helps.

Aditya

saumya_govil
Active Contributor
0 Kudos

Hi Naveen,

Check if user B and C are set as agents for the user decision task.

Also check if the task is a general task.

Please state whether the users are recieving the task in their mail box or not?

If yes, then check their authorizations to execute the task.

Regards,

Saumya

Former Member
0 Kudos

Hi,

The workitem is sent to both B as well as C.

All authorizations seem to be right. Is there a way to manually approve/reject a SC by administrator?

Thanks & Regards

Navin

saumya_govil
Active Contributor
0 Kudos

Hi Naveen,

To manually execute the workitem you can use transaction SWIA.

Here you can execute a workitem as an administartor.

Go to t-code SWIA and provide selection parameters to select your workitem.

Click on execute button.

You would get a list of the workitems. Select your workitem and click on execute button.

Note that this is not recommended to be used in production environment.

Regards,

Saumya

Former Member
0 Kudos

Check out if any authorizations are missing ?

Regards,

PR.