title: SAPUI5 - OData is not defined
body: <p>I am trying send some data to sap gateway service.
  I am using this <a href="https://blogs.sap.com/2015/02/05/simple-exercise-on-odata-and-sap-ui5-application-for-the-basic-crud-operation/" rel="nofollow noreferrer">example</a> the method "save", but when I try do it in my code I get an error "OData is not defined"</p>
  
  <p>Below is the method when I try do it.</p>
  
  <pre><code>        handleConfirmationMessageBoxPress: function(oEvent) {
          var bCompact = !!this.getView().$().closest(".sapUiSizeCompact").length;
          MessageBox.confirm(
              "Deseja confirmar a transferência?", {
                  icon: sap.m.MessageBox.Icon.SUCCESS,
                  title: "Confirmar",
                  actions: [sap.m.MessageBox.Action.OK, sap.m.MessageBox.Action.CANCEL],
                  onClose: function(oAction) {
                      if (oAction == "OK") {
                          var oParameters = {};
                          oParameters.loginfrom = this.getView().byId("multiInput").getValue();
                          oParameters.loginfrom = this.getView().byId("loginPara").getValue();
                          oParameters.loginfrom = this.getView().byId("datade").getValue();
                          oParameters.loginfrom = this.getView().byId("datapara").getValue();
  
                          OData.request({
                              requestUri : "http://&lt;host name&gt;:&lt;port no&gt;/sap/opu/odata/sap/ZMM_EMP_SRV/EmployeeSet",
                              method : "GET",
                              headers : {...}
                                          },
                                          function(data, response) {
                                                   ...
                                                      var oHeaders = {
                                           ... };
                              OData.request({
                                                      requestUri : "http://&lt;host name&gt;:&lt;port no&gt;/sap/opu/odata/sap/ZMM_EMP_SRV/EmployeeSet",
                                                      method : "POST",
                                                      headers : oHeaders,
                                                      data:oParameters
                                          },
                                                      function(data,request) {
                                                      MessageToast.show("Transferência realizada!");       
                                                      location.reload(true);
                                          },          function(err) {
                                                      MessageToast.show("A transferência falhou!");
                                          });
                              }, function(err) {
                                                      var request = err.request;
                                                      var response = err.response;
                                                      alert("Error in Get — Request " + request + " Response " + response);
                                          });  
  
  
                      } else {
                          ...
  </code></pre>