使用 SAPRFC 将 PHP 连接到 SAP R/3 - 无法初始化模块

发布于 2024-09-02 12:35:42 字数 385 浏览 8 评论 0原文

目标:使用 PHP 5.3 连接到 SAP ECC 6 配置:Windows XP 桌面。使用 SAPRFC PHP 开源扩展。将 php_saprfc_530.dll 添加到 php ext 目录,并将扩展添加到 php.ini

重新启动 Apache 时,应用程序事件报告此错误:

PHP 启动:saprfc:无法初始化模块 使用构建 ID=API20090626,TS 编译的模块 使用 build ID=API20090626,TS,VC6 编译的 PHP

这些选项需要匹配

  1. 有什么方法可以让它在不重新编译 PHP 的情况下工作(呃)?
  2. 有人成功使用 SAPRFC 吗?
  3. 从 PHP 连接到 SAP 的其他选项?

Goal: use PHP 5.3 to connect to SAP ECC 6
Config: Windows XP desktop. Using SAPRFC PHP open source extension. Added php_saprfc_530.dll to the php ext directory and added extension to php.ini

On restart of Apache, application event reported this error:

PHP Startup: saprfc: Unable to initialize module
Module compiled with build ID=API20090626,TS
PHP compiled with build ID=API20090626,TS,VC6

These options need to match

  1. Any way to get this to work without recompiling PHP (ugh)?
  2. Anyone is using SAPRFC successfully?
  3. Other options to connect to SAP from PHP?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

帅气尐潴 2024-09-09 12:35:42

我无法准确告诉您 php 连接器有什么问题,因为我使用的是 java 连接器。但还有另一种方法:尝试将ERP端的功能模块暴露为Web服务,然后通过SOAP调用它们。

I cant tell you exactly whats wrong with the php connector since I'm using the java connector. But there is another way: Try exposing the function modules on ERP side as a webservice and then call them via SOAP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文