Skip to Content

SAP UserDecision Workitem

Aug 08, 2017 at 01:15 PM


avatar image


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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Pavan Bhamidipati Aug 09, 2017 at 10:04 AM

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

114.png (20.7 kB)
115.png (23.1 kB)
116.png (24.5 kB)
Show 1 Share
10 |10000 characters needed characters left characters exceeded

hi PB,

Yes this could be tried.

Aditya V

Rob Dielemans Aug 08, 2017 at 01:37 PM


Workitem id of workflow step is in _workitem.WorkitemId

Kind regards, Rob Dielemans

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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



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