BAPI/RFC with Delphi (Step 1: ActiveX-Components installation)

本文介绍如何在Delphi环境中安装并使用SAP GUI提供的ActiveX组件进行BAPI/RFC编程。首先安装SAP GUI及SDK,接着通过Delphi导入TSAPLogonControl和TSAPBapiControl等组件,最后导入TSAPFunctions等类型库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

BAPI/RFC with Delphi (Step 1: ActiveX-Components installation)

Preface
This page is to give a short idea of ActiveX-Components installation in Delphi for the BAPI/RFC - programming with Delphi.

Use
This section describes all necessary activities for ActiveX-Components installation.

Preparation
Required is the SAPGUI (local or installed in the net), the SAP Software Development Kit (SDK) which you can find on the SAP-Install-CD.With the SDK, help files get installed, which are very useful.

Installing ActiveX-Component
At the moment I’m using the SAPGUI 620 final release and Delphi 7.

During the Installation from the SAPGUI or SDK, any OCX-Files become installed, which included ActiveX-Components. These can be build in into Delphi.

The ActiveX-Components are merged as follows in Delphi:

# SAPLogonControl, SAPBAPIControl :
component --> ActiveX import
(imported components: TSAPLogonControl, TSAPBapiControl)

Please follow me, step by step:

a. Before ActiveX-Components installation.


b. Start to install TSAPLogonControl. Please choose 'SAP Logon Control' and click 'Install...' to install it.










c. After TSAPLogonControl installation.


d. Start to install TSAPBapiControl Please choose 'SAP BAPI Control' and click 'Install...' to install it.










e. After TSAPBapiControl installation

# SAP Remote Function Call Control:
project --> type library import
(imported components: TSAPFunctions, TFunction, TParameter, TExports, TImports, TStructure)
Then component --> install components;
specify the name of the unit (the units are normally stored in the directory IMPORTS in Delphi): TSAPFunctionsOCX_TLB.pas

Please follow me, step by step:

a. Start to import Type Library (Project --> Inport Type Library...)



If you find that the direction of SAP Remote Function Call Control is not correct, please add 'wdtfuncs.ocx' manualy.







b. After SAP Remote Function Call Control installation

After the Installation of all components these can get in a form from the register ActiveX of the component Menu. More information's about this theme you can read in the Delphi-component-manual.

转载于:https://www.cnblogs.com/crazybugcn/archive/2007/04/27/729734.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值