Ver la Versión Completa : Tipos De Letra En Titulos Alv
acha3318
20/02/09, 19:38:07
Saludos,
Como puedo cambiar los tipos de letra en los titulos de un reporte ALV ?
DavidXD_XD
23/02/09, 15:19:04
Hola, te refieres a la cabecera del ALV, o al catalogo???
acha3318
23/02/09, 15:49:27
Hola David, me refiero a la cabecera del ALV.
Hola, te refieres a la cabecera del ALV, o al catalogo???
DavidXD_XD
23/02/09, 17:59:11
Bueno, creo q hay 3 tipos de letras,
H -> Titulo
S -> Normal
K -> Cursiva
Ese tipo la indicas al momento de formar la cabecera al ALV, ejemplo:
*&---------------------------------------------------------------------*
*& Form top_of_page
*&---------------------------------------------------------------------*
* Construyendo cabecera ALV
*----------------------------------------------------------------------*
FORM top_of_page.
* Variables locales
DATA: lt_listheader TYPE slis_t_listheader,
ls_line TYPE slis_listheader,
l_name1 TYPE t001w-name1,
l_butxt TYPE t001-butxt,
l_uzeit(8) TYPE c,
l_datum(10) TYPE c,
l_cont TYPE string.
REFRESH lt_listheader.
* Título de cabecera
CLEAR ls_line.
ls_line-typ = 'H'.
ls_line-info = text-h01.
APPEND ls_line TO lt_listheader.
* Usuario
CLEAR ls_line.
ls_line-typ = 'S'.
ls_line-key = text-h02.
SELECT SINGLE name_textc
INTO ls_line-info
FROM user_addr
WHERE bname = sy-uname.
APPEND ls_line TO lt_listheader.
* Centro CPAC
CLEAR ls_line.
ls_line-typ = 'S'.
ls_line-key = text-h03.
SELECT SINGLE name1
INTO l_name1
FROM t001w
WHERE werks = p_cpac.
CONCATENATE p_cpac
'-'
l_name1
INTO ls_line-info SEPARATED BY space.
APPEND ls_line TO lt_listheader.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = lt_listheader
i_logo = 'LOGO.
ENDFORM. " top_of_page
www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web