cancel
Showing results for 
Search instead for 
Did you mean: 

select statement failing on SWWWIHEAD table

0 Kudos
731

I am trying to determine the pending agents from SWWWIHEAD table by passing top work item id to top_wi_id field and wi_type = 'W'(Activity) and wi_stat = 'READY', but select statement returning a sy-subrc value of 4. Not able to find the exact reason, could someone help me on this.

View Entire Topic
MaKu
Product and Topic Expert
Product and Topic Expert
0 Kudos

I cannot answer your question directly as I do not know your database content.

However, I suggest to use table SWWUSERWI

0 Kudos

Hi Manuela,

I do have entries in the table that satisfy select where conditions, please find the screenshot below.

0 Kudos

my requirement is that for a request when user clicks on history button he would like to see where the workitem was pending, its series of approvals that were in loop statement of workflow.

My logic is that from SWWWIHEAD i get the top workitem id from current workitem id then from top workitem id i navigate to workitem that is of activity type and status is READY.

Even the SWWUSERWI table have workitem id as key field. So i need to pass workitem id to the table then get the user. To get the workitem id i need to use SWWWIHEAD table, which is failing in my case.