python获取sap数据_使用python使用pyrfc将数据插入到SAP中

python获取sap数据

Today we are seeing the daily increase of Machine Learning (ML) development and the largest development tool is Python and each day more and more people are trying to return the results of the ML models into their Enterprise Resource Planning systems (ERPs).

今天,我们看到机器学习(ML)开发的每天都在增加,最大的开发工具是Python,并且每天都有越来越多的人试图将ML模型的结果返回到其企业资源计划系统(ERP)中。

SAP is one of the most used ERPs systems and to insert the results of an ML model into it we have two options, manually in a custom SAP transaction or using a Remote Function Call (RFC) which is the standard SAP interface for communication between SAP systems and other systems, so RFC calls a function to be executed in a remote system.

SAP是最常用的ERP系统之一,要在其中插入ML模型的结果,我们有两个选择,可以在自定义SAP事务中手动进行,也可以使用远程功能调用(RFC),后者是SAP之间进行通信的标准SAP接口系统和其他系统,因此RFC调用要在远程系统中执行的功能。

Let’s say that you can automate the upload of the result file in the transaction with a Robotic Process Automation system (RPA), so then which one we should choose?

假设您可以使用Robotic Process Automation系统(RPA)在事务中自动上传结果文件,那么我们应该选择哪一个呢?

Well, if I had to choose one of them I would pick the second option because it tends to vary less and have fewer updates than the first one, so you probably would have fewer problems with unnoticed updates.

好吧,如果我必须选择其中一个,那么我会选择第二个选项,因为它与第一个选项相比变化较小且更新较少,因此,您可能会注意到较少的更新问题。

One important thing to point is that RFC has a lot of goals and ways to be developed and the one we want to use is to insert data into tables

重要的一点是,RFC有很多目标和开发方法,而我们要使用的目标是将数据插入表中

We can do that with Python using the PyRFC package, but the first use of it is not so simple, so to help with that I’ve created some functions and documentations.

我们可以使用PyRFC软件包在Python中完成此操作,但是第一次使用并不是那么简单,因此为了帮助我创建了一些函数和文档。

Let’s begin!

让我们开始!

装置 (Installations)

-第一步:下载SAP NW RFC SDK (- First Step: Download SAP NW RFC SDK)

SAP NW RFC SDK is the abbreviation for SAP NetWeaver Remote Function Call System Development Kit, this lets you manage the RFCs.

SAP NW RFC SDK是SAP NetWeaver远程功能调用系统开发工具包的缩写,它使您可以管理RFC。

I’ve found a really good manual from Informatica of how to download it, but it’s for an older version and some icons are quite different now, so I’ve written the steps and reprinted the images to have it up to date.

我发现Informatica的一本非常好的手册 如何下载它,但是它是针对较旧的版本的,并且有些图标现在已经大不相同了,因此我编写了步骤并重新打印了图像以使其具有最新性。

If you want to see the manual of Informatica, it is linked at the end of the article as a Source.

如果要查看Informatica手册,则将其作为源链接在文章末尾。

One difficult thing about downloading this content is that you need an SAP account to do it, so try to get one before starting this journey.

下载此内容的一件困难事是您需要一个SAP帐户才能执行此操作,因此在开始此旅程之前,请尝试获取一个。

Coming back, the download steps:

返回,下载步骤:

  • Go to the SAP Service Marketplace: http://service.sap.com/support

    转到SAP Service Marketplace: http : //service.sap.com/support

  • Enter your SAP Service Marketplace user name and password. The SAP Support Portal page appears.

    输入您的SAP Service Marketplace用户名和密码。 出现“ SAP支持门户”页面。
Source: Writer 资料来源:作家
Source: Writer 资料来源:作家
Source: Writer 资料来源:作家
  • Click the Download

你可能感兴趣的:(python,人工智能,java,大数据,算法)