Skip to Content
avatar image
Former Member

sap ui5 create operation issue

Dear Experts,

I am trying to create sap ui5 post operation using ajax code but i am getting Forbidden 403 error for my scenario no need token in gateway only we did plase find my controller code

onSave : function(evt) { debugger; var content = sap.ui.getCore().byId("simpleForm").getContent(); var newObject = { "User Name" : content[1].getValue(), "Date of Birth": content[3].getValue(), "Password": content[5].getValue(), } $.ajax({ type: "POST", url: 'proxy/http/XXXXXXXX/devodata/SAP/ZMOB_USER_CREATE_SRV/ZMOBUSERSet', dataType: "json", data: JSON.stringify(newObject), cache : false, crossDomain : true, username : "XXXXXX", password : "XXXXXXXX", contentType: "application/json" , success: function() {"Product Added Successfully"); }, error: function(xhr, status) { new"Error while adding the product"); } }); }

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers