This is the follwoing source & target structures and i am using message split.
Source Structure is as fallows :
Target Structure is as fallows :
Record Set (0..Unbounded)
We have to create a file per site.
In source structure Segment1 would present multiple times.Idoc would contain multiple sites data.The site value hold by Field6.If the idoc contains 3diffrent sites values then we have to generate 3 files.If the idoc contains same site data in diffrent occurences we have to collect the data from same site specific occurences and generate a file.
Suppose an idoc contain Segment1 for 3 times, The site values are AAA,BBB,CCC.Then we have to create 3 Files.
If the site values are like AAA,BBB,AAA then we have to create 2 files only.We have to combine the data for Site AAA and write a one file for Site AAA & one file for Site BBB.
Could any one give the suggestion on this regarding:)
All helpful answers should rewarded with points.