title: Working example with SELECT datasource~* syntax
body: <p>I'm still baffled that examples given in the SAP keyword documentation are not accepted in a system of the respective ABAP version.</p>
  
  <p>I'm trying to run the <a href="http://help.sap.com/abapdocu_740/en/abapselect_clause_cols.htm#!ABAP_VARIANT_1@1@" rel="nofollow">example</a> given for <code>SELECT datasource~* ...</code> on an ABAP 7.40 system but get the error </p>
  
  <blockquote>
    <p>"," is not allowed here since it contains an invalid character or it is a keyword [...]</p>
  </blockquote>
  
  <p>When removing the <code>,</code>, the error is</p>
  
  <blockquote>
    <p>No component exists with the name "*". "*".</p>
  </blockquote>
  
  <p>The example in the <a href="http://help.sap.com/abapdocu_740/en/abapselect_clause_cols.htm#!ABAP_VARIANT_1@1@" rel="nofollow">keyword documentation</a> is </p>
  
  <pre><code>TYPES BEGIN OF structure.
  TYPES carrname TYPE scarr-carrname.
  INCLUDE TYPE spfli AS spfli.
  TYPES url TYPE scarr-url.
  TYPES END OF structure.
  
  DATA itab TYPE STANDARD TABLE OF structure WITH EMPTY KEY.
  
  SELECT scarr~carrname, spfli~*, scarr~url
         FROM scarr INNER JOIN spfli ON scarr~carrid = spfli~carrid
         INTO TABLE @itab.
  
  cl_demo_output=&gt;display( itab ). 
  </code></pre>
  
  <p>What would be a correct example? And/or: which ABAP version should my system have to accept this example (and how to check that)?</p>