Skip to Content

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.

 


 

Overview

Purpose

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.

Solution

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

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. 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

    Martin

    (0) 
  2. 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,

    Alper

    (0) 

Leave a Reply