| vishal 2005-12-27, 6:03 pm |
| Hello,
I am facing some problems while sending information from my source schema to
a destination schema (generated by EDI Accelerator).
The issue is that in my soucre schema under the Header node, I have multiple
occurances of Detail Record and each Detail has many Products.
I need to find a way to accociate a count to the Detail & Product nodes of
the destination schema.
e.g I receive 2 Details, and for each Detail I received 2 Products under my
Header record..
The output I am looking for:
1, 0 --> Header
2, 1 --> Detail
3, 2 --> Product
4, 2 --> Product
5, 1 --> Detail
6, 5 --> Product
7, 5 --> Product
On the left hand side is the number of times the a particular segment is
created and on the right hand side the count becomes the parent.
e.g. Header has no parent so its 1 (count), 0 (parent), Detail is the second
node so its 2 (count) and its parent is header (1); Product is the third node
thus, 3 (count) and parent is (2) and since there are multiple Products the
count keeps on increasing but Parent remains the same. Unless it reaches the
next detail where the previous count becomes the parent and count continues.
I know its a trickey thing to understand but I have tried my best to
simplify the issue.
I will be thankful if any can assist me with identifying the right solution.
Do I need to to create a custom functoid, scripting functoid or is it
possible to get it done by default functoids provided by BizTalk 2004.
I will be thankful to anyone who can help or provide some feedback.
Vishal.
|