2007 Feb 22 3:32 PM
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
2007 Feb 22 3:51 PM
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.
2007 Feb 22 3:55 PM
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
2007 Feb 23 6:34 AM
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.