on 03-01-2016 11:59 PM
Hello Gateway Guru,
We have a requirement of using a single SAP NW gateway connecting to DEV & QA vi OData services.
We created two clients in gateway, 100 for DEV and 200 for QA and successfully and have successfully executed the URL gateway http://gateway.local:8000/sap/opu/odata/demo_service/?$format=xml. However, we cannot tell which backend is coming from since both are using the same gateway server. Is there a way we configure multiple gateway ports so the backend URL can be easily be identified? if not, what other options beside adding another QA gateway server to the mix?
Thanks for your time,
DT
You can specify the client in the URL using "sap-client" parameter.
Example:
http://gateway.local:8000/sap/opu/odata/demo_service/?$format=xml&sap-client=100
/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/CarrierCollection?sap-client=100
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
My understanding that in order to use the SAP_Origin you have to define ;mo as shown below, than the SAP_Origin would be added in the response where system alias would be specified. When I executed this sap/opu/odata/sap/ZSERVICE;mo/$metadata I can see the SAP_Origin, but it does not have any System alias attached to it. Can you please help.
hanks
DT
Hi David,
When using the service with ;mo/$metadata just it will add the key property for the response of metadata, it wont fetch you the system alias name.
You should know the system aliases name.
Here if you want the data from 1st system and say system alias is SYS_ALIAS1. then while doing GET operation for GETentityset you have to add SAP_Origin eq ‘SYS_ALIAS1’ along with filter conditon as in the below service.
For 2nd System, say system alias is SYS_ALIAS2 just replace the value SYS_ALIAS1 with SYS_ALIAS2. Then you will get the response from the 2nd system.
Just follow the blog which is shared by krishna in the above response once again. So that you can understand.
Regards,
Venu
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.