on 2016 Jun 02 6:42 AM
Hi...i want to send data from sapui5 to R3 system.
1. i have 1 table in R3 system from there i am able retrive the data through odata into my sapui5 application.
2.Now i want set flag in that table when user click on the button
plz all just guide me how to achive this scenario..
You can make use of Update method of OData service.Implement Update method in the service.
this may help
Update data in SAP Backend using OData Service | sap abap | sapui5 made easy
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Read the data from UI5 screen and send it OData as per below example code.
var oSalesOffice = this.getView().byId("VKBUR_id").getValue();
var oSalesGroup = this.getView().byId("VKGRP_id").getValue();
var uploadQuoteData = {
"VKBUR": oSalesOffice,
"VKGRP": oSalesGroup
};
// Set Data to ODataModel
this.getView().getModel("Model Alias Name").create('/EntitySet', uploadQuoteData, {
success: function(uploadQuoteData) {
sap.m.MessageBox.show("Quotation Uploaded successfully ",{
icon: sap.m.MessageBox.Icon.SUCCESS,
title: "Success",
actions: [sap.m.MessageBox.Action.OK],
onClose: function(oAction) {
// Close the window.
}
});
},
error: function(oError) {
sap.m.MessageBox.show(JSON.stringify(oError.message),{
icon: sap.m.MessageBox.Icon.ERROR,
title: "Error",
actions: [sap.m.MessageBox.Action.OK]
});
}
});
Regards
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
58 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.