‎2008 Apr 08 6:48 AM
Hi,
I want to change the ALV grid column name dynamically to do so i have have tried changing the field catalog
declared a string1 and setting this string value based on my logic but this is not reflected and always the field lable of the data element is taken.
CASE <fs_fcat>-fieldname.
WHEN 'FIELD1'.
<fs_fcat>-reptext = string1.
<fs_fcat>-outputlen = 14.
i have called my set_table_for_first_display like this :
DISPLAY THE DATA ON THE GRID
CALL METHOD compare_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'PSHLP_COMPARE_DRAFT_ST'
is_layout = compare_layout
it_toolbar_excluding = g_it_exclude
is_variant = ls_variant
i_save = 'A'
CHANGING
it_fieldcatalog = compare_fieldcat
it_outtab = l_compare[].
Table always take the field lable from the structue and ignores the fieldcatalog value, can you suggest what is wrong here.
Thanks for help in advance, full points for helpful answer.
Regards,
Harsh
‎2008 Apr 08 6:58 AM
Hi Harsh,
Try seltext_l, or seltext_m instead of reptext.
I guess this should help you.
Thanks,
Arun
‎2008 Apr 08 7:19 AM
‎2008 Apr 08 7:37 AM
hi,
we have the attribute seltext_l,m use one of them.
regards,
sindhu