on 09-11-2014 11:20 PM
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!
You can use the filter SAP creates for MOC.
/NAME_SRV;mo/<entityset>?$filter=SAP__Origin eq '<systemalias1>'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Krishna,
i have the same issue . when i was passing the the
/sap/opu/odata/sap/ZXXX_SRV;mo/Add_MatnrSet?$filter=SAP__Origin eq 'LOCAL' and IWerks eq 'XX01'
Getting error as below.
<?xml version="1.0" encoding="utf-8" ?>
</Error_Resolution>
</errordetail>
</errordetails>
</innererror>
</error>
T Thanks in Advance
Hello Spandana,
Error is because in your Get_Entity_Set method there would be no code written to read filter parameter ' SAP__Origin ' . So its dumping.
I had the same issue and i resolved it as below.
Put a break point at the code where filters parameters are extracted. There u will find the reason for dump. Reason is SAP__Origin is not read and hence the dump occcured.
Solution would be add one line of code to read it.
Inside the loop, write as below and u r done.
WHEN 'SAP__ORIGIN'
Regards,
Ashwin
Hi Ashwin , Thank you .
As suggested by you i used WHEN 'SAP__ORIGIN' and it is working fine for Read and Get queries.but while posting the data ( using POST ) into sap it through error .as below.
My URL for post is :
Original URL for post with out using alias name:
/sap/opu/odata/sap/Zxxx_TEST_SRV/zxxx_HeadSet -- working fine
/sap/opu/odata/sap/Zxxx_TEST_SRV;mo/zxxx_HeadSet?$filter=SAP__Origin eq 'ABCD_100' - error as below:
The Data Services Request contains SystemQueryOptions that are not allowed for this Request Type
Please suggest how to get post the data using alias concept .
Thanks in advance.
Hello Spandana,
As far as i know At present, CREATE calls cannot be done in all configured back-end systems, but only in the default system.
Please have a look at the below for more info for your question :
Multiple Origin Composition - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library
Regards,
Ashwin
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.