找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
SAP亦橙网 首页 SAP技术 查看内容

SAP RFC 接口

2023-12-22 14:30| 发布者: 亦书| 查看: 26| 评论: 0

摘要: SAP RFC 接口文章目录1.Create an RFC2.Create an RFC destination3.Send an RFC from an SAP systemSAP一共有5种接口有RFC,还有BAPI,还有IDoc, 还有SOAP,还有REST, 其中RFC用的最多,最广。Lists high-level tasks ...
SAP RFC 接口


SAP一共有5种接口
有RFC,还有BAPI,还有IDoc, 还有SOAP,还有REST, 其中RFC用的最多,最广。

Lists high-level tasks to complete on the SAP system to create an RFC. Each task may involve very detailed procedures. As a result, we recommend contacting your SAP administrator to complete these tasks, or refer to the SAP guidance.

1.Create an RFC

1.Start the SAP GUI.

2.Go to Transaction SE37 (Function Builder), enter the RFC name, and click Create.

3.Enter an existing function group under which the RFC will be created, a short description for the RFC, and click Save.

4.In the Attributes tab, select the Remote-Enabled Module radio button.

5.In the Import tab, enter the import parameters. These parameters are used for passing the external data to the function module.

6.In the Export tab, enter the export parameters.

7.In the Changing tab, enter the changing parameters.

8.In the Tables tab, enter the table names.

9.In the Exceptions tab, enter the exceptions to handle errors.

10.In the Source Code tab, enter the source code (logic) for the RFC.

11.Click the Activate icon on the toolbar to activate the function module.

2.Create an RFC destination

1.Start the SAP GUI.

2.Go to Transaction SM59 (Display and Maintain RFC Destinations).

3.From the menu bar, click Create.

4.Enter the RFC destination, connection type, description, and then press Enter.

5.Select the Registered Server Program radio-button, enter the program ID, gateway host, and gateway service.

6.Save the RFC destination.

3.Send an RFC from an SAP system

1.Start the SAP GUI.

2.Create a logical system using BD54 transaction.

3.Create an RFC destination in TCP/IP connections using SM59 transaction.

4.Create a port using WE21 transaction and attach it to the RFC destination created in the last step.

5.Trigger an RFC by using SE37. This RFC must contain the logic to make an RFC call to an external application and then receive a response from that application.

参考
webservice
SAP API

 

特别声明:文章或部分素材来源于网络,仅供SAPERP从业伙伴们交流学习使用,如果侵犯了您的权益,请联系网站管理人员删减!


路过

雷人

握手

鲜花

鸡蛋
返回顶部