cancel
Showing results for 
Search instead for 
Did you mean: 

Workitem should not be deleted

Former Member
0 Kudos
65

Hi experts,

In my workflow scenario, I have to send mail to multiple agents, that working fine. My problem is, if any of the agents executes the workitem from his sap inbox, the mail get deleted from the inbox of all the agents, which should not happen. Only the agent who execute the workitem, mail should be deleted from his inbox only.

Can any one help me on this please??

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

There is STEP TYPE " Block". You can use the same for your requirement. You can use dynamic parallel processing or sequential processing for the same.

Regards.

bpawanchand
Active Contributor
0 Kudos

Hi,

That is the standard behaviour of SAP Workitem. IF you want to keep teh workitem in his inbox then you should make use of Dynamic Parallel processing with a multiline container element which is availabel in the MIscellaneous tab,

All teh agents for whom you are sending the mail populate all teh user in a multiline container element and then assign this element in this field , once you do this a internal <CONATINER ELEMENT NAME>_LINE element will be created by the system, you assign this element in the Agents using EXPRESSION under control tab.

THis will dynamycally create parallel branches based on the number of agents populated in the mulitline container element. In this way you can make sure that the agents are having the workitem for each.

Regards

Pavan

Former Member
0 Kudos

Hi Pavan,

Thanks for your reply,

Can you please tell me how exactly I can do this??

Here I am using a Rule to determine agents, in decision tab i have selected Rule. I have created a multiline container element and assigned it to Dynamic Parallel processing with a multiline container element, but i can not find EXPRESSION under control tab, and I can not use expression in decision tab because I am using Rule, so how can i achieve this??

Former Member
0 Kudos

Just to make things clear: when you are using dynamic parallel processing, you will create different work item for every users, which is exactly what you want. Before every user had the same work item, and when someone executed it, it got completed and thus disappeared from inbox of everyone.

Basically you need to populate the mutiline container element preferably with the agents in a separate step. Now you can use this multiline element to divide the workflow into parallel "instances" depending on how many agents you have in the container element.

Next, you cannot use your rule anymore. Instead you could use an expression (instead of the rule) in the agent determination, and the expression must be a row of your multiline element containing the agent.

Regards,

Karri

Former Member
0 Kudos

Hi Karri,

I got your point that i can not use rule, but without using rule how can i get agents in my multiline container element , I can not hardcore it so for this i have to use rule.

Can you please suggest me any other option??

bpawanchand
Active Contributor
0 Kudos

Hi instead of making use of rule just before teh step include a activity step and create a bor method which returns the agents into a multi line container element.

and assign this element

Regards

Pavan

nabheetscn
Active Contributor
0 Kudos

Please create a background activity and there you can determine yours approvers and pass back to workflow containers., once that is done then you can use the concept of dynamic parallel branches.

Nabheet

former_member185167
Active Contributor
0 Kudos

In the method call RH_GET_ACTORS and provide the (AC) rule as a parameter (act_object).