on ‎2015 Nov 16 11:20 AM
Hi,
I'm receiving an "error whilse parsing an XML stream" while calling the oModel.create() - method.
Can you help me with that?
Here is my Code:
//Creating a new Entry
var oModel = sap.ui.getCore().getModel("Service");
var oRequestBody =
{
Kunnr: parseInt(iIdSelectedDebitor),
Matnr: sActualMatnr.toString(),
DatumHinzu: new Date(),
Gekauft: false,
DatumGekauft: null
};
oModel.create("/WListSet", oRequestBody, null,
function(oSuccess, oResponse)
{...},
function(oError)
{...});
//ServiceBinding.js
var sUrl = "/sap/opu/odata/sap/ZSHOPPING_APP_SRV/";
var oModel = new sap.ui.model.odata.ODataModel(sUrl, true);
sap.ui.getCore().setModel(oModel, "Service");
Request clarification before answering.
Hi Julia,
Could you please post your "network tab error message" ( with screenshots).
1. Check your payload data. Some times it could be different from GW payload.
Goto segw transaction---> Run your service ---> add payload ---->F8 ( if works)
Check the same data from SAPUI5.
I think here you used new date for DatumHinzu field. It might be a problem
Thanks,
KA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.