title: Is there a way to prevent CL_SALV_TABLE from removing leading spaces?
body: <p>Is there a way to prevent an instance of <code>CL_SALV_TABLE</code> from removing leading spaces in the display?</p>
  
  <p>I have the following piece of code in which I put a single space in front of <code>Master</code> text and two spaces in front of <code>Slave</code> text.</p>
  
  <pre><code>REPORT zzy.
  
  CLASS lcl_main DEFINITION FINAL CREATE PRIVATE.
    PUBLIC SECTION.
      CLASS-METHODS:
        main.
  ENDCLASS.
  
  CLASS lcl_main IMPLEMENTATION.
    METHOD main.
      TYPES: BEGIN OF l_tys_test,
        name  TYPE string,
        value TYPE i,
      END OF l_tys_test,
      l_tyt_test TYPE STANDARD TABLE OF l_tys_test WITH EMPTY KEY.
  
      DATA(lt_test) = VALUE l_tyt_test(
        ( name = `Root` value = 0 )
        ( name = ` Master` value = 1 )
        ( name = `  Slave` value = 2 )
      ).
  
      cl_salv_table=&gt;factory(
        IMPORTING
          r_salv_table = DATA(lo_salv_table)
        CHANGING
          t_table = lt_test
      ).
      lo_salv_table-&gt;display( ).
    ENDMETHOD.
  ENDCLASS.
  
  START-OF-SELECTION.
    lcl_main=&gt;main( ).
  </code></pre>
  
  <p>Unfortunately the leading spaces get trimmed in the view.</p>
  
  <p><a href="https://i.stack.imgur.com/iutmF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iutmF.png" alt="Spaces get trimmed"></a></p>
  
  <p>In this <a href="http://scn.sap.com/community/abap/blog/2015/07/24/salv-tree-to-excel-xlsx" rel="nofollow noreferrer">tutorial</a> the guy seems to have made it somehow.</p>