ALV

Question: Hello all,

Does anyone know how I can change the name for a table column. My list uses the column name from the dictionary element.

For example my report has MATNR, and instead of taking the column header from the dic I want to provide one OLD P/N ...for example.

Thanks,
Vincent



*** Fieldcat
types: begin of slis_fieldcat_main0,
row_pos like sy-curow, " output in row
col_pos like sy-cucol, " position of the column
fieldname type slis_fieldname,
tabname type slis_tabname,
currency(5) type c,
cfieldname type slis_fieldname, " field with currency unit
ctabname type slis_tabname, " and table
ifieldname type slis_fieldname, " initial column
quantity(3) type c,
qfieldname type slis_fieldname, " field with quantity unit
qtabname type slis_tabname, " and table
round type i, " round in write statement
exponent(3) type c, " exponent for floats
key(1) type c, " column with key-color
icon(1) type c, " as icon
symbol(1) type c, " as symbol
checkbox(1) type c, " as checkbox
just(1) type c, " (R)ight (L)eft (C)ent.
lzero(1) type c, " leading zero
no_sign(1) type c, " write no-sign
no_zero(1) type c, " write no-zero

Answer:
Hi ,
I thk this will help you .

ls_fieldcat-fieldname = 'maktg'(003).
ls_fieldcat-tabname = g_tabname_header.
ls_fieldcat-seltext_m = 'Description'(018). ls_fieldcat-no_sum = 'X'.
ls_fieldcat-outputlen = '40'.
APPEND ls_fieldcat TO e01_lt_fieldcat.
Copyright ?2007 - 2008 www.jt77.com