例外:调用 RFC 时 RFC 回调服务器不可用 [英] Exception: RFC callback server not available while calling RFC

查看:27
本文介绍了例外:调用 RFC 时 RFC 回调服务器不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将文件从服务器目录上传到 SAP CRM 系统(机会的附件),因此我使用了 cl_crm_documents 的方法 create_with_file> 班级.

I'm trying to upload a file from a server directory to the SAP CRM System (attachment to an Opportunity), therefore I am using the method create_with_file of the cl_crm_documents class.

为了调用这个方法,我使用了一个我自己创建的 RFC-Function.如果我在 Function Builder 中测试我的 RFC-Function,一切正常.如果我从外部系统(在我的情况下为 MS-Outlook)执行 RFC,则会出现错误:异常:RFC 回调服务器不可用".
我启动了调试器,程序运行了大约一半(因此连接有效):create_with_file 调用几个函数,直到调用 RFC_START_PROGRAM 函数.错误正好发生在这一行.

To call this method I am using a RFC-Function created by myself. If I test my RFC-Function within the Function Builder, everything works fine. If I execute the RFC from a external System (in my case MS-Outlook) an error occurs: "Exception: RFC callback server not available".
I started the debugger and the program runs about half way through (So the connection works): The create_with_file calls a couple of functions until the RFC_START_PROGRAM function is called. The error occurs exactly at this line.

有谁知道为什么只有当我远程调用该函数时才会发生错误?如何解决这个问题?

Does anybody know why the error occurs only if I call the function remotely? How to solve this?

推荐答案

我无权访问 CRM 系统,但这可能是正在发生的事情:您使用的类尝试在前端 PC 上执行某些操作使用 SAP GUI.为此,它执行 RFC 回调或 SAP GUI.只要您使用函数构建器,这就可以正常工作,因为有可用的 GUI 连接.一旦您使用其他方式调用功能模块,GUI 就不再存在并且程序将无法运行.我建议您检查代码,看看是否有一些参数或自定义可以让您抑制 RFC 调用...

I don't have access to a CRM system, but this is what's probably happening: The class you use tries to perform some action on the front-end PC using the SAP GUI. For this, it performs an RFC call back or the SAP GUI. This works fine as long as you are using the function builder because there's a GUI connection available. Once you use some other means to invoke the function module, the GUI is no longer there and the program won't work. I'd suggest you check the code to see whether there is some parameter or customization that allows you to suppress the RFC call...

这篇关于例外:调用 RFC 时 RFC 回调服务器不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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