MUNDOSAP

MUNDOSAP (foro/index.php)
-   RUEGOS Y PREGUNTAS (foro/forumdisplay.php?f=20)
-   -   Encabezado en ALV (foro/showthread.php?t=66359)

ABellamy 01/03/13 22:01:47

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 :mad:
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.

Kope 02/03/13 17:41:08

Hola,

este código seguramente te ayude: .

Saludos

ABellamy 06/03/13 17:09:23

Encabezado en ALV
 
Hola Kope.
Gracias por el tip, pero no era por ahi.
La imagen que utilizo no existe, jajajajaja.




Saludos.


Husos Horarios son GMT. La hora en este momento es 22:51:29.

www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web