Hello!
I have two gateway services (called here as "SRV_A" and "SRV_B) created using SEGW (none of them are SAP standard services). Version is SAP_GWFND 7.40 SP 8.
SRV_A has a few Entity Sets and some navigations between them.
SRV_B has other entity sets and some navigations between them.
SRV_B has SRV_A as a model reference. So, everything defined in SRV_A can be used in SRV_B as well. So, I have a composed model.
Now I want to navigate from one Entity Set defined in SRV_A to another one defined in SRV_B.
I understand that as my principal entity set is defined in the referenced model, an external association between them doesn't solve my problem. (I don't want to set SRV_B as a model reference in SRV_A).
In other words, it's not possible to create a navigation property in SRV_A for a external association defined in SRV_B.
Official help page says that. /IWBEP/IF_MGW_ODATA_MODEL - SAP NetWeaver Gateway - SAP Library
It is currently not possible to define navigation properties for entities of included data models.
I tried to redefine MPC class to do what is written on SAP Gateway Foundation (SAP_GWFND) - SAP Librarybut all code on this page is already done inside MPC super class.
Then I found a SPRO path called "Create badi implementation for model composition".
I created the Badi implementation for /IWFND/BD_MGW_MDL_COMPOSITION. I included every kind of possible breakpoint inside /IWFND/IF_MGW_MDL_COMPOSITION~RESOLVE_NAVIGATION but no success. My Badi implementation is active.
This badi has filters. I am not sure which filter value I should use as there is no documentation about that. But also without setting filter values there was no success.
At the moment my Badi implementation has nothing related to my gateway services and I really would appreciate some help regarding how to do that.
Thanks!