cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UserDecision Workitem

former_member184495
Active Contributor
0 Kudos

Hi,

say if I have a UserDecision step.

On reject it goes to next Activity step that has a task which has a method.

Now if I want the workitem-id that got generated in the UserDecusion Step, how do I get it to my next activity step?

I did binding from UserDecision

(_workitem_workitemid -> task_wid)

(wf_wid <- task_wid). On doing this I am getting the PARENT wid and not UserDecision id.

Is something wrong or have to use *worklist FM by passing the task-id (which I dont want to).

Aditya V

Accepted Solutions (0)

Answers (2)

Answers (2)

bpawanchand
Active Contributor

Hi Aditya,

I just tried to create a sample workflow to check if i can get the predecessor work item ID. Yes you can get the previous task work item ID by using the standard business object which is available in the workflow container _PREDECESSOR_WI Previous Work Item

I have the mail body populated with decision step work item ID.

Thanks, Pavan

former_member184495
Active Contributor
0 Kudos

hi PB,

Yes this could be tried.
thanks.

Aditya V

former_member186746
Active Contributor

hi,

Workitem id of workflow step is in _workitem.WorkitemId

Kind regards, Rob Dielemans

former_member184495
Active Contributor
0 Kudos

hi RD,

yes, so is there anything wrong I have done from my end?

because I did the binding as shown above, but am getting the Parent ID in wf_wid and not the workitem id from decision step.

Aditya V

former_member186746
Active Contributor
0 Kudos

Hi,

this should simply work. If you check the workflow log then the current workitem id is in the same container element.

Kind regards, Rob Dielemans