Show TOC

App Extensibility: My Shopping CartLocate this document in the navigation structure

Use

You can extend My Shopping Cart app 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 the product 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)

S3.view.app.xml

extMoreInfo1

Service: SHOPPING_CART

Entity: Shoppingcart

/SRMNXP/INCL_CUS_MINISC_HDR

Extensibility Option 2

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

ShoppingcartCheckout.app.xml

extMoreInfo2

Service: SHOPPING_CART

Entity: ShoppingcartItem

/SRMNXP/INCL_CUS_MINISC_ITM

Additional Extensibility Entities

Business Add-Ins (BAdIs)

The following BAdIs are available for extensibility purposes:

  • /SRMNXP/BD_CHANGE_DATA

    You can use this BAdI to modify the data that you want to display on the UI.

  • /SRMNXP/BD_ENHANCE_MODEL

    You can use this BAdI to enhance the gateway service model and add fields to the UI.

UI Controller Hooks

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

Controller

Hook

ShoppingCartCheckout.controller.js

  • onDataReceived1

  • onDataReceived2

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.

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.