title: Is it possible to split an xml file and do parallel processing of files in ABAP?
body: <p>I have an xml file containing many records. These records are used to update a custom table in SAP. Now my requirement is to split the file if the  number of records are greater than 60k and process each file separately. E.g.: If the number of records in xml file is 100k, then it should get split into two files of 60k and 40k and each file should be processed separately. I have done same type of things with csv files. I can split it and process it in parallel. But for xml files, it is very difficult. I am not able to do it. When I use open dataset in text mode and then use read dataset, then I can't read the file line by line. Again opening dataset in binary mode also fails. Please give me a logic to split the xml file. I am not able to do it.</p>
  
  <p>My xml file is:</p>
  
  <pre><code>&lt;Batch&gt;
  &lt;header&gt;
  &lt;system&gt;ABC&lt;/system&gt;
  &lt;time&gt;20160428202244&lt;/time&gt;
  &lt;user&gt;a456&lt;/user&gt;
  &lt;recver&gt;5550458319J&lt;/recver&gt;
  &lt;sender&gt;29468422437&lt;/sender&gt;
  &lt;/header&gt;
  &lt;status id="01006102739077803428"&gt;
  &lt;A&gt;305430887B&lt;/A&gt;
  &lt;B&gt;2&lt;/B&gt;
  &lt;C&gt;20160404&lt;/C&gt;
  &lt;D&gt;Y&lt;/D&gt;
  &lt;E&gt;N&lt;/E&gt;
  &lt;F&gt;N&lt;/F&gt;
  &lt;G&gt;Y&lt;/G&gt;
  &lt;/status&gt;
  &lt;status id="09007300449401352520"&gt;
  &lt;A&gt;305449919L&lt;/A&gt;
  &lt;B&gt;2&lt;/B&gt;
  &lt;C&gt;20160404&lt;/C&gt;
  &lt;D&gt;N&lt;/D&gt;
  &lt;E&gt;Y&lt;/E&gt;
  &lt;F&gt;N&lt;/F&gt;
  &lt;G&gt;Y&lt;/G&gt;
  &lt;/status&gt;
  &lt;trailer&gt;
  &lt;numrecords&gt;2&lt;/numrecords&gt;
  &lt;/trailer&gt;
  &lt;/Batch&gt;
  </code></pre>
  
  <p>I have told that my file size is approx 0.2 GB. Now the file size may increase depending on the data extract. Please help.</p>