title: when to use TYPE and LIKE in ABAP
body: <p>Why is this error</p>
  <blockquote>
  <p>NAME must a flat structure you can not use internal table,string referenceses or structure as component</p>
  </blockquote>
  <p>raised when I am using type in place of like in line no 2) dosen't show any error, when I am using like shows error.</p>
  <p>What is the difference between <code>LIKE</code> and <code>TYPE</code>?</p>
  <p>Code:</p>
  <pre><code>TYPES name(20) type c.    
  data student_name like name.   &quot;&lt;=============== like or type
  student_name = 'satya'.   
  write student_name.
  </code></pre>