You can extend Track Shopping Carts according to your business needs for different aspects. For this purpose, the following extensibility options are available:
To add a customer field to the app, the following extensibility entities are available on the shopping cart header and 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: ORDERTRACK_SERVICE Entity: OrderTrack |
|
S3.view.xml |
extMoreInfo |
Service: ORDERTRACK_SERVICE Entity: OrderTrackItem |
|
To add a customer field to the app, the following extensibility entities are available on the shopping cart 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 |
extMoreInfo |
Service:SRMSHOPPING_CART Entity:SRMShoppingCartItemData |
|
The extension includes mentioned above are specific to the Track Shopping Cart app. For information on extension includes specific to SRM <release> and SRM UI Add-On 1.0, refer to the relevant extensibility documentation.
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 be use this BAdI to enhance the Gateway service models 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 |
Use |
---|---|---|
S2.controller.js |
extHook1 |
Allows you to modify or add fields to the list of shopping carts displayed |
extHookInit |
Allows you to modify the filters used to retrieve shopping carts |
|
S3.controller.js |
extHook2 |
Allows you to modify or add fields related to the general information of a shopping cart |
ItemDetail.controller.js |
extHook3 |
Allows you to modify or add fields related to the item details of a shopping cart |
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 .
For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation .