Si recién le estás agarrando la mano al tema, yo te recomiendo que depliegues el ALV mediante funciones. Básicamente es una:
* Función que despliega el ALV.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_report
i_structure_name = 'IT_SALIDA'
is_layout = w_layout
i_save = 'X'
it_events = i_events
it_fieldcat = i_fieldcat
TABLES
t_outtab = it_salida
EXCEPTIONS
program_error = 1.
Donde lo importante previamente, además de la tabla it_salida, es que completes la estructura para el layout, la tabla de eventos, y la tabla del fieldcat, la cual se consigue mediante la función 'REUSE_ALV_FIELDCATALOG_MERGE'.
|