I am using editable ALV.
code for field catalog is:
gs_fldcat-fieldname = 'ZZYEAR4'.
gs_fldcat-tabname = 'ITAB'.
gs_fldcat-ref_fieldname = 'ZZYEAR4'.
gs_fldcat-ref_tabname = 'ZFI_FISCAL_YR'.
gs_fldcat-col_pos = 1.
gs_fldcat-seltext_m = fy1.
gs_fldcat-edit = 'X'.
gs_fldcat-do_sum = 'X'.
append gs_fldcat to gt_fldcat.
Based on some logic column header must be dynamically set for this i am passing variable fy1 in seltext_m field.
As the ALV is editable in column of type 'currency' I am passing reference table and field name.
Problem is ALV is now displaying with text as maintained in reference field but not as in seltext_m field.
How can I maintain dynamic column headers.