Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get data from a specific backend Client ?

I have a ODATA service built in a Backend ECC system( IW_BEP) and registered in the SAP Gateway Hub (SAP_GWFND). The backend system has 2 seprate clients 100 and 200. I have created both the SAP system aliases and added them to the service after registering it.

With the MOC concept if the test the service as /NAME_SRV;mo/entityset I get data back from both the clients as expected. None of the system aliases are set as default systems.

What I would really like to do is get the data from 1 specifc client even when 2 systems are specified.

Is there a way to achieve this wihout creating another client in the SAP gateway hub? I tried using the url as below but I still get data back from both backend clients irrespective of what url I use.

/NAME_SRV;mo=ALIAS1/entityset

/NAME_SRV;mo=ALIAS2/entityset


Thanks in advance!

Tags:
Former Member
replied

You can use the filter SAP creates for MOC.


/NAME_SRV;mo/<entityset>?$filter=SAP__Origin eq '<systemalias1>'

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question