Show TOC

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

Use

You can extend the My Paystubs app 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 extensibility entities listed below 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

S2.view.xml

extS2ListItem

HCM_MY_PAYSTUBS_SRV

HCM_S_PAYSTUB_INCL

Superclass: CL_HCM_MY_PAYSTUBS_DPC_EXT

Method: PAYSLIPS_GET_ENTITYSET

HCM_S_PDFPAYSTUB_INCL

Superclass: CL_HCM_MY_PAYSTUBS_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 extensibility entities listed below 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

HCM_MY_PAYSTUBS_SRV

HCM_S_PAYSTUB_INCL

Superclass: CL_HCM_MY_PAYSTUBS_DPC_EXT

Method: PAYSLIPS_GET_ENTITYSET

HCM_S_PDFPAYSTUB_INCL

Superclass: CL_HCM_MY_PAYSTUBS_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 extensibility entities listed below 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_Phone.view.xml

extS3PhoneHeader

HCM_MY_PAYSTUBS_SRV

HCM_S_PAYSTUB_INCL

Superclass: CL_HCM_MY_PAYSTUBS_DPC_EXT

Method: PAYSLIPS_GET_ENTITYSET

HCM_S_PDFPAYSTUB_INCL

Superclass: CL_HCM_MY_PAYSTUBS_DPC_EXT

Method: PDFPAYSLIPS_GET_ENTITYSET

Further Extensibility Entities

Business Add-Ins (BAdIs)

The following BAdIs are available for extensibility purposes:

  • BAdI for My Paystubs(HCM_B_PAYSTUBS)

    You can use this BAdI to calculate the Net pay, Gross pay, and Deductions for a particular payslip.

  • BAdI Definition for Employee Assignments(HCM_B_EMPLOYEE_ASSIGNMENT)

    You can use this BAdI to retrieve the employee's assignment information (for employees who are concurrently employed).

For more information on implementing the BAdIs in the context of enhancement concept, see SAP Library for BAdIs Embedded in the Enhancement Framework under Start of the navigation path Technology Next navigation step SAP NetWeaver Platform Next navigation step SAP NetWeaver Library: Function-Oriented View Next navigation step Application Server Next navigation step Application Server ABAP Next navigation step Application Development on AS ABAP Next navigation step ABAP Customer Development Next navigation step Enhancement Framework Next navigation step Enhancement Technologies Next navigation step Business Add-Ins (BAdIs) Next navigation step Additional Information 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

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

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.

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.