2010 Sep 09 2:05 PM
Hi,
I am using CL_SALV_TABLE for ALV output.
In my case my ALV column headings are optimized and show only medium text and Short text according to my values.
But I want to see the Long text for all fields.
So Can anyone help me out to set the column width to show the longtext.
Thanks
2010 Sep 09 3:25 PM
Hi
Pass null value to both medium and short text
than you can see long text for all the fields
see the below code
l_column->set_long_text( 'this is long text' ).
l_column->set_medium_text( ' ' ).
l_column->set_short_text( ' ' ).
Let me know how it goes
Regards
Hi
Pass null value to both medium and short text
than you can see long text for all the fields
see the below code
l_column->set_long_text( 'this is long text' ).
l_column->set_medium_text( ' ' ).
l_column->set_short_text( ' ' ).
Let me know how it goes
Regards
2010 Sep 09 2:42 PM
2010 Sep 09 3:25 PM
Hi
Pass null value to both medium and short text
than you can see long text for all the fields
see the below code
l_column->set_long_text( 'this is long text' ).
l_column->set_medium_text( ' ' ).
l_column->set_short_text( ' ' ).
Let me know how it goes
Regards
2010 Sep 10 5:20 AM
@Anesht,
It works nice. Its really helpful.
@ALL
Thank you ALL.
2010 Sep 09 3:34 PM
DATA: LO_COL_TAB TYPE REF TO CL_SALV_COLUMNS_TABLE,
LO_COLUMN TYPE REF TO CL_SALV_COLUMN.
LO_COLUMN = LO_COL_TAB->GET_COLUMN( 'COLUMN NAME' ).
LO_COLUMN->SET_OUTPUT_LENGTH('15'). " Set Column Width...
2010 Sep 09 4:17 PM
I don't think you really want to do that for every column, since the long column title is 40 characters...better to do for a single column, using col width setting as previously stated.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |