title: Create internal table as subset of columns of another internal table
body: <p>How do I get a single column of a table by index in ABAP?</p>
  
  <p>For example I have:</p>
  
  <pre><code>A B C
  1 2 3
  1 2 3
  </code></pre>
  
  <p>and I want to get column B with [2,2].</p>
  
  <p>EDIT:
  This is my code</p>
  
  <pre><code>DATA:
   l_r_data            TYPE REF TO data,
   ld_e_cell_data         TYPE rrws_t_cell.
  
              CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
                EXPORTING
  *               i_infoprovider          =                  
                  i_query                 = l_query_name           
  *               i_view_id               =                  
                  i_t_parameter           = l_t_parameter                 
                IMPORTING
                  e_axis_info             = ld_e_axis_info           
                  e_cell_data             = ld_e_cell_data                
                  e_axis_data             = ld_e_axis_data                 
                  e_txt_symbols           = ld_e_txt_symbols              
                EXCEPTIONS
                  no_applicable_data      = 1                
                  invalid_variable_values = 2                
                  no_authority            = 3                
                  abort                   = 4                
                  invalid_view            = 6                
                  OTHERS                  = 7.
              IF sy-subrc &lt;&gt; 0.
  **             MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
  **               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ENDIF.
  </code></pre>
  
  <p>Now I just need the data from the second column of ld_e_cell_data  in l_r_data.</p>