HI,
My scenario contains an IDOC which consists of multiple Site data.
The challenge here is splitting the incoming Idoc into different files based on the Value of Site.
Say My Idoc Structure is Like this.
Root
Node
-
Site1
Node
-
Fields
-
Fields
-
Fields
Node
-
Fields
-
Fields
Node
-
Site2
Node
-
Fields
-
Fields
-
Fields
Node
-
Fields
-
Fields
Node
---Site3...and so on.
So a single IDOC can contain data related to 6 different sites and each of their occurence can be unbounded.
The target Message type i am using is same for all the sites and also the mapping is same, However the files are to be generated as per the value of the SITE field,
So on a single occurence of an IDOC i may have to generate multiple files for multiple Sites.For example If IDOC contains data for SITE1,SITE2,SITE3 then i have to generate 3 Files for each each site.
what would be the best approach to do this.