on 07-26-2017 11:36 AM
I am implementing a Function Import call from within a SAPUI5 project and am trying to send a compressed and encoded string (i.e. a binary file) as part of the parameters to this function import:
oDataModel.callFunction("/myFunctionImport", {
method: "POST",
urlParameters: {
SubmissionID: 1,
JSONzip: sBase64Data
},
success: function (oData, oResponse) {
// ...
},
error: function (oError) {
// ... }
});
where "sBase64Data" is the compressed and encoded JSON string. The gateway is correctly set up so that the parameter types to the Function Import as set as an Int32 and a binary file, respectively.
I keep getting a "Malformed URI literal syntax" error when I run this code. Any ideas of how I can directly send a binary call through to a function import?
I am also facing the same issue what is the solution for that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may not need the forward slash in "/myFunctionImport". You can use the browser dev tools to see the call being made to make sure it is formed correct.
Regards,
Jamie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.