从 Python 查询 SAP 数据库? [英] Query SAP database from Python?

查看:29
本文介绍了从 Python 查询 SAP 数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以使用 Python 查询 SAP 数据库吗?

解决方案

Python SAP RFC 模块 似乎处于非活动状态 -最后一次(无关紧要的)提交 2 年前 - 但可能为您服务:<块引用>

Pysaprfc 是 SAP librfc(Windows 上的 librfc32.dll,Linux 上的 librfccm.so 或 librfc.so)的包装器.它使用 Thomas Heller 出色的 ctypes 扩展包来访问 librfc 并定义 SAP 兼容数据类型.

现代 SAP 版本采用 Web Service 方式 - 您可以构建一个 SAP Web 服务 并从 Python 使用它.

<块引用>

借助 SAP NetWeaver,开发人员可以连接应用程序和数据源,以使用 Web 服务集成流程.

特别是,开发人员可以使用一个基础架构以基于行业标准的方式定义、实施和使用 Web 服务.SAP NetWeaver 支持同步、异步、有状态和无状态 Web 服务模型 - 使开发人员能够支持不同的集成场景.

sapnwrfc 支持这个 SAP NetWeaver 功能,取代旧的 RFC SDK,并得到积极维护.

Can Python be used to query a SAP database?

解决方案

Python SAP RFC module seems inactive - last (insignificant ) commit 2 years ago - but may serve you:

Pysaprfc is a wrapper around SAP librfc (librfc32.dll on Windows, librfccm.so or librfc.so on Linux). It uses the excellent ctypes extension package by Thomas Heller to access librfc and to define SAP compatible datatypes.

Modern SAP versions go the Web Service way - you could build a SAP Web Service and consume it from Python.

With SAP NetWeaver, developers can connect applications and data sources to integrate processes using Web services.

In particular, developers can use one infrastructure to define, implement, and use Web services in an industry standards based way. SAP NetWeaver supports synchronous, asynchronous, stateful and stateless web service models - enabling developers to support different integration scenarios.

sapnwrfc supports this SAP NetWeaver functionality, supersedes the older RFC SDK, and is actively maintained.

这篇关于从 Python 查询 SAP 数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆