01-14-2009 9:20 AM
Hi experts,
I want to change the default header of a coulumn in my alv list.
I gave seltext_m, seltext_l and seltext_s different values, but it is not displayed, instead of it the program displays the header from the DDIC reference. What parameter should I set to fix this problem?
I'm using ALV_GRID_DISPLAY and FIELDCATALOG_MERGE
Edited by: mrwhite on Jan 14, 2009 10:20 AM
01-14-2009 9:23 AM
01-14-2009 9:27 AM
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = g_repid
i_internal_tabname = g_tabname_header
i_structure_name = 'REGUH_LST'
i_inclname = g_inclname
i_client_never_display = 'X'
CHANGING
ct_fieldcat = pt_fieldcat[].
LOOP AT pt_fieldcat WHERE tabname EQ g_tabname_header.
if pt_fieldcat-fieldname in lr_header_hwaer_ammount.
pt_fieldcat-ctabname = g_tabname_header.
pt_fieldcat-cfieldname = 'HWAER'.
pt_fieldcat-seltext_l = 'Field header'
modify pt_fieldcat.
endif.
ENDLOOP.
Loop at pt_fieldcat and change the required parameters.
regards,
Jinson