on 2025 Jan 13 8:49 AM
Hi
I have a cds view that generates a report of work items from the swwwihead and swwuserwi tables. I have already used the field user_id but it has many blanks for the approvers columns. Upon further inspection in SE11 under table SWWUSERWI, it seems that these records do not exist but are present in the SWWWIHEAD table, is this because they are top level work items? If so, how can this be used to pull the actual current approver?
define view Test_Report as select from swwwihead as x
left outer join swwwihead as z on x.wi_id = z.top_wi_id
and z.wi_type = 'W'
and z.wi_stat <> 'COMPLETED'
left outer join swwuserwi as y on z.wi_id = y.wi_id
{
x.wi_id as WorkItemID
y.user_id as Approver
}
Request clarification before answering.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.