The easiest method to call an SAP function module from the front end is through OData only. As a beginner it is normal to find some difficulties with the concept. But, once you explore all the functionalities provided by OData through netweaver gateway, you will find it comparatively easy. For exclusively updating data in backend, you can use the OData model's update method in SAPUI5.