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: 

ALV Row Header Question

Former Member
0 Kudos
122

Good Afternoon,

I'm using

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_program_name         = sy-repid
      i_structure_name       = c_tabname
      i_client_never_display = c_flag
    CHANGING
      ct_fieldcat            = t_alv_fieldcat[]
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.

to build the fieldcatalog for my ALV.

The parameter <i>c_tabname</i> is structure <i>Z3FIUP43_S</i> which i can edit using for example transaction <i>SE11</i>.

I've added field to <i>REGIO</i> to the structure in order to have another column in my ALV Grid which corresponds to this field, i've also created a domain for the field with descriptions.

The problem i'm having is that i can't see any text in the column header for this column.

How should this be done?

Basically what i want to do is to have a title for this column in the ALV.

Best Regards,

Pedro Gaspar

3 REPLIES 3

Former Member
0 Kudos
98
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_program_name         = sy-repid
      i_structure_name       = c_tabname
      i_client_never_display = c_flag
    CHANGING
      ct_fieldcat            = t_alv_fieldcat[]
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.

loop at  t_alv_fieldcat into  wa_t_alv_fieldcat where fieldname eq 'REGIO'.
  wa_t_alv_fieldcat-seltext_m = 'Region'.
  modify t_alv_fieldcat from wa_t_alv_fieldcat.
endloop.

Former Member
0 Kudos
98

Hi,

the data element i.e attached to REGIO has field labels filled in. if not fill them u will get the title for ur column then.

Regards,

Sam

Former Member
0 Kudos
98

Whether u have provided Field Lables for the DATA ELEMENT which u have created? Short text what ever u have provided will get displayed here.

Else u can specify the seltext_m in the fieldcatalog and modify the same.

Rewrd if this helps.