cancel
Showing results for 
Search instead for 
Did you mean: 

Filter Query for same standard task BWF in MyInbox Fiori

0 Kudos

Hi Gurus,

We have come to a quite specific issue regarding the retrieval of tasks in standard app myInbox.

Current situation:

2 different workflows with different config and purposes.

1 system alias where both WFs have been customized.

In both WFs, User decision tasks use standard task: TS00008267 General decision task and this step is the one to be approved from sap Fiori.

In fiori, we have 2 tiles Myinbox: One for approval of workitems of the 1st WF and another for the approval of Workitems of the 2ns one.

This is our scenario configuration:

Both scenario have the Same Standard task assigned:

The issue comes when retrieving tasks at Fiori level. Both tiles give the same response, same tasks, which is quite logic taking into consideration that they read the same task. But we tried to filter the query from the Service URL as follows:

/sap/opu/odata/IWPGW/TASKPROCESSING;v=2;o=SAP_ECC_PGW/TaskCollection/$count/?$filter= ( Status eq 'READY' or Status eq 'RESERVED' or Status eq 'IN_PROGRESS' or Status eq 'EXECUTED' ) and  TaskDefinitionIDExt eq 'TS00008267_WS90500025_0000000160'


But the system is throwing following error:


I guess the request is not correctly made, but we have tried lots of syntax combinations without finding the correct one.


Is there any string we can build to filter different workitems from the same standard task?


thank you in advance.



Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

An easy solution is that you can copy the TS00008267 to custom TS9XXXXX.

If you can not take an easy solution, you need to find a way like your are trying
TaskDefinitionIDExt eq 'TS00008267_WS90500025_0000000160'

Regards,

Masa / SAP Technology RIG

0 Kudos

Hi Masayuki,

Thank you, we decided to copy estandard task to custom and it works fine.

If anyone has any clue about the correct syntax for the query i will appreciate the input.

thank you.

Answers (0)