PDA

Ver la Versión Completa : Alv


Alfredosite
09/05/08, 20:21:36
Hola amigos.

Una consulta estoy leyendo una tabla, la cual esta cargada con datos de importes los cuales algunos campos tienen como valor 0.00. Y al mostrarlos en el ALV salen en blanco.

Que campo del slis_layout tengo que modificar para mostrar dicho valor (ya no en blanco).

Muchas Gracias.

Alfredo:eek: :confused:

larmadovr
09/05/08, 20:50:19
Tengo un ALV con importes el cual esta declarado de la siguiente manera.

*******************
Tabla Z
CECO KOSTL CHAR 10
NOMBRECC KLTXT CHAR 40
NOMBRESUBGPO ZNOMBRESUBGPO CHAR 30
CVECON ZCONCEPTOP NUMC 6
NOMBRECON ZNOMBREPREP CHAR 80
CUENTA HKONT CHAR 10
IMPORTE1 DMBTR CURR 13
IMPORTE2 DMBTR CURR 13
*******************

TYPES: BEGIN OF st_output.
INCLUDE STRUCTURE zrcaptpreg.
TYPES: END OF st_output.

DATA: gt_output TYPE STANDARD TABLE OF st_output WITH HEADER LINE.


CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
it_fieldcat = gt_fieldcat[]
it_events = gt_events[]
is_layout = int_flay
i_save = 'X'
IS_VARIANT = g_variant
TABLES
t_outtab = gt_output.


Y si me manda los 0.00.


Pega el código donde estás declarando el campo importe. Tal vez lo tengas como type c o string y por eso no muestra los 0

Alfredosite
12/05/08, 19:04:26
Tengo un ALV con importes el cual esta declarado de la siguiente manera.

*******************
Tabla Z
CECO KOSTL CHAR 10
NOMBRECC KLTXT CHAR 40
NOMBRESUBGPO ZNOMBRESUBGPO CHAR 30
CVECON ZCONCEPTOP NUMC 6
NOMBRECON ZNOMBREPREP CHAR 80
CUENTA HKONT CHAR 10
IMPORTE1 DMBTR CURR 13
IMPORTE2 DMBTR CURR 13
*******************

TYPES: BEGIN OF st_output.
INCLUDE STRUCTURE zrcaptpreg.
TYPES: END OF st_output.

DATA: gt_output TYPE STANDARD TABLE OF st_output WITH HEADER LINE.


CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
it_fieldcat = gt_fieldcat[]
it_events = gt_events[]
is_layout = int_flay
i_save = 'X'
IS_VARIANT = g_variant
TABLES
t_outtab = gt_output.


Y si me manda los 0.00.


Pega el código donde estás declarando el campo importe. Tal vez lo tengas como type c o string y por eso no muestra los 0

Muchas gracias Mr. solucionado el problema. Gracias por la orientación buen dia.