ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IDOC Segment creation

Post new topic  Reply to topic
 IDOC Segment creation « View previous topic :: View next topic » 
Author Message
JitaSJ
PostPosted: Thu Mar 08, 2007 8:38 pm    Post subject: IDOC Segment creation Reply with quote

Newbie

Joined: 07 Feb 2007
Posts: 2

Hi

I have to create the following structure

<GL>
<Header>
<Detail>
<acgl>
<a>...</a>
<b>...</b>
<c>...</c>
</acgl>
<accr>
<d>amount</d>
<e>...</e>
<f>...</f>
</accr>
</Detail>
</Header>
</GL>

In my message flow I have to insert the following:

<acgl>
<a>...</a>
<b>...</b>
</acgl>
<accr>
<d> - amount</d>
</accr>

This is done for balancing of output idoc structure.
The problem I am facing now is incorrect order of segments.My output is:
<acgl>.....</acgl>
<acgl>.....</acgl>
<accr>.....</accr>
<accr>.....</accr>

THe required output is:
<acgl>.....</acgl>
<accr>.....</accr>
<acgl>.....</acgl>
<accr>.....</accr>
As the second combinationof acgl and accr is to balance the first set.

I have tried a lot of things but to no avail.
THe last thing I tried was to use...CREATE LASTCHILD..Adn force creation of the structure.The structure is being created but I have to assign the values,which is not taking place.
Please help out!!
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Fri Mar 09, 2007 12:00 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi JitaSJ,

You should paste ur the existing code for better help.

In any case, I think you should code on the following lines...i'm assuming that the acgl and accr segments are equal in number...

Reference to first acgl;
Reference to first accr;

While lastmove(acgl) do

---Create the acgl segment in output..then its children
---Create the accr segment in output..then its children

---move acgl reference to next acgl segment in input;
---move accr reference to next accr segment in input;

End While;

This logic should work, and you can get the commands from the ESQL pdf.

If this is not what you need, then please paste your existing code.

Regards.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IDOC Segment creation
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.