on 10-07-2013 7:37 AM
Hello Experts,
My Gateway and Backend system are same , SP06. I am trying to run this TCode/IWBEP/OCI_SRV_GEN
provided in the URL http://help.sap.com/saphelp_gateway20sp06/helpdata/en/ab/7a40346993423e98044350e41a21d8/content.htm
Please provide navigation to this T-Code.
Regards
Manish
Hi Manish,
Can you explain us the usecase for using this tool? Or are you just experimenting with it?
It is also accessible from SEGW, when you right click on Data Model ->Redefine ->OData service
Thanks
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No its not an experiment , i was told by some of the SAP Gateway folks to use this transaction to consume external webservice . I want to push data from SAP to my another backend . I cannot use Push Notification because it needs listener 'ON' every time and i cannot one instance always running to wait for data to come from SAP.
Regards
Manish
Manish,
This is like you want to cut a tomato and you ask everyone on how to use a screw driver.
So everyone guides on using a screw driver but your purpose is never met because you are on a wrong path.
I can say that you are using a wrong tool.
I would suggest you to open a new thread and patiently document your usecase and ask for suggestions.
Some questions to answer may be
Both backends are SAP?
Amount of data you are looking to pass/update
If both are SAP, have you considered RFC?
If not, do we have an OData service already in target system?
Thanks
Krishna
Well Krishna, I guess it is the same tool for using external oData services.
1. Both backends are not SAP, only one is SAP.
2. Probably around 12-15 fields
3. Yes target system has oData service.
I guess you have not understood the requirement properly.
if you are aware about using SOAP webservices logical ports in ABAP , proxy and host , this will clear you my requirements.
Regards
Manish
Hi Manish,
As I mentioned before OData Consumption and Integration (in short OSCI ) is something by which you can consume external OData in Gateway.
For example if you have an External OData service A , then using transaction '
/n//IWBEP/OCI_SRV_GEN ' you can generate an Gateway Service B.
Now you can call service B from any browser/ client , and you will get the response back in the browser/client. Gateway will internally call service A and transfer the data to service B, when ever B is called.
The DPC/MPC of B will be called just like the DPC/MPC of any other Gateway Odata service.
Regards,
Atanu
'
Hi Manish,
As you see, B is internally calling A and you are able to get the expected results in case of GET, the same holds good for POST as well. In your browser tryout POST on B with correct HTTP settings and body. If everything is correct then POST on A would be called. If CREATE has been implemented in A then you will be able to get the successful creation of entity in B.
Are you sure about your approach 1. that you want to call an OData service from ABAP code 2. When you already has an OData service(A) , and you are creating one more(B)
Regards,
Atanu
Hello Atanu,
I am not sure how to call it, i want to push the data from my BADI to service B, this should internally
call service A.
Now the question is do i need to post http request from my BADI or calling DPC , MPC call will do.
If i call DPC & MPC then i will like to know what methods should i call in sequence and what data i need to pass.
Regards
Manish
Ron : oData is more lighter as compared to SOAP and there are lot of other advantages of oData over SOAP .
Atanu : Their is an option to consume external SOAP service in ABAP workbench , which also generates the code , so i was looking something like that in Gateway, anyways i will directly consume service A , i thought using service B will make more secure as data is getting posted in outside world.
Regards
Manish
Hi Manish,
please have a look at my most recent post:
How to consume an OData service using OData Services Consumption and Integration (OSCI) | Andre Fischer |
I hope you "Like" it .
Best Regards,
Andre
Hi Manish,
This transaction is not available in SPRO.
You can try /n//IWBEP/OCI_SRV_GEN in your system.
Do you mean something else by 'navigation' ?
Regards,
Atanu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Aatnu,
I tried with my oData service and also example oData service.
http://services.odata.org/Northwind/Northwind.svc/
I checked the response in browser it works, but when i try to generate it gives me error as 'Error while fetching source meta data'
Here is screen shot of Gateway Service Generator
Regards
Manish
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.