Hi experts,
I have a question regarding a File to Proxy scenario which uses FCC.
We have a source file which contains different rows of different structure, like:
HDR:123:Test:783:1000:20130101:HBA’
REC1:Test:20130404:Description’
REC1:Test:20130820:Description2’
REC2:GBR:Test:20130810’
…
The number of record types can vary (except the HDR record which only occurs once).
The XML structure after FCC looks as follows:
<Header>
Contains HDR record type fields
</Header
<Item_REC1>
Contains REC1 record type fields of occurrence 1 in file
</Item_REC1>
<Item_REC1>
Contains REC1 record type fields of occurrence 2 in file
</Item_REC1>
<Item_REC2>
Contains REC2 record type fields of occurrence 1 in file
</Item_REC2>
…
This file needs to be transferred into a generic proxy structure which has one header and a 1:n sub-structure which holds a subset of all fields of all different record types REC1, REC2, REC3, etc.
The format looks as follows:
Header (should hold HDR record)
|__Item 1 (should hold all other record types, like REC1, REC2, REC3, etc.)
|__Item 2
|__Item 3
As mentioned sub-structure Item contains specific fields of all record types, means all record types (except HDR) need to be mapped to this generic structure.
How do I achieve this?
Thanks a lot for your help.