Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Restrict Workitem Execution through SBWP as its configured in SWFVISU

Hi ,

The requirement has been modified , now i want that task configured in SWFVISU. A workitem will be seen in SAP ID inbox (SBWP) and Portal.

1. If the user clicks on the workitem in portal then its directed to webdynpro application. - Expected and its working

2. If user clicks on the workitem in SBWP then its required - that we give either an error or information message stating that it should be executed in UWL and the work item should not be completed from SBWP. It should only be allowed to complete via Portal.

I was suggested a solution to above question in my earlier post :

Provide the url in mail step of workflow to lau... | SCN

In above link was suggested to take reference of

You could take a look to leave request workflow template WS12300111 and its step "Approval process". This one uses the method I was talking about. If you don't select the "background processing" option for the task, then the task will "stop" in the users inbox. If you add the error message thing to the method, then it cannot be executed/completed from business workplace by just clicking the work item.

The task method was CL_PT_REQ_WF_ATTRIBS->DUMMY.

After having a look at the above mentioned workflow in my current system it was observed it had an raise exception statement which was not handled also agent assignment was not activated.


In currently developed custom workflow if we dont handle exception then worklfow goes to error. If we handle that exception by activation the exception outcome in the task then the workitem gets executed after showing the information message in SBWP.

So the approach provided doesnt seem to work , would be grateful if someone could guide on the same.

Tags:
Not what you were looking for? View more on this topic or Ask a question