2019 Jan 21 4:44 PM
we have two backend systems A and B.irrespective of the system alias it is always calling the A system.I have created the upload document logic in createstream and I have created a entity named attachment.is any other addition thing I have to add from backend for multi origin?
You can comment on the original answer.
Can you check why the csrf token error is coming. Ideally if we test from the sap system, it shouldn't come.
2019 Jan 21 5:02 PM
The new back-end is arrived a bit late for me and I've managed that in the gateway.
I suppose you have to define on which erp you want to assign your file. There's a topic on that
You have perhaps to extend and add the erp (as SLUG information)
2019 Jan 21 5:03 PM
jQuery.sap.declare("ODataFileUploader");
jQuery.sap.require("sap.ui.commons.FileUploader");
sap.ui.commons.FileUploader.extend("ODataFileUploader", {
metadata : {
properties : {
"modelName" : "string",
"slug" : "string"
}
2019 Jan 21 5:02 PM
Hi Karthik S,
You need to pass the "SAP__Origin" with the alias name. Check the blogs below for more details:
https://blogs.sap.com/2014/07/11/getting-data-from-2-erp-systems-using-multi-origin/
BR,
Mahesh
2019 Jan 22 5:14 AM
Thanks Christophe and Mahesh for the response.
Actually in Gateway we are maintaining the system alias for both A(Default system) and B system. Front End Developer also passing the respective system alias as part of the URL. Even then also it is calling the same A system i.e default system. I have no knowledge about front end.From back end side, Do we need to add anything redefine/add any methods apart from create stream or i am missing anything from back end for multi origin concept.
Regards,
Karthik S
2019 Jan 22 5:25 AM
2019 Jan 22 7:41 AM
Hi Mahesh,
From gateway i was trying with mo origin it is asking for CSRF token, so i requested front end guys to give the URL based on the entity set and slug parameters. Attached the execution screenshot from /IWFND/GW_CLIENT.

if you have already tried with multi origin, can you please provide the url to check.
Regards,
Karthik S
2019 Jan 22 7:50 AM
2019 Jan 22 7:58 AM
You can also check the core_samples to see how sap is passing the data.
You can check the blog by andre.fischer for core samples. Maybe he can help you as well with this issue.
https://blogs.sap.com/2013/06/21/demo-test-cases/
BR,
Mahesh
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |