Skip to Content
Author's profile photo James Koefelda

Creating a Custom Fiori Application for Managing Leave Requests

This blog contains the overview section of the document entitled “S4HANA – Manage Leave Requests.pdf“.  The document is a guide for creating a custom solution that allows managers to create a leave request on behalf of an employee.

This custom application is an extension of the “My Leave Requests” Fiori application.





The purpose of this document is to describe the required components of a custom Fiori Application called “Manage Leave Requests”, which was built to run on SAP S/4HANA 1511.  These components include:

  • HANA CDS Views
  • Gateway Service Development
  • Launchpad Configuration (LPD_CUST)
  • Launchpad Designer Configuration
  • SAPUI5 Development

The “Manage Leave Requests” application allows managers to create a leave request on behalf of an employee.  Currently, SAP does not deliver a Fiori application that provides this functionality.  In the Fiori Apps Reference Library, there is an application called “My Leave Requests (Version 2)”, which allows employees to create their own leave requests.

Figure 1 – The “My Leave Requests (Version 2)” application

The “My Leave Requests” is the backbone of “Manage Leave Requests”.  In other words, it was  extended to create this new “Manage Leave Requests” application.

Since this application was enhanced for a specfic set of requirements, it will most likely need to be adapted to the the HCM processes of any other implementing customer.  This document and the incuded source code could greatly reduce the effort to build a similar application.


The Manage Leave Requests application

Figure 2 – The “Manage Leave Requests” tile, for the Fiori Launchpad

By design, the functionality of “Manage Leave Requests” is almost identical to the functionality of “My Leave Requests”.  The most signifcant difference is that the new application has an initial screen that allows a manager to select an employee.

Figure 3 – Employee Selection Screen

Once a manager clicks on the name of an employee, then rest of the screens are almost identical to the “My Leave Requests” application.


Figure 4 – Identical Screens – “Entitlements” & “History”

Two small changes were made to the Calendar view.  The first allows the manager to see the name of the employee, which was selected on the initial screen.  The second is a button which allows the manager to return to the employee selection screen.

Figure 5 – Changes made to the “Calendar” view.

It was decided to extend the “My Leave Requests” application, instead of building a “Manage Leave Requests” application from scratch, because of the reduction of effort.  However, extending the “My Leave Requests” application did cause several issues that needed to be addressed.  These issues include:

  • Adjusting “the My Leave Request” logic to not utilize the logged in user
  • Additional authorization requirements

These issues and others will be highlighted in the following sections.


Please see the document entitled “S4HANA – Manage Leave Requests.pdf“, for the full solution.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Abdullah GUNES
      Abdullah GUNES

      Hi James,

      İt's very useful document, i was searching a document like this, it was great chance to me 🙂

      Tanks for sharing.

      Author's profile photo Martin Saigger
      Martin Saigger

      Hi James,

      thanks for sharing the pdf. Would it be possible to share the WebIDE project too? I did not find the mentioned zip file 🙁


      Best regards


      Author's profile photo Boiketlo Maimane
      Boiketlo Maimane

      Hi James


      Thanks for sharing.... where can we find the ZIP file?


      Kind Regards

      Author's profile photo Alper Alp
      Alper Alp

      Hi James,


      very useful blog, thanks for sharing.


      How do you handle it when there are notes or SPs implemented with some changes in the app? And do you also how to realise it with the Version 3 of the Leave Request, because the logik is a bit different an it comes with new services.


      Best Regards,


      Author's profile photo Ananthalakshmi Sankar
      Ananthalakshmi Sankar

      Is there a standard Fiori app available for it by now?

      Author's profile photo Melencia Montes
      Melencia Montes

      Hi James,

      Thank you for this blog. Very helpful.

      Though I noticed that there is a Z API class in Redefined Method: LEAVE_REQ_GET_DEEP_ENTITYSET but there was no definition of it in the document. Also, is it possible to share the mentioned ZIP file?

      Thank you very much.




      Author's profile photo Ammad Zaman
      Ammad Zaman

      Hello Gurus,


      It seems a very useful document but I am unable to download this pdf document. I shall appreciate if someone may provide the correct link.