title: Batch job to export data into CSV
body: <p>I'm doing my first ABAP job and I don't have much experience so I need a little help.</p>
  
  <p>What I want to do to create a batch job that runs every morning at a specific time, fetches data from different tables and exports it as a csv file. To create that batch job I can use transaction code SM36 or SM37.</p>
  
  <p>But I need some help how to fetch the data?</p>
  
  <p>Has anyone an example code that I can use or take a look at?</p>