In the SAP system, you can use ABAP to control desktop applications (custom controls).  The application logic runs on the SAP application server (automation client), which drives the custom control (automation server) at the frontend.

The frontend functions as a container for custom controls at the frontend. A custom control can be either an ActiveX control or a JavaBean, depending on the version of SAP GUI currently in use.