Ver Mensaje Individual
  #1  
Viejo 01/03/13, 22:01:47
Avatar de ABellamy
ABellamy ABellamy is offline
Member
 
Fecha de Ingreso: dic 2011
Mensajes: 44
Encabezado en ALV

Hola buena tarde.
Tengo un ALV y le quiero poner un encabezado, pero no me sale. Solo aparece un cuadro.
No se que me hace falta
Aqui el codigo:


FORM top_of_page .
* Declaraciones encabezado ALV.
DATA:
t_header TYPE slis_t_listheader,
st_header TYPE slis_listheader,
t_line LIKE st_header-info,
ld_lines TYPE i,
ld_linesc(10) TYPE c,
ls_line TYPE slis_listheader.
* BREAK-POINT.
* Título del reporte.
REFRESH t_header.
st_header-typ = 'H'.
st_header-info = 'Reporte Entregas y Pedidos'.
APPEND st_header TO t_header.
CLEAR st_header.

* Fecha de ejecución.
st_header-typ = 'S'.
st_header-key = 'Fecha: '.
CONCATENATE sy-datum+6(2) '/'
sy-datum+4(2) '/'
sy-datum+4
INTO st_header-info.
APPEND st_header TO t_header.
CLEAR st_header.

* Hora.
st_header-typ = 'S'.
st_header-key = 'Hora: '.
CONCATENATE sy-uzeit(2) ':'
sy-uzeit+2(2) ':'
sy-uzeit+4(2)
INTO st_header-info.
APPEND st_header TO t_header.
CLEAR st_header.

* Usuario.
st_header-typ = 'S'.
st_header-key = 'Usuario: '.
MOVE sy-uname TO st_header-info.
APPEND st_header TO t_header.
CLEAR st_header.

* Display de título.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_header
i_logo = 'ZLMEXICHEM'
.

ENDFORM. " TOP_OF_PAGE


Espero me puedan ayudar.



Saludos.
__________________
Es más fácil encontrar el final del arcoíris que el de un estándar SAP.

Úlima edición por ABellamy fecha: 20/03/17 a las 03:25:28.
Responder Con Cita