You can extend Approve 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 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 |
|
S3.view.xml |
extMoreInfo1 |
Service:CARTAPPROVAL Entity:SCAHeader |
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 |
|
Service:CARTAPPROVAL Entity:SCAHeader |
|
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.
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 .
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 .
For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation .