# 创建 RFC 目标

您可以使用直接通向配置的 SAP 事务 SALE 或 SM59 创建指向 Talend SAP RFC Server 的 RFC 目标。

## 开始之前

在继续以下步骤之前，请确保已创建一个 SAP 用户来与 Talend 作业和 Talend SAP RFC Server 连接。

## 步骤

1. 通过 SAP 图形界面，以 SAP 管理员身份登录 SAP。

   ![](https://help.qlik.com/talend/zh-CN/installation-guide-linux/Resources/images/configure_sap_to_operate_with_rfc_01.png)
2. 转到直接通向配置的 SAP 事务 SALE 或 SM59。

   ![](https://help.qlik.com/talend/zh-CN/installation-guide-linux/Resources/images/configure_sap_to_operate_with_rfc_02.png)
3. 单击 Create RFC Connections (创建 RFC 连接)，然后选择创建一个基于 TCP/IP 的新 RFC 目标，在此例中为 TALEND\_TL\_RFC\_DESTINATION。

   ![](https://help.qlik.com/talend/zh-CN/installation-guide-linux/Resources/images/configure_sap_to_operate_with_rfc_03.png)
4. 在 Technical Settings (技术设置) 选项卡中，为 Activation Type (激活类型) 选择 Registered Server Program (已注册的服务器程序)，然后相应地配置 Program ID (程序 ID) 和 Gateway Options (网关选项)。

   ![](https://help.qlik.com/talend/zh-CN/installation-guide-linux/Resources/images/configure_sap_to_operate_with_rfc_04.png)

   信息注释切记： SAP 程序 ID 必须与 Talend SAP RFC Server 中的条目完全相同。
5. 在 Unicode 选项卡中，设置 Unicode/非 Unicode 配置。

   ![](https://help.qlik.com/talend/zh-CN/installation-guide-linux/Resources/images/configure_sap_to_operate_with_rfc_05.png)

   信息注释提示： 建议使用 Unicode。
6. 根据需要编辑其配置，从而配置 Talend SAP RFC Server。
7. 开始 Talend SAP RFC Server.

   有关配置和启动 Talend SAP RFC Server 的更多信息，请参阅 [安装和配置 Talend SAP RFC Server](https://help.qlik.com/talend/en-US/installation-guide-linux/7.3/installing-talend-sap-rfc-server-manually) 和 [启动或停止 Talend SAP RFC Server](https://help.qlik.com/talend/en-US/installation-guide-linux/7.3/starting-or-stopping-rfc-server)。

   ![](https://help.qlik.com/talend/zh-CN/installation-guide-linux/Resources/images/configure_sap_to_operate_with_rfc_06.png)
8. 单击 Connection Test (连接测试) 以检查到 Talend SAP RFC Server 的连接状态。

   ![](https://help.qlik.com/talend/zh-CN/installation-guide-linux/Resources/images/configure_sap_to_operate_with_rfc_07.png)

## 结果

如果所有参数均配置正确，屏幕显示应该会与下图相似。它意味着一个使用 tSAPIDocReceiver 组件的 Talend 作业现已为接收 IDoc 准备就绪。

![](https://help.qlik.com/talend/zh-CN/installation-guide-linux/Resources/images/configure_sap_to_operate_with_rfc_08.png)