Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Fieldcat: change header of a column

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

oops.. I got it:)

I forgot to modify my fieldcat.

Former Member
0 Kudos

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