Skip to Content
0
Former Member
Nov 03, 2011 at 09:53 AM

Creating Files Dynamically based on Condition

29 Views

Hi Experts,

I want to create a scenario in which I want to have N number of target files based on some condition.

Suppose I have following Source structure .

<ns0:MT_Employee_Src xmlns:ns0="urn://FileToFile_ERD">
   <Details>
      <EmpId>1</EmpId>
      <Name>Rabi</Name>
      <Designation>ABAP</Designation>
   </Details>

      <EmpId>4</EmpId>
      <Name>Satya</Name>
      <Designation>ABAP</Designation>
   </Details>
</ns0:MT_Employee_Src>

My requirement is I want to have 2 different target files based on EmpId.

And this should be dynamic that means N number of EmpId in my source will create N number of files.

Can anyone help me to solve this?

Any kind of suggestion will be appreciated.

Thanks

Rabi