Hi All,
Export to excel has been implemented in OData service level itself and trying to download the file by redirecting to the path from SAP Ui5 coding as follows:
exportAll:function()
{
var that=this;
that.busyDialog.open();
var oModel = new sap.ui.model.odata.ODataModel("/sap/opu/odata/SAP/ZEXPORT_SCN_SRV/");
oModel.read("ExportSet",null, [], true, function fsuccess(data, response) {
that.busyDialog.close();
window.location.assign(data.results[0].Url); /** data.results[0].Url retrieves the path: "/sap/zcustom/Z_EXPORT_USER/export_20160130195157.xls" **/
}, function ffailure(data, response) {
that.busyDialog.close();
alert("Service Call Failed");
});
},
The above piece of code is downloading excel sheet with SAP development system user (Developer Access role) in both Internet explorer & Chrome browser.
But, the same piece of code is not working with SAP Production system user and throwing 403 access forbidden as below:
Please suggest what kind of authorization normally requires for a production user to execute export to excel sheet download ?
Thanks in Advance.
Cheers,
Hemagiri Seerapu