You can extend Approve Service Entry Sheets according to your business needs for different aspects. For this purpose, the following extensibility options are available:
You can add custom fields at defined extension points.
You can add custom tabs to the icon tab bar at defined extension points.
You can manipulate the standard model at predefined UI controller hooks.
You can enhance the functionality by implementing predefined Business Add-Ins.
You can include custom fields via extension includes.
Extension Points
In addition to the extension entities described above, the following extension points are available:
For the detail screen (view name S3.view.xml)
Extension Point |
Use |
---|---|
extMoreInfo |
Adds additional fields to the information area |
extTabQuantities |
Adds custom tabs to the icon tab bar |
extMoreServiceItemListColumns |
Adds columns to the service line table |
extMoreServiceItemListCells |
Adds cell content to the new columns |
extTaskList |
Adds an additional content at the end of the detail screen |
For the sub detail screen (view name S4.view.xml)
Extension Point |
Use |
---|---|
extMoreInfo |
Adds additional fields to the information area |
extMoreAccountAssignmentListColumns |
Adds columns to the account assignments table |
extMoreAccountAssignmentListCells |
Adds cell content to the new columns |
extMorePackageAssignmentsListColumns |
Adds columns tot the outline hierarchy table |
extMorePackageAssignmentListCells |
Adds cell content to the new columns |
extTaskList |
Adds an additional content at the end of the sub detail screen |
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, you can use the following UI controller hooks:
Hook |
Use |
---|---|
extHookAddOrChangeSortOptions |
Allows you to add new sort options or change the predefined sort options The system calls this method within the initialization of the UI. |
extHookGetSorterForSortOption |
Allows you to change the sort options to determine the sort object or the sort key The system calls this method if you choose the sort option on the UI. |
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 .
Business Add-Ins (BAdIs)
The following BAdI is available for extensibility purposes:
BADI_MMSRV_APPROVAL_APP
You can use this BAdI to enhance the list of fields used during the approval processes, as well as the check of approval and rejection events, and also to skip or replace the standard process triggered from the app Approve Service Entry Sheets in the MM_SES_APPROVE oData service. This BAdI is available in Customizing under .
Extension Includes
The following extension includes are available to add custom fields to database structures in your back-end system:
Extension Includes |
Use |
---|---|
MMSES_APV_ACCOUNTING_INCL |
Adds custom fields related to accounting information |
MMSES_APV_HEADER_DETAIL_INCL |
Adds custom fields related to the service entry sheet header |
MMSES_APV_ITEM_DETAIL_INCL |
Adds custom fields related to the service lines |
MMSES_APV_PACKAGE_INCL |
Adds custom fields related to the outline information |
MMSES_APV_WORKITEM_INCL |
Adds custom fields related to the worklist |
After you have included custom fields into the database structures, you have to enhance the OData service SES_APPROVAL_SRV with the service builder and include the new fields on the UI via the extension points.
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 .
In addition, you can use the following extensibility options:
You can hide all UI controls which have a tag ID assigned.
You can display custom texts on the UI by replacing the i18n-file.
You can hide a standard application view and add a custom view.
You can use custom OData services by enhancing existing OData services with the service builder.
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 .
For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation .