on 06-16-2010 7:38 AM
Dear Experts,
I developed a IDoc to FCC scenario, and our requirement is to produce a file with below
Header data.........
Master data.........
Item data............
Master data.........
Item data............
But after developing the mapping the output I am getting is
Header data.........
Master data.........
Master data.........
Item data............
Item data............
The problem here is that Master and Item data should come alternatively- as they are derived per line item.
Please guide to solve the above issue.
Many thanks,
MK
Hi MK,
Master Data and Item Data are clubbed together at the receiver side when they occur more than once.
In order to achieve what you want using message mapping just create a dummy node which occers 0.. unbounded and let master data and item data be the child node of this dummy node.
You can neglect this dummy node in Receiver file content conversion, the output will be as per your requirement.
Regards,
Gautam Purohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Gautham,
I followed your approach, but still the mapping output is NOT correct
Output with two line items:
Header
Data
Master
Master
Item
Item
I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).
And if I make Master and Item ocuurence to 0..1 - the output is like below
Header
Data
Master
Item
output should look as below, right?
Header
Data
Master
Item
Data
Master
Item
Please suggest further to resolve the issue.
Thanks Gautham,
I followed your approach, but still the mapping output is NOT correct
Output with two line items:
Header
Data
Master
Master
Item
Item
I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).
And if I make Master and Item ocuurence to 0..1 - the output is like below
Header
Data
Master
Item
output should look as below, right?
Header
Data
Master
Item
Data
Master
Item
Please suggest further to resolve the issue.
Thanks Gautham,
I followed your approach, but still the mapping output is NOT correct
Output with two line items:
Header
Data
Master
Master
Item
Item
I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).
And if I make Master and Item ocuurence to 0..1 - the output is like below
Header
Data
Master
Item
output should look as below, right?
Header
Data
Master
Item
Data
Master
Item
Please suggest further to resolve the issue.
Thanks Gautham,
I followed your approach, but still the mapping output is NOT correct
Output with two line items:
Header
Data
Master
Master
Item
Item
I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).
And if I make Master and Item ocuurence to 0..1 - the output is like below
Header
Data
Master
Item
output should look as below, right?
Header
Data
Master
Item
Data
Master
Item
Please suggest further to resolve the issue.
Thanks Gautham,
I followed your approach, but still the mapping output is NOT correct
Output with two line items:
Header
Data
Master
Master
Item
Item
I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).
And if I make Master and Item ocuurence to 0..1 - the output is like below
Header
Data
Master
Item
output should look as below, right?
Header
Data
Master
Item
Data
Master
Item
Please suggest further to resolve the issue.
Thanks Gautham,
I followed your approach, but still the mapping output is NOT correct
Output with two line items:
Header
Data
Master
Master
Item
Item
I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).
And if I make Master and Item ocuurence to 0..1 - the output is like below
Header
Data
Master
Item
output should look as below, right?
Header
Data
Master
Item
Data
Master
Item
Please suggest further to resolve the issue.
Hi,
Te below mentioned sequence can be achieved by re-arranging target structure. Let us know the target structure, so we may suggest the solution on this.
preferrably structure sequence should be ,
Header -- 0..1
Master -- 0...n
-
> Detail/item -
0..n
Make detail/item as substructure of master...:-))
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Swarup,
The receiver structure required is below(fixed length format)
eg:
H123456789
M123456789
D123456789
M987654321
D987654321
If we create Item data node as substructure of Master node, then what we need mention in the Recordset structure
Currently I mentioned as below
Header,Master,Item
Please suggest further to resolve the issue.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.