App Extensibility: My Timesheet (Version 1)Locate this document in the navigation structure

Use

You can extend My Timesheet according to your business needs for different aspects. For this purpose, the following extensibility options are available:

  • Extending the Week Entry view

    • You can add a new column in the Week Entry view.

  • Extending the Create Entry view

    • You can add a new field in the Create Entry view.

Note
  • 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 Information published on SAP site.

  • In addition, any of the complete views can be replaced by your own view.

Extending the Week Entry view

To add a new column in the Week Entry view of the app, 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

S3.view.xml

extS3Column

SRA002_TIMESHEET_SRV

SRA002_S_TIMEDATA_ENTITY_INCL

Superclass: CL_SRA002_TIMESHEET_DPC

Method: TIMEDATALIST_GET_ENTITYSET

SRA002_S_WORKCAL_ENTITY_INCL

Superclass: CL_SRA002_TIMESHEET_DPC

Method: WORKCALENDARS_GET_ENTITYSET

Extending the Create Entry view

To add a new field in the Create Entry view of the app, 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

S31.view.xml

extS31FormElement

SRA002_TIMESHEET_SRV

SRA002_S_PROFILE_ENTITY_INCL

Superclass: CL_SRA002_TIMESHEET_DPC

Method: PROFILEFIELDS_GET_ENTITYSET

SRA002_S_WORKLIST_ENTITY_INCL

Superclass: CL_SRA002_TIMESHEET_DPC

Method: WORKLISTCOLLECTI_GET_ENTITYSET

Further Extensibility Entities

Extension Includes

In addition to the extension includes described above, the following extension includes are available:

DDIC

Extension Include

Use

SRA002_S_INITIALINFO

SRA002_S_INITIALINFO_INCL

Allows you to extend the Initial Info entity.

SRA002_S_SUMMARY

SRA002_S_SUMMARY_INCL

Allows you to change the summary information on app tile of the Fiori Launchpad.

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

S2.controller.js

extHookCalendarMonthChange

Allows you to add UI or business logic

extHookGetUserInfo

extHookGetTimeSheetCalendar

extHookUpdateData

S3.controller.js

extHookReleaseEntriesSummary

Allows you to add UI or business logic

extHookOnSubmit

extHookOnItemSelect

extHookUpdateData

extHookGetTimeSheetCalendar

extHookLoadList

extHookUpdatePageData

S31.controller.js

extHookOnSuggestedInputHelp

Allows you to add UI or business logic

extHookOnInputHelp

extHookUpdateData

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.

Display of UI Controls

The following UI controls can be hidden on the app UI:

View

Control ID

Use

S3.view.xml

WEEKLY_CALENDAR

Allows you to hide the Calendar entity

MTS3_SUMMARY_GRID

Allows you to hide Summary Headers

ENTRY_LIST_CONTENTS

Allows you to hide Table

LEGEND

Allows you to hide Calendar Legends

S31.view.xml

weeklyCalendar

Allows you to hide Calendar

createFormTitle

Allows you to hide Time Entry Form

accountingInfoPanel

Allows you to hide Panel to display the accounting info

editBtn

Allows you to hide Edit Favorites Button

updateBtn

Allows you to hide Edit Favorites Button

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 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 Hiding UI Controls 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.