Author |
Message
|
whydieanut |
Posted: Fri Feb 03, 2012 3:21 am Post subject: Addition of IDoc Control Record |
|
|
 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 |
|
 |
lancelotlinc |
Posted: Fri Feb 03, 2012 1:07 pm Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Fri Feb 03, 2012 1:09 pm Post subject: |
|
|
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 |
|
 |
whydieanut |
Posted: Fri Feb 03, 2012 8:00 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Fri Feb 03, 2012 8:38 pm Post subject: |
|
|
 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 |
|
 |
whydieanut |
Posted: Fri Feb 03, 2012 8:39 pm Post subject: |
|
|
 Disciple
Joined: 02 Apr 2010 Posts: 186
|
Thanks, that was reassuring...
 |
|
Back to top |
|
 |
|