Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Upload attachments in multi origin

former_member502164
Discoverer
0 Likes
2,075

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?

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?

8 REPLIES 8
Read only

chris_SAP
Participant
0 Likes
1,978

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

https://help.sap.com/doc/saphelp_nw751abap/7.51.0/en-US/52/1ad57a1bfd47f0b0c1f02d0a8acfba/content.ht...

You have perhaps to extend and add the erp (as SLUG information)

Read only

0 Likes
1,978
                jQuery.sap.declare("ODataFileUploader");
                jQuery.sap.require("sap.ui.commons.FileUploader");
                sap.ui.commons.FileUploader.extend("ODataFileUploader", {
                metadata : {
                    properties : {
                    "modelName" : "string",
                    "slug"    : "string"
                }


Read only

maheshpalavalli
Active Contributor
0 Likes
1,978
Read only

former_member502164
Discoverer
0 Likes
1,978

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

Read only

0 Likes
1,978

Did you try passing the "SAP__Origin" with the system alias and test it in the "/IWFND/GW_CLIENT" ?

Read only

former_member502164
Discoverer
0 Likes
1,978

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

Read only

0 Likes
1,978

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.

Read only

0 Likes
1,978

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