09-15-2008 5:15 PM
Hi people! I need some help!
I trying to set output lenght of a field to better view. I used in fieldcatalog OUTPUTLEN and set it to 50, but doesn't work...
Anyone can give me a tip?
Thanks!
i = i + 5.
CLEAR ltype_fieldcat.
ltype_fieldcat-col_pos = i.
ltype_fieldcat-fieldname = 'SOMA_6190'.
ltype_fieldcat-tabname = 'T_FINAL'.
ltype_fieldcat-ref_fieldname = 'DMBTR'.
ltype_fieldcat-ref_tabname = 'BSAD'.
ltype_fieldcat-seltext_s = 'Value Total Cod 6190'(025).
ltype_fieldcat-seltext_m = 'Value Total Cod 6190'(025).
ltype_fieldcat-seltext_l = 'Value Total Cod 6190'(025).
ltype_fieldcat-reptext_ddic = 'Value Total Cod 6190'(025).
ltype_fieldcat-outputlen = 50.
APPEND ltype_fieldcat TO t_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = l_repid
i_callback_pf_status_set = 'STATUS_GUI'
i_grid_title = 'Relatório de retenções de órgãos públicos'(021)
is_layout = l_layout
it_fieldcat = t_fieldcat[]
i_default = 'X'
i_save = 'X'
is_variant = l_variante
is_print = l_print
TABLES
t_outtab = t_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
09-15-2008 5:29 PM
also supply the intlen ,and ddic_outputlen.
ltype_fieldcat-reptext_ddic = 'Value Total Cod 6190'(025).
ltype_fieldcat-outputlen = 50.
ltype_fieldcat-intlen = 50.
ltype_fieldcat-DDIC_OUTPUTLEN = 50.
APPEND ltype_fieldcat TO t_fieldcat.
09-15-2008 5:29 PM
also supply the intlen ,and ddic_outputlen.
ltype_fieldcat-reptext_ddic = 'Value Total Cod 6190'(025).
ltype_fieldcat-outputlen = 50.
ltype_fieldcat-intlen = 50.
ltype_fieldcat-DDIC_OUTPUTLEN = 50.
APPEND ltype_fieldcat TO t_fieldcat.
09-15-2008 6:13 PM
If you have marked colwidth_optimize with an 'X' in the IS_LAYOUT structure the output lenght in fieldcat will not work.
See on your code if it is happening this.
Andrew83.
09-15-2008 7:19 PM
Thanks! Work adding intlen e dddic_len.
Thanks too for tip of optimized in layout structure!