解析SAP IDOC文件 [英] Parsing SAP IDOC files

查看:696
本文介绍了解析SAP IDOC文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在筹划与运行SAP的合作伙伴沟通。问题是,我们的ERP没有提供的方式与SAP的沟通,我们将需要提取必要的信息出来的IDOC文件自己的。

有没有在.NET这样做的一个简单的方法?像库(免费/商业)做所有繁重的工作?

我只是在寻找类似IDocLibrary.Parse(文件)',它会回报我对象的集合直接在IDOC文件转化为订单等。

我也读到了某种SAP .NET连接器。这是能够做到的事情就是我想要它做的事?

编辑:

SAP .NET连接器是没办法似乎。 据 http://www.dataxstream.com/ 2009/07 /介绍到了-SAP网连接器/

  

在特别,没有   内置到SAP的.Net功能   连接器用于分析各种数据   从IDOC领域。它是由该   接收程序就可以知道是什么   该IDOC的格式,以及如何   从IDOC提取数据。

解决方案

有来自SAP处理的IDoc一个C ++库,但它是很老: 这里有一个PDF描述它。不相信,如果你仍然可以得到该软件,如果这是怎么回事今天来帮助你。

大多数较新的库似乎是对Java开发的(一个例子可以找到的这里)..我想这不会帮助你多少,如果你正在寻找一个.NET解决方案。

不过,正如我在我的评论你的问题建议,你可以得到XI(Exchange集成)/ PI(流程集成)-infrastructure(是基于哪个Java)发送出的IDoc以XML格式。这应该是更容易处理比纯文本......

We are currently planning on communicating with a partner that is running SAP. The problem is that our ERP offers no way of communicating with SAP and we will need to extract the necessary info out of the IDOC files ourselves.

Is there an easy way of doing this in .NET? Like a library (free/commercial) that does all the grunt work?

I'm just looking for something like 'IDocLibrary.Parse(file)' and it'll return me a collection of objects that translate directly to the orders etc in the IDOC file.

I did read about some sort of SAP .NET Connector. Is this capable of doing what I want it to do?

edit:

SAP .NET Connector is no option it seems. According to http://www.dataxstream.com/2009/07/introduction-to-the-sap-net-connector/

In particular, there is no functionality built-in to the SAP .Net Connector for parsing the various data fields from an IDOC. It is up to the receiving program to know what the format of the IDOC is, and how to extract the data from the IDOC.

解决方案

There is a C++ library from SAP that handles IDocs, but it's quite old: Here's a PDF describing it. Not sure if you can still get the software and if that's going to help you today.

Most newer libraries seem to be developed for Java (one example can be found here) .. I guess that won't help you much if you're looking for a .Net solution.

However, as I suggested in my comment to your question, you may be able to get the XI (Exchange Integration) / PI (Process Integration)-infrastructure (which is Java based) to send out the IDocs in an XML format. That should be much easier to handle than "plain text" ...

这篇关于解析SAP IDOC文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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