on 06-09-2015 11:50 AM
Hi Experts,
Let me first explain how my landscape look like
1)Front Server (GW_CORE,IWBEP,IWFND)
2)Backend ECC 6.0
i.e we have a HUB Deployment.
>> I have created an odata service in Frontend where it internally calls the an RFC Function in Backend
>>As i stated above my service implementation is done in Front End Server.
In Step 5 of the above document i have given the Names space as SAP because my service resides in sap/opu/odata/sap (But in the document example its a flight sample where service is under iwbep namespace)
In Step 9 while integration and deploy i have done the same 'SAP' as the namespace.
After following every step and successfully execuitng it,i opened the 'Service Document' with below screen shots
I was successful in viewing every Collectin within the service.But when in did a Query operation by appending the the entity set with the URl it threw below error.
Pls help me with a solution ..... or guide me in a proper direction.
NB:I getting the result while execute the OData URL Directly.
Regards,
Vishnu
Hi Vishnu,
so if I understood things correctly, you have built an OData service on your SAP Gateway hub server, reading data via RFC connection from different other SAP backend systems.
First question:
Do you need to do this? Are the other backend systems too old to have the SAP Gateway backend enablement installed? If this is not the case, it would be advisable to build the service directly in the backend systems. Then you could connect to these systems like you are trying to do using the Integration Gateway in SMP. Then you could get rid of the extra Gateway hub installation and save the operating cost for an additional server.
So let's assume you need to stick with your current setup. Then you have two options:
Option 1: You don't need to integrate your OData service with other data sources (like JDBC, REST, JPA, SOAP)
If this is the case, then your best option would be to directly register the OData service coming from your SAP Gateway hub as backend URL in an application in your SMP Admin cockpit.
Option 2: You need to integrate your OData service with other data sources (like JDBC, REST, JPA, SOAP)
In this case you would model the entity sets coming from your SAP Gateway service (coming from the hub), as well as the entity sets coming from the other data sources in eclipse with the SAP Mobile Platform tools.
Then you would need to treat the SAP Gateway service coming from the Hub as REST data source NOT as ODC data source. The ODC data source is only used for services registered under the iwbep node. You can find more information on working with the REST data source here:
For the other entity sets coming from other data sources, you would need to assign these other respective data sources. You can find more information in this tutorial:
I hope this helps.
Kind regards
Björn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bjoern,
I have a little bit confusion.
The ODC data source is only used for services registered under the iwbep node.
From this Document ...i have noted something ...
In tutorial they used ZGWSAMPLE_SRV
But i cud find out that in ES1 sytem the service resides under SAP node.
I dont know whether i am looking at proper node....
anyway i am trying all options that i have and correct me if i am wrong... i am a newbee(days old) to SMP and its too interesting.
Regards,
Vishnu
Hi JK,
The document that u shared was very resourceful.....that just took away most of my confusions..
IWBEP Exposure:(Let me explain what i understood from the document..correct me if i am wrong)
I understood that my current ZMFW_GR_POLIST_SRV cannot be consumed in SMP IGW because my service implementation is done in HUB and its calling an RFC FM resides in a lower backend.
And i have one more landscape which is HUB Deployment but SAP_GWFND installed in front end(NW 7.4) and backend(IDES NW 7.4)
System Id Server (This is for your correct understanding of my landscape)
GW1 Front-End
EC1 Backend
According to my understanding service registered in GW1 cannot be consumed as ODC
but if i implement a service in EC1 it can readily consumed(i.e i should register in EC1 )(Since IWBEP component is present in EC1 ).
i.e my Destination URL should be :
https://mybackendsytemsdomain.com:<port>/sap/iwbep?sap-client=<my client id>
right???
I do have yet another concern:
Since in my new lanscape GW1 and EC1 is NW 7.4 they have IWBEP component pre-delivered...
So that even my HUB System can be connected and consumed(If i implement my service in GW1).
would like your valuable inputs.
Regards,
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishnu,
it should also be possible to connect to the Gateway hub implementation via ODC, even though I have not tried this. You probably would need to activate the iwbep node in the SICF transaction.
If you want to use the ODC connection, then you are right, the destination always needs to point to https://mybackendsytemsdomain.com:<port>/sap/iwbep?sap-client=<my client id>
Then you can register the service in the gateway cockpit on the the SMP server.
Once this service is working (this is important!), you can start to build your integration / mash up in the SAP Mobile Platform tools in Eclipse.
So you would model the same entity set, and then assign the ODC data source to this service. When you assign the data source, you specify the name of the Gateway service, the namespace as it appears in the Gateway cockpit. Then you can model and assign the remaining entity sets in eclipse.
I am not quite sure at which point you are failing currently, as so many different services were mentioned in this thread.
Kind regards
Björn
Hi Bjoern,
The service 'ZMFW_GR_POLIST_SRV' that i mentioned in my reply was implemented in a HUB System that internally calls a RFC Function Module that resides in 700 sytem.This was the reason why i couldnt get data in IGW.
But after reading this document
i took another landscape that i mentioned in my previous reply(GW1 and EC1).
Here i connected my GW1 instance(7.4) and registered a Service that calls a function that resides in the same server .i.e GW1.And with gods grace it worked...!!!!!.Thanks to and you guiding me in a proper direction.
Regards,
Vishnu
HI Vishnu,
I has face the same problem, please check Eclipse IDE and create your project with Target Runtime SMP3.0 SP07.
If SMP3.0 SP07 is not available in target Runtime, Please go "Eclipse IDE->Help->check for update" to update the SAP development tools.
Then setup the Data source for EntitySet for your oData project and deploy to the SMP server.
Hope it help.
Regards
Choong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Björn,
Most of the backend systems connected are too 700 systems and below that.And we are using the gateway front end system to connect to multiple backends that runs different NW Versions.
Our requirements is to connect with Data coming from Lotus notes and NW Gateway.So i hope that with your valuable inputs i should go with Option 2.
Let me read all the docs that you have shared and i will update my status ASAP.
Pavel.
According the Basis guy the patch level is 0.Let me clarify it with him once more and let u knw the status.
Regards,
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishnu,
You reference SMP 3.0 SP07 - just a thought, what patch level are you on? There is Patch 03 available as of few days ago, would be good to test with that.
FYI: I just tried the publically available SAPES1 Netweaver Gateway instance from the tutorial, with a service in SAP namespace, and with the same namespaces as you have it set up, and it worked for me. Specifically I tried ZPRODUCT_SRV service there. Just to confirm, in register service dialog, I saw this service has blank namespace, in Eclipse I used namespace SAP in all dialogs, and it worked. So the same as with your custom service namespace i think.
Kind regards,
Pavel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavel,
Below is screen for the direct GW Url.
May be i think(I am not sure) SAPES1 is embedded deployment so the FM resides in the same server.
But in my case the FM resides in ECC where my GW Service calls it with RFC Destination.
'(Function call failed; could not find the function Z_MFW_MIGO_UI5_PO_LIST)' I think the IGW searches for the FM in E6P Destination(But ideally the FM resides in the backend).
And i couldnt find any useful logs from stack trace and backend error logs.
I dont know whether i am leading you in a wrong direction ... thats what i think Pavel.
Regards,
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you confirm that also?
I believe, entitySet and properties name in OData model entities should have same name as respective backend service details. Can you please confirm?
e.g. I could see ItPoHeaderSet as one of the entity set so you have an entityset of same name in ZMFW_GR_POLIST... service ? and its properties name should be same
ie...opening service document for zmfwXXXXX..(not CUSTOM) and doing the query operation right???
If that what you asked the result throws with an error bcoz it searches for the function module in the HUB system(that's what my inference is ).
Actually my FM resides in Backend ECC(FM is mapped in to the entity set in SEGW of my Front End Server).
NB:I have mentioned my system landscape in detail in my Parent Question.
Can you please check the screenshots that i shared with JK.Screens that i have shared with u doesnt have much details
Regards,
Vishnu
Hi Vishnu,
Were you able to execute same below URL before deleting custom IGW OData service? No, right?
https://smpserver:8083/gateway/odata/SAP/ZMFWXXXXX;v=1/ItPoHeaderSet
Hi Vishnu,
This should not be related to the auth profile, you would get a different error (403) then - I would hope something relevant will show up in the debug logs though. Can you configure debug logging for IGW and check the Troubleshooting section? As per the procedure below?
Please let is know. All the best.
Pavel
Hi Vishnu,
Ok, I see, this is the same error as with the registered service in the cockpit.So both standard as well as the deployed service behave the same.
I know you mentioned in your original post that your ODATA URL works when invoked directly - but can you retest please? Just put the full ODATA service URL in the browser. Without the IGW.
Also, in the troubleshooting section above, in the stacktrace and backend error tab, is there something useful there?
Thanks.
Pavel
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.