Search code examples
eclipseuser-interfacesapui5abap

How to access SAP backend tables using SAPUI5?


I'm totally new to SAPUI5 and after learning the classic Dynpro and developing on the SAP GUI I got a few questions about how SAPUI5 works.

As SAPUI5 is developed in Eclipse I'm interested how it could get data from a SAP NetWeaver table.

Do I need a remote call for that? And how does the Eclipse program connect and communicate with NetWeaver?

I didn't find an answer to that, maybe it's just too simple.

Maybe someone have some tips or best practice to share?

Thank you.


Solution

  • SAPUI5 apps are running inside the user's browser and connect to any server with HTTP. This is actually the very standard way of creating client-side web applications. You can use any kind of HTTP server as long as they offer the data at a URL and offer the data in a well-known format like JSON or XML, but when you have a Netweaver server, Gateway and using OData would be the recommended way to go.

    Don't think too much about Eclipse. It is not at all required to develop SAPUI5 applications, it just used to be a well-supported editor with additional plugins in the past. Actually SAP WebIDE would be the best-integrated editor now, but you can still use anything from vim to Notepad.

    There are plenty of Gateway/SAPUI5 guides on the web, also the official UI5 documentation contains chapters about getting data from the server with OData. I'd recommend doing the entire walkthrough to any beginner!