Skip to Content
0
Former Member
Oct 18, 2007 at 05:41 PM

Change column headings

24 Views

Hi,

I am using ALV Grid display for a report. The column headings are comming from the table, but the user wanted me to change the column names of 2 columns from default names. I changed it in FORM sub_modify_field_cat. It is displaying new column headings(Credit Memo, Acct. Docu) now, but when I adjust the column it is going back to default headings(Sales Docu, Fallow on Docu). How can I change this, so that the program displays only new column headings(Credit Memo, Acct. Docu).

Thanks,

FORM sub_modify_field_cat.

LOOP AT it_alv_field_cat INTO w_fieldcat.

CASE w_fieldcat-fieldname.

WHEN 'VBELN'.

w_fieldcat-seltext_s = 'Credit Memo'(017).

w_fieldcat-seltext_m = 'Credit Memo'(17m).

w_fieldcat-seltext_l = 'Credit Memo'(17l).

w_fieldcat-just = 'L'.

WHEN 'ACDOC'.

w_fieldcat-seltext_s = 'Acct. Doc'(010).

w_fieldcat-seltext_m = 'Acct. Doc'(10m).

w_fieldcat-seltext_l = 'Acct. Doc'(10l).

w_fieldcat-just = 'L'.

ENDCASE.

MODIFY it_alv_field_cat FROM w_fieldcat . "Modify fieldcatalog

ENDLOOP.

ENDFORM. " sub_modify_field_cat