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 » Addition of IDoc Control Record

Post new topic  Reply to topic
 Addition of IDoc Control Record « View previous topic :: View next topic » 
Author Message
whydieanut
PostPosted: Fri Feb 03, 2012 3:21 am    Post subject: Addition of IDoc Control Record Reply with quote

Disciple

Joined: 02 Apr 2010
Posts: 186

I need to convert an incoming CSV messge to an IDoc.
I am using the Mapping Node for thee transformation; and have got the DataRecord section being filled in by the incoming CSV message.

I am looking at a generic method to create the IDoc Control Record which can be used by different flows processing different types of IDocs.

What I currently am doing is:
Creating the IDoc using a mapping node (I am leaving the ControlRecord empty here)
After this I have a compute node that sets some Environment Variables (Values for some specific Control Record fields) depending on what IDoc is being processed.
I then have a sub flow that creates the Control Record section, using some hard coded values for some fields (that are common for all IDocs) and then using the Environment variables to set the remaining Control Record fields for the specific type of IDoc I am currently processing.


Is there a better way of achieving this?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Feb 03, 2012 1:07 pm    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

I would not use a WMB v7 mapping node. In WMB v7, I would use a Compute node. According to mqjeff, WMB v8 has substantial improvements in the mapping node.

WMB v7 mapping nodes are good only for the most elementary one-to-one mapping. Anything the least little complicated moves the WMB v7 mapping node out of consideration.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Feb 03, 2012 1:09 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
According to mqjeff, WMB v8 has substantial improvements in the mapping node.

The lab claims improvements. I've not tested it out, myself.

I've merely said that they're new and shiny.
Back to top
View user's profile Send private message
whydieanut
PostPosted: Fri Feb 03, 2012 8:00 pm    Post subject: Reply with quote

Disciple

Joined: 02 Apr 2010
Posts: 186

It's a one-to-one mapping.
Repeating lines in the CSV file need to be mapped to equal number of Segments in the Data Record of the IDoc.

As for the creation of the Control Record, what are your suggestions?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Feb 03, 2012 8:38 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

you seem to be doing just fine there filling in the control record and going about in a rational way.

Why rock the boat? Looks like it is working the right way for you...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
whydieanut
PostPosted: Fri Feb 03, 2012 8:39 pm    Post subject: Reply with quote

Disciple

Joined: 02 Apr 2010
Posts: 186

Thanks, that was reassuring...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Addition of IDoc Control Record
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.