Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Mozilla Firefox Problem for uploading data through SAP Gateway in UI5 application

$
0
0

Hi,


One query in regard to Mozilla Firefox. When I am sending the data back to the R/3 Gateway using the following code, it is working perfectly for Microsoft Internet Explorer and Google Chrome, but it is not working for the Mozilla Firefox. Data is displayed in Mozilla Firefox, but when I am trying to send the data back to R/3, Mozilla Firefox is not supporting – data is not getting updated in R/3. Do I need to add any code to the following for sorting out the problem in Mozilla Firefox?

 

    bundle.getText("UpdateDialogMsg"),
function (oAction) {
if (sap.m.MessageBox.Action.OK === oAction) {
var var_bnfpo = oView.byId("Objecth1").getBindingContext().getProperty("Bnfpo");
var var_banfn = oView.byId("Objecth1").getBindingContext().getProperty("Banfn");
var var_menge = oView.byId("Vmenge").getValue();
var var_preis = oView.byId("Vpreis").getValue();
var var_kostl = oView.byId("Vkostl").getValue();
var var_sakto = oView.byId("Vsakto").getValue();
OData.request
({
requestUri:
"http://XXXXX:8000/sap/opu/odata/sap/ZEBAN_FINAL1_SRV/EBANLINEUPDATESet",
method:
"GET",
headers:
{
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"X-CSRF-Token":"Fetch"                                 }
},
function (data, response)
{
header_xcsrf_token = response.headers[
'x-csrf-token'];
OData.request
({
requestUri:
"http://XXXXX:8000/sap/opu/odata/sap/ZEBAN_FINAL1_SRV/EBANLINEUPDATESet",
method:
"POST",
headers: {  
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/atom+xml",
"DataServiceVersion": "2.0",
"Accept": "application/atom+xml,application/atomsvc+xml,application/xml",
"X-CSRF-Token": header_xcsrf_token    },
data:
{
Banfn: var_banfn,
Bnfpo: var_bnfpo,
Menge: var_menge,
Preis1: var_preis,
Kostl: var_kostl,
Sakto: var_sakto,
}
},
function (data, response)
{
document.location.reload(true);
$(
"<div>Returned data " + window.JSON.stringify(data) + "</div>").appendTo($("#MessageDiv"));
},
function (err)
{
document.location.reload(true);
$(
"<div>Returned error " + window.JSON.stringify(err.response) + "</div>").appendTo($("#MessageDiv"));
}
);
}
);

 

Awaiting your kind suggestion…

 

Regards,

 

Subhabaha Pal


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>