Skip to Content
author's profile photo Former Member
Former Member

Fieldcat: change header of a column

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 09:23 AM

    oops.. I got it:)

    I forgot to modify my fieldcat.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.