Show TOC

App Extensibility: Approve Timesheets (Version 1)Locate this document in the navigation structure

Use

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

  • Extending the Details view

    • You can hide fields in the header section on Details screen.

    • You can add additional fields in the header section on Details screen.

    • You can extend the table in the Details screen.

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 Details view

To hide or add additional fields in the header section of the Details screen, 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

extS3Header

SRA010_TIMESHEET_APPROVAL_SRV

SRA010_S_TIME_PENDING_INCL

Superclass: CL_SRA010_TIMESHEET_AP_DPC_EXT

Method: TIME_PENDING_GET_ENTITYSET

SRA010_S_REJ_REASON_INCL

Superclass: CL_SRA010_TIMESHEET_AP_DPC_EXT

Method: REJ_REASON_GET_ENTITYSET

To extend the table in the Details screen, 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

extS3Table

SRA010_TIMESHEET_APPROVAL_SRV

SRA010_S_TIME_PENDING_INCL

Superclass: CL_SRA010_TIMESHEET_AP_DPC_EXT

Method: TIME_PENDING_GET_ENTITYSET

SRA010_S_REJ_REASON_INCL

Superclass: CL_SRA010_TIMESHEET_AP_DPC_EXT

Method: REJ_REASON_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

SRA010_S_SUMMARY

SRA010_S_SUMMARY_INCl

Allows you to change the summary information on the 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

extHookDisplayEmployeeList

Allows you to add UI or business logic

extHookDisplayCostAssignmentList

S3.controller.js

extHookShowWeekData

Allows you to add UI or business logic

extHookShowPeopleData

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.