PDA

Ver la Versión Completa : Reuse_alv_hierseq_list_display


mitcheinfo
08/04/14, 13:07:53
Hola a todos, muy buenas.

Necesito añadir en el ALV tipo REUSE_ALV_HIERSEQ_LIST_DISPLAY un logo de la compañía y no encuentro la solución a ver si alguién me puede ayudar.

Ya realice varias pruebas y sigo sin lograr un resultado.

Ya utilice esa función. el texto 'prueba logo' sale bien en el resultado pero el logo no sale. La función esta dentro del perform:
FORM TOP_OF_PAGE

Aqui está el ejemplo del código que estoy utilizando:

CLEAR header.
header-typ = 'H'.
header-info = ' Prueba logo'
APPEND header TO it_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
i_logo = 'ENJOYSAP_LOGO'
it_list_commentary = it_header
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.

ximena251
08/04/14, 17:10:50
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_top_of_page = 'DISPLAY_LOGO'
i_background_id = 'LOGO_ALV2'
i_grid_title = 'Información de vuelo'
is_layout = wa_layout
it_fieldcat = it_fieldcat
TABLES
t_outtab = it_sflight.


wa_header-typ = 'S'.
wa_header-key = 'Usuario:'.
wa_header-info = sy-uname.
APPEND wa_header TO it_header.
CLEAR wa_header.

wa_header-typ = 'S'.
wa_header-key = 'Fecha:'.
DATA: fecha_sistema(10).
WRITE sy-datum TO fecha_sistema USING EDIT MASK '__/__/____'.
wa_header-info = fecha_sistema.
APPEND wa_header TO it_header.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_header
i_logo = 'AEROPLANE'.

REFRESH it_header.


Un ejemplo sería así.

mitcheinfo
08/04/14, 17:48:36
Con la función : REUSE_ALV_GRID_DISPLAY realice una prueba y si que funciona. Pero el problema aún sigue ya que en el programa utiliza la función: REUSE_ALV_HIERSEQ_LIST_DISPLAY