Changing runtime ABAP classes in SAP SRM UI ADD On 1.0
SAP SRM UI add on offers a great possibility of replacing standard data provider classes for ODATA services with custom classes. This may be needed to modify entire logic which is delivered as a standard.
If you see design of ODATA services in detail then you will notice that almost all ODATA services in SAP SRM UI ADD ON are routed to a BASE class and using factory class the right API is determined which need to be called, so here the product has offered a BADI which help us to influence this factory here and replace standard API with custom API.
There could be several use cases like fetching delivery addresses or changing entire search behavior , here you need to write custom logic and plug-in your API’s to SAP SRM UI add on.
To do so you need to implement following BADI
here please note the highlighted method ” GET_RUNTIME_OBJECT” :-
Implement this BADI method and return the reference of your custom class. Implement this new custom class in almost same manner as an existing class which you are about to replace like this.
so your new custom class also should implement interface /IWBEP/IF_MGW_APPL_SRV_RUNTIME
Any questions/feedbacks welcome at email@example.com..