Skip to Content
Technical Articles

SAP Fiori for request approvals 2.0 – How to extend Task Summary view

In this post I will show you step-by-step how to extend Task Summary view in application My Inbox.

I decided to write this post in reference to question Extending Fiori MyInbox -(Multi-Select) Task Summary screen with addition columns.

The standard screen shows only 3 columns: Task Title, Created By, Due Date.

OData redefinition

I created new OData project in SEGW tcode and redefined standard OData Service (SAP GW). Technical Service Name: /IWPGW/TASKPROCESSING, version: 2.

I extended “Task” Entity Type with 10 custom fields.

After OData generation I redefined ENTITYSET_TASK method in Data Provider Class EXT and provided custom code to fill new fields.

Frontend application extension

I created New Extention Project of CA_FIORI_INBOX application.

I added custom columns and fields to in table in MultiSelectSummaryCustom.view.xml view.

In S2Custom.controller.js controller I changed aSelectProperties as below to select new fields.

In manifest file I added new OData Service as below (multi-origin propertie).

"dataSources": {
   "TASKPROCESSING": {
      "uri": "/uri/service_name;mo/",
      "settings": {
      "localUri": "./localService/metadata.xml"
}}},

In Component.js file I added service config as below.

config: {
   "sap.ca.serviceConfigs": [{
   "name": "service_name",
   "serviceUrl": "/uri/service_name;mo/",
   "isDefault": true,
   "mockedDataSource": "./model/metadata.xml"
}]}

Problems

2421088 – My Inbox : Method ‘QUERY_CUSTOM_ATTR_DEFINITIONS’ not implemented

Solution are described in SAP Fiori 2421088.

Result

In my blog you could learn how to extend Task Summary view in My Inbox application and redefine standard OData Service.

I am looking for your feedback through comments and I hope you enjoyed this blog.

4 Comments
You must be Logged on to comment or reply to a post.
  • Hi Mateusz,

     

    I found your posting very interesting.

     

    I have a question regarding the My Leave Request History view extension.

     

    I have to add additional fields like “Created on/Posting Date”, “…” in the My Leave Request History view.

    Can you please give me some hints or steps how to achieve this?

     

    Kind Regards

    Joanna

  • Hi Mateusz Jarmuzek

     

    I have Implemented as mentioned in this blog, when I executed from WebIDE it is working fine custom fields are taking form the custom ODATA, but when we deploy in Gateway and try to lunch from FLP it is not working it still taking standard ODATA TASKPROCESSING. Any other configuration needs to be done? Please can you help on this..

    Thanks

    Nag

     

  • Hi Mateusz Jarmuzek,

     

    Thanks for blog.

    I followed the blog and done extension of Task Summary view and added one column XXXX.

    But it is still taking standard ODATA TASKPROCESSING, new redefined odata is not executed.

    Thats why it is throwing error “Resource not found for the segment ‘XXXX’.”

     

    Kindly suggest how to fix this issue.

    Thanks