如何配置和测试 RFC 连接 SAP SM59

本教程分为 4 个部分
第三步: 设置 RFC 连接
第三步: 受信任的 RFC 连接
第三步: 测试 RFC 连接
第三步: 错误解决
步骤 1:建立 RFC 连接的过程
输入交易 Code SM59
在 SM59 屏幕中,您可以借助选项树浏览已创建的 RFC 连接,这是一种基于菜单的方法,可以按类别组织所有连接。
Click the 'CREATE' button. In the next screen , Enter -
- RFC 目标 – 目的地名称(可以是 Target 系统 ID 或任何相关内容)
- 连接类型 – 在这里,我们根据需求选择一种 RFC 连接类型(如前所述)。
- 描述 – 这是一个简短的信息性描述,可能是为了解释连接的目的。
你以后'SAVE'the connection, the system will take you to 'Technical Settings' tab, where we provide the following information:
- Target 主办方– 这里我们提供目标系统的完整主机名或 IP 地址。
- 系统编号 – 这是目标的系统编号 SAP 系统。
- 单击“保存”
在 'Logon and Security' Tab、输入 Target 系统信息
- 语言 – As per the target system's language
- 客户 - 在 SAP 我们从不登录系统,总是会有一个特定的客户端,因此我们需要在这里指定客户端号码以确保正确执行。
- 用户 ID 和密码 – preferably not to be your own login ID, there should be some generic ID so that the connection should not be affected by constantly changing end-user IDs or passwords. Mostly, a user of type 'System' or 'Communication' is used here. Please note that this is the User ID for the target system and not the source system where we are creating this connection.
单击“保存”。RFC 连接已可供使用。
注意::默认情况下,连接定义为 aRFC。要将连接定义为 tRFC 或 qRFC,请转到菜单栏 -> 目标 aRFC 选项 / tRFC 选项;根据要求提供输入。要定义 qRFC,请使用特殊选项选项卡。
步骤 2:可信 RFC 连接
有一个选项可以将 RFC 连接设置为 'Trusted'. Once selected, the calling (trusted) system doesn't require a password to connect with target (trusting) system.
使用可信渠道的优势如下:
- 跨系统单点登录功能
- 密码无需通过网络发送
- 登录数据的超时机制可防止滥用。
- 防止由于超时机制而导致的登录数据处理不当。
- 检查调用/受信任系统的用户特定登录详细信息。
RFC 用户必须在信任系统中拥有所需的授权(授权对象 射频访问控制列表).信任连接主要用于连接 SAP 解决方案管理系统 与其他 SAP 系统(卫星)
步骤 3:测试 RFC 连接
在创建 RFC 之后(或者有时在已经存在的 RFC 的情况下),我们需要测试连接是否成功建立。
As shown above we go to SM59 to choose the RFC connection to be tested and then we expand drop down menu - "实用程序->测试->…". We have three options:
连接测试 -> 这将尝试与远程系统建立连接,因此会验证 IP 地址/主机名和其他连接详细信息。如果两个系统都无法连接,则会抛出错误。如果成功,则会显示带有响应时间的表格。此测试仅用于检查调用系统是否可以访问远程系统。
授权测试 -> It is used to validate the User ID and Password (provided under 'logon and security' tab for the target system) and also the authorizations that are provided. If a test is successful, then the same screen will appear as shown above for the connection test.
Unicode 测试 -> 这是为了检查 Target 系统是否是 Unicode。
远程登录 –>This is also a kind of connection test, in which a new session of the target system is opened, and we need to specify a login ID and Password (if not already mentioned under 'Logon and Security' tab). If the user is of type 'Dialog' then a dialog session is created. To justify the successful connection test, output will be the response times for the communication packets, else error message will appear.
步骤4:哪里出了问题?
如果 RFC connection is not established successfully, we can check the logs (to analyze the issue) at OS level in the 'WORK' director. There we can find the log files with the naming convention as "dev_rfc<sequence no.>" and the error description can be read from such files.















