cancel
Showing results for 
Search instead for 
Did you mean: 

Formato fecha en SLIS ALV

0 Kudos

Tengo un TYPE-POOLS: slis para pintar un ALV y uno de los campo es una fecha:

Código:


TYPES: BEGIN OF data,

.....

ab(8) TYPE c,

....

END OF data.

.....

wa_fieldcat-fieldname = 'AB'.

wa_fieldcat-seltext_m = 'VÁLIDO DESDE'.

APPEND wa_fieldcat TO it_fieldcat.

CLEAR wa_fieldcat.

.....


Me los pinta de la forma yyyymmdd. ¿Se podría pintar dd.mm.yyyy? Gracias.

Accepted Solutions (1)

Accepted Solutions (1)

RicardoRomero_1
Active Contributor
0 Kudos

Hola,

No crees el campo así:

ab(8) TYPE c,


decláralo así;


ab TYPE sy-datum


y ya te saldrá la fecha correctamente.


O créalo como un char de 10 y usa la función CONVERSION_EXIT_PDATE_OUTPUT para pasarlo a formato externo.



Saludos.

Answers (0)