Hi,
I'm beginner consumming BEx Queries in Sap Netweaver Gateway, my scenario is the following:
I have one ERP where I created the service (in SEGW), I redefined the service following this tutorial:
Transform SAP BW Queries into OData Service: Part 1 - Generation and Activation
All seems to be OK when I clicked on "Generate Runtime Objects", all classes compiled with no errors.
My SAP Netweaver Gateway is in another machine, so I went to Service Maintenance in my services packet and I registered it in my GW, I created
an Alias to my BI Machine (Where the BEx queries are) in the same service packet and I tried to consume it clicking on 'Maintain'.
The first error I get at this point is the metadata of the service is not loaded correctly.
The error that I get when I tried to consume the ODATA is the following:
/IWFND/MED039 Model Z_XXXXX_XXXXX contains errors.
Please contact Administrator.
See SAP Note 1797736 for error analysis.
If I don't point to this alias and let the same machine where the service is as the alias, I get an error in Gateway that says: Cannot find the query XXXX/XXXXXXX in the system.
The schema of the scenario is the following:
*BI* (Where the data is and BEx Queries are created) <-----> *ERP* (where the service is located) <-----> *GW* (Where the ODATA are published)
I tried it in another development environment that we have, where the GW is in the same machine as the Backend. I followed the same method and I
connected to the same BI Server of the main scenario with RFC and then there are no errors, I can consume correctly the ODATA published and I
can see data of BI BEx Queries.
Thank you very much.
Carlos.