Show TOC

App Extensibility: Approve Service Entry SheetsLocate this document in the navigation structure

Use

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.

Extensibility Options

Extension Points

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

  • For the detail screen

    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

    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 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, you can use the following UI controller hooks:

Hook

Use

sap.ca.scfld.md.controller.ScfldMasterController~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.

sap.ca.scfld.md.controller.ScfldMasterController~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 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.

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 Start of the navigation path Materials Management Next navigation step External Services Management Next navigation step Business Add-Ins (BAdIs) Next navigation step BAdI: Changes to Data for App "Approve Service Entry Sheets" End of the navigation path.

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 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.

Additional Extensibility Options

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.

More Information

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.

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.