Show TOC

App Extensibility: Approve Shopping CartsLocate this document in the navigation structure

Use

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

Extensibility Option 1

To add a customer field to the app, the following extensibility entities are available on the header area and on the shopping cart details screen. 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)

S2.view.xml

extMoreAttr

Service:CARTAPPROVAL

Entity Set:WorkflowTaskCollection

  • /GBSRM/S_APV_SC_AC_INCL

  • /GBSRM/S_APV_SC_AT_INCL

  • /GBSRM/S_APV_SC_HD_INCL

  • /GBSRM/S_APV_SC_IBA_IT_INCL

  • /GBSRM/S_APV_SC_IT_INCL

  • /GBSRM/S_APV_SC_NO_INCL

  • /GBSRM/S_APV_SC_WF_LIST_INCL

S3.view.xml

extMoreInfo1

Service:CARTAPPROVAL

Entity:SCAHeader

Extensibility Option 2

To add a customer field to the app, the following extensibility entities are available on the item details screen. 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)

ItemDetail.view.xml

  • extMoreInfo2

  • extMoreInfo3

  • extMoreInfo4

  • extMoreInfo5

  • extMoreInfo6

Service:CARTAPPROVAL

Entity:SCAHeader

  • /GBSRM/S_APV_SC_AC_INCL

  • /GBSRM/S_APV_SC_AT_INCL

  • /GBSRM/S_APV_SC_HD_INCL

  • /GBSRM/S_APV_SC_IBA_IT_INCL

  • /GBSRM/S_APV_SC_IT_INCL

  • /GBSRM/S_APV_SC_NO_INCL

  • /GBSRM/S_APV_SC_WF_LIST_INCL

Note

The extension includes mentioned above are specific to the Approve Shopping Cart app. For information on extension includes specific to SRM version 7.XX, refer to the relevant extensibility documentation.

Further Extensibility Entities

Business Add-Ins (BAdIs)

The following BAdIs are available for extensibility purposes:

  • /GBSRM/APV_SC_RDP

    You can use this BAdI to extend the data provider class inherited from Gateway.

  • /GBSRM/APV_SC_MDP

    You can use this BAdI to extend the model provider class and define new attributes which can later be displayed on UI.

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

extHook2

Allows you to modify the Approve and Reject buttons

s2.controller.js

extHook4

Allows you to modify search

ItemDetail.contoller.js

extHook3

Allows you to modify the header and footer buttons

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

s3.view.xml

approveBtn

Allows you to hide the approve button

rejectBtn

Allows you to hide the reject button

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.