SAP SRM User Interface Add-on 1.0 is one of the first few transactional applications by SAP which is built over HTML5 and ODATA technology, Application is built to cater needs of a casual and semi-professional user while creating shopping carts in SRM.
Application contains many HTML5 views and it is built in a way that user can easily search for items and add to cart and order, but also in case if some users they need to get into details of line items than application offers a possibility to go into details . As application contains many views so there was a need of strong extensibility framework which could be used by customers to address their specific business needs.
Extensibility in SAP SRM User Interface Add-on 1.0 is offered in two ways:-
Controls which could be added with this approach are
To maintain customizing you need to follow SPRO path: SAP Supplier Relationship Management-->SAP SRM User Interface Addon 1.0 -->Extension and field Control-->Configure extension and Field Controls
Here you will see a dialog structure like this :-
To give some brief information here,
2. Another Extensibility approach which is very useful is Custom JS/CSS approach, here customer can write their own JavaScript/CSS files and they can inject this code into standard application by help of simple ABAP customizing, here consultants should have JavaScript/CSS knowledge, this is a very useful for branding of application, changing complete look and feel, adding new views, hiding controls, this extensibility feature is very strong in itself and it opens application completely to consultants to enhance it. This feature should be used carefully.
Here are some steps which need to be followed to achieve this
function CUSTOM_POST_EXIT(methodName, view, controller, methodSignature){
if (sap.ui.getCore().byId('searchPC')) {
sap.ui.getCore().byId('searchPC').setVisible(false);
sap.ui.getCore().byId('searchPCDesc').setVisible(false);
}
} .
As explained customer can create multiple files and specify path in SPRO, Please note that either you keep a single implementation of CUSTOM_POST_EXIT and CUSTOM_PRE_EXIT and route calls to various methods which are placed in different custom BSP pages or if you have a use case where you need to have multiple implementation of these methods then you need to use prototype property in JavaScript and implementation need to change little bit like this :-
CUSTOM3 = function ()
//with same name as the file name
}
CUSTOM3.prototype.CUSTOM_POST_EXIT = function(methodName, view, controller, methodSignature){
if (sap.ui.getCore().byId('searchPC')) {
sap.ui.getCore().byId('searchPC').setVisible(false);
sap.ui.getCore().byId('searchPCDesc').setVisible(false);
}
}
Note: - Please ensure that object name here CUSTOM3 is name of BSP page fragment.
Feedback/suggestions/questions are welcome
Anuj Goyal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |