on 07-12-2013 8:41 AM
Hi All,
I need to map the below input format to a specified sequence.
Source File
Source format | Target Needed format |
---|---|
Header1 Header2 Header3 (1....n) LineItem1 LineItem2 LineItem3 LineItem4 (1...n) HeaderCount,1 ItemCount,1 | Header1 LineItem1 LineItem2 ...n Header2 LineItem1 LineItem2 ...n HeaderCount,1 ItemCount,1 |
All Headers coming together in first few rows | Need Headers to get divided as per different LineItems |
Now,there is one common field in both Header and LineItem structure,which has to be used to group all Lineitems belonging to a particular Header into one at target side.
eg: Header has values - H,12,34,FIRST,SO_NUMBER
LineItem has values - L,abc,34,SO_NUMBER,890
Can anybody help me with graphical mapping to be used using node functions for the same.
Thanks
Neha
Hi Neha,
This is a basic case of creating hierarchy through data type design.
This is how you can do it:
Hope the message mapping explains the source and target data type definition:
Mapping for Record node:
Mapping for LineItem node:
Header node is mapped to constant value null so would be created once per Record. rest of the fields are one to one.
here is the test case:
Hope it helps!
Ambrish
Message was edited by: Ambrish Mishra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks... It got solved...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.