2

One of our partners requires that a "summary" edi message is appended to any EDI invoice interchange (apparently known as "invoice list"). This message contains a reference that every individual invoice should have in an RFF segment, as well as the cummulated MOA values.

My question is: does BizTalk Server (in particular BizTalk 2009) provide a convenient way to append another EDI message to the outgoing EDI batch upon release? I cannot find anything on MSDN.

My current idea is to append it in the send pipeline of the port that will transmit the batch, but I really would like a more convenient way.

4

2 回答 2

4

我这样说吧,您的贸易伙伴有一个相当不寻常的、也许是独特的要求,它本身就是不方便的。所以,对不起,在 BizTalk 中没有“方便”的方法来完成这个,可能在任何平台上也一样。

无论如何,这就是我会做的事情,或者至少我会尝试一些事情。

  • 正常批处理发票,例如使用批处理服务。
  • 使用编排订阅批处理。
  • 将批次映射到摘要,即任何事务,但它必须是 X12/EDIFACT。
  • 使用双输入 Map 创建附加摘要的批次。
  • 使用 EDI 汇编器发送到发送端口。

我认为将自定义 Xslt 用于附加地图会更容易。这将使您不必为 BizTalk 实际附带的 Batch 消息创建架构。

Xslt 本身非常简单,因为您只需复制两条消息。仅供参考,批处理消息编排类型将是 Microsoft.XLANGs.BaseTypes.Any。您不能将 XmlDocument 用作地图源。

于 2014-08-18T15:01:07.857 回答
1

我曾经有过同样的要求,但我需要能够完全控制批处理中 EDI 消息的顺序,而不是一条特定的摘要消息。

这就是我当时解决这个问题的方法:http: //blog.codit.eu/post/2009/11/10/Outbound-EDI-batching-in-BizTalk-Server-2009.aspx

它确实有一些缺点,但知道它可能很方便。

于 2014-08-20T07:55:23.630 回答