Show TOC

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

Use

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

  • Extending the Master list view

    • You can add additional attributes in list item on the Master screen.

  • Extending the Details view

    • extS3Header

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

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

    • extS3PhoneHeader

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

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

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 Master list view (extS2ListItem)

To add additional attributes in the list items on the Master screen of the app, the following extensibility entities are available on the different 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

S2.view.xml

extS2ListItem

SRA006_SRV

SRA006_PAYSLIP_INCL

Superclass: CL_SRA006_DPC_EXT

Method: PAYSLIPS_GET_ENTITYSET

SRA006_PDFPAYSLIP_INCL

Superclass: CL_SRA006_DPC_EXT

Method: PDFPAYSLIPS_GET_ENTITYSET

Extending the Details view on a desktop (extS3Header)

To hide or add additional fields in the header section on the Details screen of the app, the following extensibility entities are available on the different 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

SRA006_SRV

SRA006_PAYSLIP_INCL

Superclass: CL_SRA006_DPC_EXT

Method: PAYSLIPS_GET_ENTITYSET

SRA006_PDFPAYSLIP_INCL

Superclass: CL_SRA006_DPC_EXT

Method: PDFPAYSLIPS_GET_ENTITYSET

Extending the Details view on a phone (extS3PhoneHeader)

To hide or add additional fields in the header section on the Details screen of the app on your phone, the following extensibility entities are available on the different 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_Phone.view.xml

extS3PhoneHeader

SRA006_SRV

SRA006_PAYSLIP_INCL

Superclass: CL_SRA006_DPC_EXT

Method: PAYSLIPS_GET_ENTITYSET

SRA006_PDFPAYSLIP_INCL

Superclass: CL_SRA006_DPC_EXT

Method: PDFPAYSLIPS_GET_ENTITYSET

Further Extensibility Entities

UI Controller Hooks

To plug in and execute custom code, the following hooks are available in the controller code:

Controller

Hook

Use

S3.controller.js

extHookChangeFooterButtons

Allows you to add and change buttons for the detail view footer

S3_Phone.controller.js

extHookChangeFooterButtons

Allows you to add and change buttons for the detail view footer

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

S2.view.xml

PAYSLIP_MASTER_PAGE

Allows you to hide the create page content

list

Allows you to hide master list

MPS_PER_ASSIGN

Allows you to hide Personnel assignment

S3.view.xml

sapUiFioriObjectPage

Allows you to hide detail page for desktop view

EMPLOYEE_ID

Allows you to hide employee number

EMPLOYEE_POSITION

Allows you to hide Employee Position

MPS_DEDUCTIONS

Allows you to hide deductions

MPS_GROSSPAY

Allows you to hide gross pay

S3_Phone.view.xml

sapUiFioriObjectPage

Allows you to hide detail page for phone

EMPLOYEE_ID

Allows you to hide employee number

EMPLOYEE_POSITION

Allows you to hide Employee Position

MPS_DEDUCTIONS

Allows you to hide deductions

MPS_GROSSPAY

Allows you to hide gross pay

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.