You are on page 1of 4

4/23/2017 ConnectingtoMultipleECCsystemsviaoneGatewaysystem(DynamicSystemSelection)

(https://www.sap.com/index.html)
GetStarted(https://www.sap.com/community/gettingstarted.html)
(https://onedx.find.sap.com)

Solutions (https://www.sap.com/solution.html) Support (https://www.sap.com/support.html)

Training (https://www.sap.com/training-certication.html) Community (https://www.sap.com/community.html)

Developer (https://www.sap.com/developer.html) Partner (https://www.sap.com/partner.html)

About (https://www.sap.com/about.html)

Community (http://go.sap.com/community.html) / Archives(/) / DiscussionsArchive(/discussions) / SAPNetWeaverGatewayDeveloperCenter


Archiveddiscussionsarereadonly.LearnmoreaboutSAPQ&A(https://go.sap.com/community/about/questionsandanswers.html)
(/discussions/space/developercenter/netweavergateway) / ConnectingtoMultipleECCsystemsviaoneGatewaysystem(DynamicSystemSelection)

ConnectingtoMultipleECCsystemsviaoneGateway
system(DynamicSystemSelection)
HiExperts,

WehavemultipleECCsystemsandoneGatewayserver.WewanttoconnecttothesedifferentECCsystemsusingoneGWsystem.

IhavecreatedSystemAliasesfortheseECCsysteminGWsystem.Foraservice,iadded2systemaliases.

NowwearelookingforthesolutionwhereUIcanprovidethesystemalias(itwantstoconnect)asaparameterwhilecallingoDataService.

Pleasehelp.

https://archive.sap.com/discussions/thread/3517468 1/4
4/23/2017 ConnectingtoMultipleECCsystemsviaoneGatewaysystem(DynamicSystemSelection)

Regards,

Rohit

(https://people.sap.com/rohit.choudhary)

RohitChoudhary(https://people.sap.com/rohit.choudhary)
April04,2014at15:22PM
0Likes

HelpfulAnswerbyRonSargeant(/discussions/message/14864565#14864565)

Notwhatyouwerelookingfor?Viewmoreonthistopic(https://go.sap.com/community/tag.html?id=01200615320800003185)or

Askaquestion(https://answers.sap.com/questions/ask.html?primaryTagId=01200615320800003185)

2 replies

HelpfulAnswer

RonSargeant(https://people.sap.com/ron.sargeant2)replied March11,2014at16:20PM
(https://people.sap.com/ron.sargeant2)

HiRohit,

Shouldthisnotbedeterminedbytheservicename?Theservicenameisboundtoan
alias(backend),thereforeuniqueservicenamesareequivalenttologginginto
"backendinstancex".

https://archive.sap.com/discussions/thread/3517468 2/4
4/23/2017 ConnectingtoMultipleECCsystemsviaoneGatewaysystem(DynamicSystemSelection)

Idon'texpectserviceconnectiondetailstobepassedthroughbytheGateway,
consumersshouldbeagnosticoftheprovisionsource(s).ThisallowsGateway
administratorstoredefinethebackendendpointswithoutchangingthepublished
Gatewayinterface.

TheremaybeawaytodothisbutIdon'treallyseeacommonusecaseforit.

Regards

Ron.

HolgerNeven(https://people.sap.com/nevenhol)replied April04,2014at15:24PM
(https://people.sap.com/nevenhol)

HiRohit,

wehaveasimilarscenariowherewehavetwosystemaliasesforoneservice.Bothaliases
pointtothesamesystem,butdifferentclientsitshouldnotmakeadifferencethough,
havingdifferentsystems.ThefeatureyouarelookingforisMultipleOriginComposition
(MOC).

Thereareacoupleofthingsyouhavetoconsider:

intheSEGWtheentitytobecalledhastobemarkedasaddressable
theURIoftheserviceneedstoincludethetagforMOC(mo)>
http://sapgw.domain.org:8000/sap/opu/odata/sap/ZSOME_SERVICEmo/entityset
(http://sapgw.domain.org:8000/sap/opu/odata/sap/ZSOME_SERVICEmo/entityset)

Withoutthemothecallwillberoutedtoyourdefaultalias.Themowillroutethecalltoboth
systems.UsingMOCwillgenerateanadditionalkeypropertyintoyourentities>
SAP__ORIGIN.Thepropertyisthealias.Ifyouwanttoroutetoaspecificsystemyouhave
toprovidetheSAP__ORIGINlikeprovidingnormalkeypropertiesinyourrequests.

https://archive.sap.com/discussions/thread/3517468 3/4
4/23/2017 ConnectingtoMultipleECCsystemsviaoneGatewaysystem(DynamicSystemSelection)

Thiswilllooklikethis:

<contenttype="application/xml">

<m:properties
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata
(http://schemas.microsoft.com/ado/2007/08/dataservices/metadata)"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices
(http://schemas.microsoft.com/ado/2007/08/dataservices)">

<d:SAP__Origin>SOME_ALIAS</d:SAP__Origin>
<d:Identifier>SOME_IDENTIFIER</d:Identifier>
<d:Doublet/>
</m:properties>
</content>

TheoriginalEntityonlyconsistsofthekeyproperty"Identifier"andtheproperty"Doublet".
"SAP__ORIGN"isaddedviathemo.

Hopeithelped...

Holger

Share & Follow


(https://www.facebook.com/sapcommunity) (https://twitter.com/SAPCommunity) (https://www.youtube.com/c/SAPCommunities)
(https://www.linkedin.com/company/sap) (https://plus.google.com/+SAPCommunities) (https://instagram.com/sap/) (http://www.slideshare.net/SAP)

Privacy(http://go.sap.com/about/legal/privacy.html) TermsofUse(http://go.sap.com/corporate/en/legal/termsofuse.html) LegalDisclosure


(http://go.sap.com/about/legal/impressum.html) Copyright(http://go.sap.com/about/legal/copyright.html) Trademark(http://go.sap.com/about/legal/trademark.html) Sitemap
(http://www.sap.com/sitemap/index.html) Newsletter(https://go.sap.com/registration/newsletter.html)

https://archive.sap.com/discussions/thread/3517468 4/4

You might also like