Show TOC

App Extensibility: My Time EventsLocate this document in the navigation structure

Use

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.

Extending Main View

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

     
Extending Update View

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

     
Further Extensibility Entities

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 Start of the navigation path Technology Next navigation step SAP NetWeaver Platform Next navigation step SAP NetWeaver Library: Function-Oriented View Next navigation step Application Server Next navigation step Application Server ABAP Next navigation step Application Development on AS ABAP Next navigation step ABAP Customer Development Next navigation step Enhancement Framework Next navigation step Enhancement Technologies Next navigation step Business Add-Ins (BAdIs) Next navigation step Additional Information End of the navigation path.

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 Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step Extension Points End of the navigation path.

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 Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step UI Controller Hooks End of the navigation path.

More Information

For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori End of the navigation path.