
You can extend My Leave Requests according to your business needs for different aspects. For this purpose, the following extensibility options are available:
Extending all the views
You can hide fields in all the views, that is, Main view (S1), History view (S3, S6B), and Entitlements (S2).
You can add additional fields in all views.
Extending the master view
You can add additional attributes in list item on the Master screen (S3).
S3 view is extended using S3.controller.js.
For more information on migration from SAP Fiori principal apps for
SAP ERP 1.0 to SAP Fiori for SAP ERP HCM
1.0, see SAP Note 2112514
.
In addition, any of the complete views can be replaced by your own view.
To hide or add additional fields in the main view, the following extensibility entities are available on the different software layers. You have to extend each of these entities according to your specific business needs:
|
UI |
Back End/ABAP |
|||
|---|---|---|---|---|
|
View |
Extension Point |
Design Time: Gateway Entity |
Design Time: Extension Include (in DDIC Structure) |
Runtime: Superclass/ Method to Be Redefined |
|
S1.view.xml |
extS1Field |
LEAVEREQUEST V2 |
/GBHCM/S_ELR_LEAVE_ REQU_INCL |
Superclass: /GBHCM/CL_MGW_RDT_ELR_V2 Method: GET_ENTITYSET_LEAVEREQUEST |
|
/GBHCM/S_ELR_ABS_TYPE_ V2_INCL |
Superclass: /GBHCM/CL_MGW_RDT_ELR_V2 Method: GET_ENTITYSET_ABSENCETYPE |
|||
|
/GBHCM/S_ELR_APPROVER_ INCL |
Superclass: /GBHCM/CL_MGW_RDT_ELR_V2 Method: GET_ENTITYSET_APPROVER |
|||
|
/GBHCM/S_ELR_WORK_SCHED _INCL |
Superclass: /GBHCM/CL_MGW_RDT_ELR_V2 Method: GET_ENTITYSET_WORK_SCHEDULE |
|||
|
/GBHCM/S_ELR_WS_LEGEND _INCL |
Superclass: /GBHCM/CL_MGW_RDT_ELR_V2 Method: GET_ENTITYSET_WS_LEGEND |
|||
To hide or add additional fields in the History view, the following extensibility entities are available on the different software layers. You have to extend each of these entities according to your specific business needs:
|
UI |
Back End/ABAP |
|||
|---|---|---|---|---|
|
View |
Extension Point |
Design Time: Gateway Entity |
Design Time: Extension Include (in DDIC Structure) |
Runtime: Superclass/ Method to Be Redefined |
|
S6B.view.xml |
extS6BIconTab |
LEAVEREQUEST V2 |
/GBHCM/S_ELR_LEAVE_ REQU_INCL |
Superclass: /GBHCM/CL_MGW_RDT_ELR_V2 Method: GET_ENTITYSET_LEAVEREQUEST |
|
extS6BHeaderField |
LEAVEREQUEST V2 |
/GBHCM/S_ELR_LEAVE_ REQU_INCL |
Superclass: /GBHCM/CL_MGW_RDT_ELR_V2 Method: GET_ENTITYSET_LEAVEREQUEST |
|
To hide or add additional fields in the Entitlements view, the following extensibility entities are available on the different software layers. You have to extend each of these entities according to your specific business needs:
|
UI |
Back End/ABAP |
|||
|---|---|---|---|---|
|
View |
Extension Point |
Design Time: Gateway Entity |
Design Time: Extension Include (in DDIC Structure) |
Runtime: Superclass/ Method to Be Redefined |
|
S2.view.xml |
extS2ColItem |
LEAVEREQUEST V2 |
/GBHCM/S_ELR_TIME _ACCOUNT_INCL |
Superclass: /GBHCM/CL_MGW_RDT_ELR_V2 Method: GET_ENTITYSET_TIMEACCOUNT |
|
S2.view.xml |
extS2ColHeader |
LEAVEREQUEST V2 |
ANYSTRING |
ANYSTRING |
Extension Includes
In addition to the extension includes described above, the following extension includes are available:
|
DDIC |
Extension Include |
Use |
|---|---|---|
|
/GBHCM/S_ELR_CONFIGURATION_V2 |
/GBHCM/S_ELR_CONFIG_INCL |
Allows you to extend the Configuration entity. |
|
/GBHCM/S_ELR_FIELDSELECTION_V2 |
/GBHCM/S_ELR_FIELDSELECT_ INCL |
Allows you to extend the Field Selection entity. |
|
/GBHCM/S_ELR_LRQ_ADD_FIELD_V2 |
/GBHCM/S_ELR_LRQ_ADD_FLD _INCL |
Allows you to extend the Leave Request Additional Field entity. |
|
/GBHCM/S_ELR_PICKLIST_V2 |
/GBHCM/S_ELR_PICKLIST _INCL |
Allows you to extend the PickList entity. |
|
/GBHCM/S_ELR_TEAM_CALENDAR_V2 |
/GBHCM/S_ELR_TEAM _CALNDR_INCL |
Allows you to extend the Team Calendar entity. |
|
/GBHCM/S_ELR_TIME_ACCOUNT_V2 |
/GBHCM/S_ELR_TIME _ACCOUNT_INCL |
Allows you to extend the Time Account entity. |
If there are additional fields available in the OData service, you can display these fields on the UI. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation .
UI Controller Hooks
To plug in and execute custom code, the following hooks are available in the controller code:
|
Controller |
Hook |
Use |
|---|---|---|
|
S1.controller.js |
extHookChangeFooterButtons |
Allows you to add and change buttons for the detail view footer |
|
extHookRouteMatchedHome |
Allows you to add UI or business logic |
|
|
extHookRouteMatchedChange |
||
|
extHookClearData |
||
|
extHookInitCalendar |
||
|
extHookTapOnDate |
||
|
extHookSetHighlightedDays |
||
|
extHookDeviceDependantLayout |
||
|
extHookSubmit |
||
|
extHookOnSubmitLRCfail |
||
|
extHookOnSubmitLRCsuccess |
||
|
extHookCallDialog |
Allows you to modify the dialog content |
|
|
S2.controller.js |
extHookTimeAccountCollection |
Allows you to modify the TimeAccountCollection |
|
extHookChangeFooterButtons |
Allows you to add and change buttons for the detail view footer |
|
|
S3.controller.js |
extHookChangeFooterButtons |
Allows you to add and change buttons for the detail view footer |
|
extHookLeaveRequestCollection |
Allows you to modify the LeaveRequestCollection |
|
|
extHookItemTemplate |
Allows you to modify the itemTemplate |
|
|
S6B.controller.js |
extHookDetailView |
Allows you to add or change UI and business logic |
|
extHookChangeFooterButtons |
Allows you to add and change buttons for the detail view footer |
|
|
extHookWithdrawDialogContent |
Allows you to add and change content of withdraw dialog |
If there are additional UI controller hooks available in the controller code, you can add own code. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation .
Display of UI Controls
The following UI controls can be hidden on the app UI:
|
View |
Control ID |
Use |
|---|---|---|
|
S1.view.xml |
S1_page |
Allows to hide the create page content |
|
LRS4_FLX_TOP |
Allows to hide Absence type drop down grid |
|
|
SLCT_LEAVETYPE |
Allows to hide Select drop down menu |
|
|
LRS4_FRM_MAIN |
Allows to hide all content excluding drop down |
|
|
LRS4_FRM_CNT_CALENDAR |
Allows to hide form container of calendar |
|
|
LRS4_FELEM_CALENDAR |
Allows to hide form element of calendar |
|
|
LRS4_DAT_CALENDAR |
Allows to hide calendar |
|
|
LRS4_LEGEND |
Allows to hide calendar legend |
|
|
LRS4_FRM_CNT_BALANCES |
Allows to hide all input elements |
|
|
LRS4_TXT_BOOKEDDAYS |
Allows to hide used balance quantity |
|
|
LRS4_TXT_REMAININGDAY |
Allows to hide available quantity |
|
|
LRS4_LBL_STARTTIME |
Allows to hide Start Time label |
|
|
LRS4_DAT_STARTTIME |
Allows to hide Start Time Input |
|
|
LRS4_LBL_ENDTIME |
Allows to hide End Time label |
|
|
LRS4_DAT_ENDTIME |
Allows to hide End Time Input |
|
|
LRS4_NOTE |
Allows to hide Note Input Grid (Input and label) |
|
|
LRS4_LBL_NOTE |
Allows to hide Note Input Label |
|
|
S2.view.xml |
LRS2_LISTITEM |
Allows to hide ColumnListItem |
|
LRS2_LIST_ITEM_ACCOUNT |
Allows to hide Time account Name |
|
|
LRS2_LIST_ITEM_END_DATE |
Allows to hide End date |
|
|
list |
Allows to hide master list |
|
|
LRS6B_HEADER |
Allows to hide object header |
For more information about hiding UI controls, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation .
For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation .