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.
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 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 |
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 .
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 .
For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation .