cancel
Showing results for 
Search instead for 
Did you mean: 

Execution of workitem in background

Former Member
0 Kudos

Hi Experts,

Please let if there is any possiblity or funtion module to excute a workitem with user decision in background. We are in need to default a decision after a deadline is reached, for which we are trying to execute worktiem in background.

Thanks in advance.

Regards,

Viven

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Do some searches with SE37, and try to find for a function modules for this purpose. I think that there is at least this one, which you could use: SAP_WAPI_WORKITEM_COMPLETE

But in general I do not understand the requirement: Why don't you use the normal deadline functionalitites of the workflow builder? If the user has not done his job within the given deadline, the work item can be set to complete and the workflow can continue...

Regards,

Karri

Former Member
0 Kudos

Hi,

How can I set the worktiem to complete state. Is it possible to give a default decision text while completing a work item.

Our requirment says when our approver does not approve for a period say 2 days, by default we have to take it as approve and continue with the process.

Regards,

Viven.

Former Member
0 Kudos

Hello,

This may not be the only solution but think it should work.

1. Assign a terminating event to the step you want to have a deadline monitor ( The approval step ?? ).

Create this event new in your business object and make sure it is not triggered from any other place.

2. In the Deadline modeled path which you already set for two days - trigger the event you assigned in step 2.

So the approval step, when past two days will execute the deadline path and triggers the event which in turn would complete the approval step.

Hope it helps.

Uday

Former Member
0 Kudos

Uday's proposal is helpful. You can also make the approval decision step as Obsolete by activating the Processing Obsolete outcome and then setting a container element that gets set only you approve the request. This means if someone approves bu decision task this Container element should be set with a value that is equal to the value that is getting set by the container operation at deadline.

Thanks

Arghadip

Answers (0)