Professional Documents
Culture Documents
(https://www.sap.com/index.html)
GetStarted(https://www.sap.com/community/gettingstarted.html)
(https://onedx.find.sap.com)
About (https://www.sap.com/about.html)
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
https://archive.sap.com/discussions/thread/3517468 4/4