1、新建一个Form,并在form上添加下列控件
| Component | Function |
| SAPLogOnControl1 | SAP ActiveX-Component to logon to the system |
| Button1 | Button to start the procedure |
2、源代码如下
这篇博客介绍了如何在Delphi中利用TSAPLogonControl控件实现无对话框方式登录SAP系统。通过设置连接参数如用户名、系统名、客户端、应用服务器、系统号、密码和语言,然后调用LogOn方法实现静默登录。当登录成功后,显示相应消息并启用按钮;登录失败则显示错误消息并重新启用登录控件。点击按钮可断开与SAP系统的连接。
1、新建一个Form,并在form上添加下列控件
| Component | Function |
| SAPLogOnControl1 | SAP ActiveX-Component to logon to the system |
| Button1 | Button to start the procedure |
2、源代码如下

被折叠的 条评论
为什么被折叠?