cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple SAP Netweaver gateway ports

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184867
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

kammaje_cis
Active Contributor
0 Kudos

If you want to specify the backend, then you can use parameter "SAP_Origin".

Check this blog  for more details.

Former Member
0 Kudos

Thank you Atanu and Krishna for the information. We will certainly review these options.

Kind Regards,

David

Former Member
0 Kudos

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

former_member206574
Active Participant
0 Kudos

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.

  • /sap/opu/odata/sap/ZTEST_SRV;mo/GetBankDetailsSet?$filter=SAP_Origin eq ‘SYS_ALIAS1 and Bankkey eq ‘0001’ and Bankcountry eq ‘Country’

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

Former Member
0 Kudos

Thanks Venu. Will take a closer look again.