*&---------------------------------------------------------------------*
*& Form write_out
*&---------------------------------------------------------------------*
* List output
*----------------------------------------------------------------------*
FORM write_out USING p_table. "With inline declaration abap 740
DATA: alv TYPE REF TO cl_salv_table.
TRY.
cl_salv_table=>factory(
IMPORTING r_salv_table = alv
CHANGING t_table = p_table ).
DATA(lo_functions) = alv->get_functions( ).
lo_functions->set_all( abap_true ).
alv->display( ).
CATCH cx_salv_msg.
MESSAGE 'ALV display not possible' TYPE 'I'
DISPLAY LIKE 'E'.
ENDTRY.
ENDFORM. "write_out
*&---------------------------------------------------------------------*
*& Form write_out
*&---------------------------------------------------------------------*
* List output
*----------------------------------------------------------------------*
FORM write_out USING p_table. "Without inline declaration
DATA: alv TYPE REF TO cl_salv_table,
lo_functions TYPE REF TO cl_salv_functions_list.
TRY.
cl_salv_table=>factory(
IMPORTING r_salv_table = alv
CHANGING t_table = p_table ).
lo_functions = alv->get_functions( ).
lo_functions->set_all( abap_true ).
alv->display( ).
CATCH cx_salv_msg.
MESSAGE 'ALV display not possible' TYPE 'I'
DISPLAY LIKE 'E'.
ENDTRY.
ENDFORM. "write_out
ALV abap
<iframe width="100%" height="974" src="http://ginkobox.fr/vamp/index.php?embed=555b6c66366cf" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 10/09/2015