SAP .Net Connector 3.0-如何从非SAP系统发送idoc? [英] SAP .Net Connector 3.0 - How can I send an idoc from a non-SAP system?

查看:217
本文介绍了SAP .Net Connector 3.0-如何从非SAP系统发送idoc?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用.Net连接器将数据发送到SAP系统。我已经能够非常轻松地将调用发送到RFC功能模块,但是似乎没有任何方法可以直接发送标准Idoc。这很奇怪,因为Idocs应该是与SAP进行通讯的标准通信工具。

I am trying to use the .Net connector to send data to an SAP system. I have been able to send calls to RFC function module quite easily but there doesn't seem to be any way to send a standard Idoc directly. This is quite weird because Idocs are supposed to be the standard communication tool to talk with SAP.

有人发现是否可以这样做吗?

Has anyone found if/how it's possible to do it?

推荐答案

据我所知,SAP目前没有提供用于处理IDoc的.NET连接器(NCo)的开发库。如果您想使用NCo,则必须自己编写IDoc处理代码。之所以可能,是因为IDoc通常也通过调用特殊的远程功能模块(例如IDOC_INBOUND_ASYNCHRONOUS)进行传输。但这会变得非常麻烦且困难,特别是如果它也应与非Unicode ABAP系统以及中文,日语或韩语等多字节代码页一起使用时。

As far as I know there is currently no development library offered by SAP for the .NET Connector (NCo) for dealing with IDocs. If you would like to use the NCo, you have to code this IDoc handling stuff on your own. It's possible because also IDocs are usually transferred by calling special Remote Function Modules (e.g. IDOC_INBOUND_ASYNCHRONOUS). But this can become really cumbersome and difficult, especially if it should also work with non-unicode ABAP systems and multi-byte code pages like Chinese, Japanese or Korean.

如果您不需要坚持使用NCo,我认为使用IDocs进行自己的开发的最简单方法是切换到Java并结合使用SAP Java Connector(JCo)和SAP Java IDoc类库插件。
NCo和JCo具有非常相似的API,但是不幸的是,.NET环境缺少此Java IDoc类库附加组件-至少它不是SAP提供的,我也不知道其他任何东西。 NET库。

But if you do not need to stick to NCo, I think the easiest way to do own development with using IDocs, is to switch to Java and use the SAP Java Connector (JCo) in conjunction with the SAP Java IDoc Class Library add-on. NCo and JCo have a very similar API, but this Java IDoc Class Library add-on is what is unfortunately missing for the .NET environment - at least it is not offered by SAP and I also do not know any other .NET library for this.

这篇关于SAP .Net Connector 3.0-如何从非SAP系统发送idoc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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