Skip to Content
0

SAP UserDecision Workitem

Aug 08, 2017 at 01:15 PM

65

avatar image

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

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
2

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.
thanks.

Aditya V

0
Rob Dielemans Aug 08, 2017 at 01:37 PM
1

hi,

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

0

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

0