cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Gateway Project Extn/Redefinition - Issue with call to extension

jhra_btp
Explorer
0 Kudos

Hi Experts,

We have a common requirement to extend standard SAP gateway project and redefine couple of DPC extension class methods to add some additional logic to the standard one. We could do that, but when we are calling the standard UI5 application, it does not make call extension project DPC classes though we are using the standard OData Service with/without redefinition.

System version: SAP S/4HANA 2022 FPS 02.

To achieve the same, we have extended a standard Gateway Project /SCWM/PACK_OUTBDLV using a Redefine Service option into a custom one ZSCWM_PACK_OUTBDLV. We have generated the classes(DPC, DPC ext, MPC, MPC ext, Model and service) and did not  create any new OData service as we would like to use the standard OData service.

jhra_btp_0-1710705730184.png

 

In the custom DPC extn class, we have redefined the method: VALIDATEACTIONSE_CREATE_ENTITY in to perform some pre and post calculations. 

Now, when I am calling the standard Ui5 project, it does not go into the extended gateway project DPC extension class, it is just going to standard class.

Its a simple requirement, but it does not work as expected. Was searching in SAP help and blogs, there is no information available to solve the issue.

What could be issue here, what am I missed here?

Thank you in advance.

 

Kind regards

jhra_btp
Explorer
0 Kudos
Any updates please
junwu
Active Contributor

1. you have to register the service

2.you have to create ui extension project to update the service model to use the extended odata service.

Accepted Solutions (0)

Answers (0)