I am using the class above to produce the report column headings. In my report I have the following types statment and for field PERS_SUBAREA I want to use my heading, not the DDIC Short heading in print preview.
TYPES: BEGIN OF TY_RPT_REC,
GSBER LIKE HRP1008-GSBER,
POSITION LIKE HRP1000-OBJID,
PERS_SUBAREA LIKE HRP1008-BTRTL,
SHORT LIKE HRP1000-SHORT,
STATUS TYPE C,
PERNR(8) TYPE C,
DUMMY(1) TYPE C,
END OF TY_RPT_REC.
Here is my coding where I am building the Column Heading and it gives me the correct heading on the ALV Output, but when I go to Print Preview from the ALV Output it is giving me the Short Field Label of field HRP1008_BTRTL.
Is there someway to make it use my heading both places.
l_column ?= l_columns->get_column( 'PERS_SUBAREA' ).
this will overwrite the data element specified in the data
dictionary-------------------------
l_column->set_text_column( 'PERS_SUBAREA' ).
l_column->set_long_text( 'Personnel Subarea' ).
*l_column->set_medium_text( 'Personnel Subarea' ).
*l_column->set_short_text( 'PERSSBAREA' ).
l_column->set_output_length( 20 ).