You can extend the My Time Events app according to your business needs for different aspects. For this purpose, the following extensibility options are available:
Extending main view
You can add or hide input fields for creating a time event. In addition, you can add additional UI fields as appropriate.
Extending update view
You can add or hide input fields for updating a time event. In addition, you can add any UI fields as appropriate.
To add or hide input fields for creating a time event, the extensibility entities listed below 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 |
extS1InputFields |
TimeEvent |
HCM_S_CICO_TIME_EVENT_INCL |
Superclass: CL_HCM_CICO_MANAGE_DPC_EXT Method: TIMEEVENTSET_CREATE_ENTITY |
S1.view.xml |
extS1Field |
To add or hide input fields for updating a time event, the extensibility entities listed below 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 |
extS2InputFields |
TimeEvent |
HCM_S_CICO_TIME_EVENT_INCL |
Superclass: CL_HCM_CICO_MANAGE_DPC_EXT Method: TIMEEVENTSET_UPDATE_ENTITY |
S2.view.xml |
extS2Field |
Business Add-Ins (BAdIs)
The following BAdIs are available for extensibility purposes:
HCM Fiori Clock In/Out Create Page UI Customizations (HCM_B_CICO_CREATE_CUST)
You can use this BAdI to control the visibility of UI fields such as Event Time, Approver and Note for Approver in the main view.
BAdI Definition for Employee Assignments(HCM_B_EMPLOYEE_ASSIGNMENT)
You can use this BAdI to retrieve the employee's assignment information (for employees who are concurrently employed).
For more information on implementing the BAdIs in the context of enhancement concept, see SAP Library for BAdIs Embedded in the Enhancement Framework under .
Extension Includes
In addition to the extension includes described above, the following extension includes are available:
DDIC |
Extension Include |
Use |
---|---|---|
HCM_S_CICO_ATTABS_REASON |
HCM_S_CICO_ATTABS_REASON_INCL |
Allows you to extend the Att./Absence reasons entity |
CM_S_CICO_CONFIGURATIONH |
HCM_S_CICO_CONFIGURATION_INCL |
Allows you to extend the configuration entity |
HCM_S_CICO_EMPLOYEE |
HCM_S_CICO_EMPLOYEE_INCL |
Allows you to extend the Employee entity |
HCM_S_CICO_MESSAGE |
HCM_S_CICO_MESSAGE_INCL |
Allows you to extend the message entity |
HCM_S_CICO_TIME_EVENT |
HCM_S_CICO_TIME_EVENT_INCL |
Allows you to extend the time event entity |
HCM_S_CICO_TIME_EVENT_TYPE |
HCM_S_CICO_TIME_EVENT_TYP_INCL |
Allows you to extend the time event type 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 create view footer |
extHookCreatePostObject |
Allows you to add and change post object content |
|
extHookOnCreate |
Allows you to change business logic on click of create |
|
extHookOnDelete |
Allows you to change business logic on click of delete |
|
extHookOnChangeOfDate |
Allows you to change business logic on change of date |
|
S2.controller.js |
extHookChangeFooterButtons |
Allows you to add and change buttons for the update view footer |
extHookCreatePostObject |
Allows you to add and change post object content |
|
extHookOnUpdate |
Allows you to change business logic on click of update |
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 .
For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation .