Friday, December 4, 2015

SALV with toolbar

  data lo_salv type ref to cl_salv_table.

  try.
      cl_salv_table=>factory(
         importing r_salv_table lo_salv
         changing t_table [...]
       ).
      lo_salv->get_functions)->set_all). " activate toolbar
      lo_salv->get_columns)->set_optimize'X' ).
      lo_salv->get_columns)->get_columncolumnname 'MANDT' )->set_technical).
      lo_salv->display).
    catch cx_salv_msg.
      write 'SALV kann nicht dargestellt werden'(002).
    catch cx_salv_not_found.
      write 'SALV kann nicht dargestellt werden'(002).
  endtry.
 

No comments:

Post a Comment

SAP ABAP: Determine Timezone for Plant

    DATA:       lt_tzone TYPE STANDARD TABLE OF tznzone WITH DEFAULT KEY,       l_tzone  TYPE tznzone.     " get time zone for plant   ...