cancel
Showing results for 
Search instead for 
Did you mean: 

Suppress Technical Error on Save

adnanmaqbool
Contributor

Dear All

I am submitting a UI5 based form data back to oData/ERP on Save Event. Requirement is, for example to stop creation of record, if employee has not completed 5 years of service, which is handled by raising oData exception message but App is also showing standard Fiori Technical Error instead of showing only user friendly error message.

Within OData create_entity method, exception is raised using /iwbep/cx_mgw_busi_exception whereas within controller UI below code is written. However, system is showing standard Technical Error, in addition to customized error raised using oData exception,

oModel.submitChanges({
				success: function(oData, oResponse) {
					if (oData.__batchResponses[0].response.statusCode >= 400) {
						var oResp = JSON.parse(oData.__batchResponses[0].response.body);
						MessageBox.error(oResp.error.message.value);
					    this.getModel("appView").setProperty("/busy", false);
					}
				},
				error: function(oError) {
					this.getModel("appView").setProperty("/busy", false);
				}
			});<br>
adnanmaqbool
Contributor
0 Kudos

Hi

Any possible solution.

Accepted Solutions (0)

Answers (1)

Answers (1)

GregMalewski
Contributor