Skip to Content
0
Former Member
Feb 24, 2009 at 08:44 AM

How to specify the use of long text for a column

6290 Views

Hi,

When using FM REUSE_ALV_GRID_DISPLAY, you can specify that the long text must be used for a column by means of IT_FIELDCAT table with flag SELTEXT_L = 'X'.

Now I have used the class cl_salv_table to show the alv. I have used the method cl_salv_column_table->set_long_text to enter the long text for several columns but the report shows the medium text in some cases instead of the long text entered. How can I specify that the long test must be used instead of medium text or short text?

data: gr_table type ref to cl_salv_table,

gr_columns TYPE REF TO cl_salv_columns_table,

gr_column TYPE REF TO cl_salv_column_table.

cl_salv_table=>factory(

IMPORTING r_salv_table = gr_table

CHANGING t_table = it_output ).

gr_columns = gr_table->get_columns( ).

gr_column ?= gr_columns->get_column( 'COLUM1' ).

gr_column->set_long_text( 'Long text for column 1' ).

gr_table->display( ).