Skip to Content
0
Feb 17, 2010 at 03:58 PM

Retrieve UWL Items by User

47 Views

I am using the following RFC to attempt to retrieve active workflow items for a user:

SAP_WAPI_COUNT_WORKITEMS

Here I am setting the user_id and detail level as 2. This returns a list of the number of workitems by task code in the return structure WORKITEMS_PER_TASK.

My question is this, for each entry in the WORKITEMS_PER_TASK table, how can I get a list of the Workitems that make up the total being displayed? I tried SAP_WAPI_WORKITEMS_BY_TASK, but I get a list of workitems much larger than the number displayed from SAP_WAPI_COUNT_WORKITEMS.

Can anybody help me get these workitems?

If there is a better way to do this, I'm all ears :). Basically my goal is to retrieve a list of workitems (including related task code) for a user within a given date range. So if the user selects 01/01/2009 through 12/31/2009, they would get all workitems in their inbox that are due in the year 2009.

Thanks in advance.

Edited by: Tom Cole on Feb 17, 2010 6:04 PM