2015 Sep 02 9:11 AM
Hello,
how can I maximize the output width of a table in cl_salv_table (see jpeg attached). I already used SET_MAX_LINESIZE (CL_SALV_DISPLAY_SETTINGS) but it doesn't work.
Thank you very much and Best Regards
2015 Sep 02 9:34 AM
Hi,
Can you post the code for :
cl_salv_table=>factory(..........) .
Regards.
2015 Sep 02 10:16 AM
TRY.
cl_salv_table=>factory(
EXPORTING
list_display = abap_false
IMPORTING
r_salv_table = l_salv_table
CHANGING
t_table = it_result ).
CATCH cx_salv_msg.
ENDTRY.
2015 Sep 02 11:19 AM
Hi,
You have something like this ?
SALV_DEMO_TABLE_REAL_SIMPLE
Regards .
2015 Sep 02 12:00 PM
Sorry, I don't know what you mean.
My table output via SALV already works and my aim is to use the complete screen width for out (screenshot)
Best Regards
2015 Sep 02 12:13 PM
Use GET_MAX_LINESIZE and then modify the linesize according to your requirement and then use SET_MAX_LINESIZE.
2015 Sep 02 3:58 PM
I already tried to solve it in that way, but it des not work. Using following code has no result on the output: 😞
data: l_linesize TYPE INT4.
l_ref_disp_set = l_salv_table->GET_DISPLAY_SETTINGS( ).
l_ref_disp_set->GET_MAX_LINESIZE( RECEIVING value = l_linesize ).
l_linesize = 132.
l_ref_disp_set->set_max_linesize( l_linesize ).
2015 Sep 03 5:15 AM
Hi,
Here is my attempt .
See program Y_R_EITAN_TEST_08_27 (attached)
Note the use of screen 100 and form display_salv_table_1 .
Regards.
The output use the full width of my screen:
2015 Sep 05 2:07 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |